Coder Social home page Coder Social logo

allalgorithms / python Goto Github PK

View Code? Open in Web Editor NEW
364.0 23.0 172.0 196 KB

Implementation of All ▲lgorithms in Python Programming Language

Home Page: https://github.com/python

License: MIT License

Python 100.00%
algorithms python allalgorithms algorithm cryptography math cipher dynamic-programming sorting searching searches hacktoberfest

python's Introduction

We are accepting all pull requests. Read More





Algorithms Logo





What is an algorithm?    Contributing    Stickers & T-Shirts

Twitter     Instagram     Github    


Huge collection of All ▲lgorithms implemented in multiple languages


See

What is an algorithm?

Informally, an algorithm is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output. An algorithm is thus a sequence of computational steps that transform the input into the output.

An algorithm should have three important characteristics to be considered valid:

  • It should be finite: If your algorithm never ends trying to solve the problem it was designed to solve then it is useless
  • It should have well defined instructions: Each step of the algorithm has to be precisely defined; the instructions should be unambiguously specified for each case.
  • It should be effective: The algorithm should solve the problem it was designed to solve. And it should be possible to demonstrate that the algorithm converges with just a paper and pencil.

Categories

Structure of The All ▲lgoritms project

License

This work is released under MIT License.

To the extent possible under law, Abraham Hernandez (@abranhe) has waived all copyright and related or neighboring rights to this work.

python's People

Contributors

abranhe avatar gleydson avatar yashaswiadyalu avatar 0xp4blo avatar beingadityak avatar anish03 avatar bharat-reddy avatar shivansh2310 avatar hoseinfzad avatar dvdvgt avatar mani1soni avatar brendanalbert avatar bhuvanakundumani avatar aniakubik avatar vishnu-m avatar ssangervasi avatar saeedey avatar distributedlock avatar radientbrain avatar devmadhavvv avatar luizguerra avatar kushsaini10 avatar jotslo avatar cegard avatar jeffmikels avatar jacknash avatar hinevics avatar hanss314 avatar gaurangvyas98 avatar sidvickraman avatar

Stargazers

 avatar Anne M avatar S. Ayberk Çolakoğlu avatar Electra Magus avatar Nur Adila Mohd Zaini avatar Rishit Baitule avatar Anothai Vichapaiboon avatar  avatar  avatar Rashin Gholijani Farahani avatar Ivo avatar Reiyo avatar Makopr avatar  avatar Jishnu N avatar worry1613 avatar Evgenii Kuleshov avatar  avatar  avatar zaydm avatar Zilong Du avatar Mahyar  avatar Deepak Purti avatar majid khazaei avatar Dan Lawson avatar esra budak avatar  avatar  avatar samuel_silva avatar kpb avatar Mark Lemmens avatar Nikita avatar Dennis Kim avatar Ravikant avatar guru_prashanth avatar  avatar Vyacheslav Dmitriev avatar Pranav Singh avatar Natalie Alex Livanos avatar fjqz177 avatar  avatar  avatar  avatar YASH DARGONDA PATIL avatar Solomon M Desta avatar Harmain ali butt avatar umeshchandake avatar Jaikumar R avatar  avatar  avatar Muhammad Aadil avatar  avatar Máté Pásztor avatar  avatar  avatar  avatar  avatar  avatar Daniel Lourenço Affonso avatar Asad Amir Khawaja avatar Philip Keogh avatar  avatar  avatar Shourya  avatar kris avatar azozrazoz avatar  avatar Matt Zacharski avatar Muhammad Arshad avatar Boyi Wang avatar FARHAT WAJDI avatar Atabek Aribzhanov avatar flumpus avatar  avatar  avatar Tadashi Ringo avatar  avatar Shwetha_A avatar B. C. Augustine avatar kai gouthro avatar Samejima avatar m@GNUs avatar Kirill Vladimirov avatar ZhangLi avatar  avatar  avatar Charles Nikdel avatar  avatar Shreevesh Kumar  avatar Ismael 7il avatar retarkamui avatar vartheesh avatar Elias Calixto avatar  avatar odwn avatar  avatar  avatar  avatar Pálházi Tamás avatar  avatar

Watchers

dcn01 avatar Vyacheslav Smirnov avatar David Johns avatar Daniel Miralles avatar Marcelo Jasek avatar Marvin M. Michum avatar Christian Taylor avatar  avatar Sharath S Bhargav avatar Michel Sommer avatar  avatar  avatar  avatar MURALIKRISHNA RAMDAS avatar Burak avatar Naresh Kumar avatar Prasanna Kale avatar  avatar  avatar pydustMoon avatar alain avatar  avatar Ravikant avatar

python's Issues

Improving code quality?

Hi! I am creating an issue because even though the project seems quite interesting, the code quality (from what I saw) is at best okay-ish, at worst simply bad, be it from only PEP8 weirdness, or non-pythonicness alone.
Though I do not mean to be disrespectful to all the contributors, it seems that the lack of code review is a cause of overall poor code quality on this repo.

I would love to help review code and contribute on my free time, but improving the current code is a daunting task that I cannot undertake alone.
I also know that reviewing code alone is really tedious, and that it would slow the contribution rate, and I understand if you don't want to integrate review in the workflow.

Sincerely,
Amaras

Correct implementation of Lucky Numbers Algorithms in Python

According to #32 (comment)

Hi @Zxey I liked, but it seems that the algorithm isn't properly implemented.

According to this the following gif:

gif

From 1-100 the lucky numbers should be:

1, 3, 7, 9, 13, 15, 21, 25, 31, 33, 37, 43, 49, 51, 63, 67, 69, 73, 75, 79, 87, 93, 99

This is the link to your implementation repl.it/@abranhe/lucky-numbers-in-python online, I just set the range from 1 - 100.

In a part of the output you will see:

number 17 is not lucky
number 18 is not lucky
number 19 is lucky
number 20 is not lucky
number 21 is not lucky
number 22 is not lucky
number 23 is not lucky
number 24 is not lucky
number 25 is not lucky
number 26 is not lucky
number 27 is lucky
number 28 is not lucky

Where they don't match with the output it should be:

Eg:

  • 19 isn't lucky
  • 25 is lucky
  • 27 isn't lucky
  • and so on ...

So this need to be fixed to be merged, I am creating an issue right now, hopefuly we will implement correctly.

We need to find the a correct implementation for Lucky Numbers

error

I am creating an issue because...This is Total Error

Do you know any algorithm in Python?

Hi, everyone!

Do you know any algorithm implementation in any language, that you wanna share with us?

Open a pull request in any of the programming languages available, or in Python this case

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.