TheAlgorithms / Python Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deduplicate repeated is_prime
functions
#5434
Comments
Can you assign this to me. |
I will do it! |
Hi! I'm interested in working on this |
Can I try solve this prob? |
This comment has been minimized.
This comment has been minimized.
Are there someone working on this fix? |
Write a function that takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed once. |
I have started to work on this issue. |
Hi @poyea! |
Do the sorting first and then make it a set as the set will return unique values and by this all the duplicates will be removed |
I have other question: some problems in projecteuler folder seens to be resolved already. Some require a function like |
The |
I would say yes, but this may be our second priority because Maybe we can make a list of these |
I left as |
I'll do it. |
These are the occurrencies of repeated
|
This is a list from Project Euler with
It's to register for later decision. |
* Update ciphers.rabin_miller.py maths.miller_rabin.py
assign this to me!!! |
I would also like to help, assign me to this please. |
Assign me to this, please. I would love to help. |
I would also love to help with this! Please assign this to me. |
Perhaps we can change those |
@poyea, I'm trying to fix the last PR, but a pre-commit hook 'Validate filenames' is preventing me due to hyphens found on filenames, like these |
I wanted to learn Python, but it seems to be a difficult language. |
@rileyawheeler here isn't the right place to address this, but I'll open a brief comment here. Python is one of the more user-friendly languages. C \ C++ is difficult. To start with Python, you can try it in phases where each of them treats one topic through this free project's resource here: https://automatetheboringstuff.com/ |
I used to learn Python, but it seems to be a difficult language. |
We have a lot of
is_prime
(or similar) functions: https://github.com/TheAlgorithms/Python/search?p=4&q=is_prime, https://github.com/TheAlgorithms/Python/search?q=isPrime, data_structures/hashing/number_theory/prime_numbers, etc. Shall we use one common function for that exactly identicalis_prime
calculation (which takesO(sqrt(n))
)?Candidates include:
The text was updated successfully, but these errors were encountered: