Python
Python copied to clipboard
All Algorithms implemented in Python
### Describe your change: * [x] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...
### Feature description I want to add sorted linked list to the repo under data structures. I have opened a pull request #11607 Please review
### Describe your change: Updated the example command for running ruff to use `ruff check .` instead of just `ruff .`, as the latter syntax has been removed. This ensures...
### Describe your change: The changes address potential issues with small intervals and overlapping boundaries in the current implementation of Knuth's optimization of Optimal BST algorithm. - Improved boundary checking...
Check whether the permutation of string 2 in string 1
The first change reduces the memory overhead associated with creating new lists at each recursive step by modifying the same list and backtracking after each recursive call. This can make...
### Describe your change: Update docstrings in the functions definitions. * [] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [] Add or...
### Feature description Depth First Search and Breadth First Search algorithms.
### Describe your change: * [ ] Add an algorithm? * [ ] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? --...
### Describe your change: * [ ] Add an algorithm? * [x] Fix a bug or typo in an existing algorithm? * [ ] Add or change doctests? -- Note:...