Python
Python copied to clipboard
All Algorithms implemented in Python
The **Merge Sort for Linked List** algorithm sorts a linked list by recursively dividing it into two halves, sorting each half, and then merging the sorted halves back together. It...
# Describe your change: I added a new sorted linked list implementation in Python, which includes methods for inserting, deleting, searching, and displaying nodes, removing duplicates and reversing the list....
The Max-Min Problem is finding the maximum and minimum value in an array. This is a divide and conquer approach to solve the Max-Min Problem. For more information: https://www.tutorialspoint.com/data_structures_algorithms/max_min_problem.htm ###...
### Describe your change: * [ ] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [x] Add or change doctests? -- Note: Please...
### Describe your change: Remove unused function parameter `base_pat` from the `find_prefix_path()` function. * [ ] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm?...
### Describe your change: I have added a sliding window algorithm that efficiently computes results for sub-array problems. This implementation addresses various use cases, including finding maximum/minimum values in sub-arrays...
Changed A few lines of code to make valid contribution in Hacktoberfest.
created sliding_window algorithm under greedy algorithm section please merge with master ### Describe your change: created a function for sliding window under greedy algorithm file please merge * [x] Add...
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Describe your change: Added Three algorithms under python/maths/gametheory/ Algorithms added: 1. MiniMax 2. AlphaBetaPruning 3. MCTS * [x] Add an algorithm? * [ ] Fix a bug or typo...