TheAlgorithms-Python/DIRECTORY.md
Dhruv ea0759dbaa
Create problem_54 in project Euler (#2451)
* Add solution and test files for project euler 54

* Update sol1.py

* updating DIRECTORY.md

* Fix: use proper path to open files

* Commit suggestions:

- Use list comprehension instead of map
- Sort imports using isort

* Changes made as suggested (simplified a lot):

- List and set comprehension instead of itemgetter
- Using enumerate as it's easy to read
- Divided into list of card values and set of card suit as set will
  remove all the duplicate values. So, no need for double indexing.
- Add test for testing multiple calls to five_high_straight function

* Add suggestions and simplified:

- Split generate_random_hands function into two:
  - First will generate a random hand
  - Second, which will be called, will return a generator object

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-09-20 13:52:13 +02:00

65 KiB

Arithmetic Analysis

Backtracking

Bit Manipulation

Blockchain

Boolean Algebra

Cellular Automata

Ciphers

Compression

Computer Vision

Conversions

Data Structures

Digital Image Processing

Divide And Conquer

Dynamic Programming

File Transfer

Fuzzy Logic

Genetic Algorithm

Geodesy

Graphics

Graphs

Greedy Method

Hashes

Linear Algebra

Machine Learning

Maths

Matrix

Networking Flow

Neural Network

Other

Project Euler

Scheduling

Searches

Sorts

Strings

Traversals

Web Programming