Casper Rysgaard
e6cf13cc03
Update queue implementation ( #5388 )
...
* Update queue implementation
Popping the first element of a list takes O(n) time.
Using a cyclic queue takes O(1) time.
* Add queue changes from extra files
* Update indentation
* Add empty line between imports
* Fix lines
* Apply suggestions from code review
Co-authored-by: John Law <johnlaw.po@gmail.com>
Co-authored-by: John Law <johnlaw.po@gmail.com>
2021-10-30 19:06:25 +08:00
Christian Clauss
cecf43d648
Pyupgrade to Python 3.9 ( #4718 )
...
* Pyupgrade to Python 3.9
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-09-07 13:37:03 +02:00
Hasanul Islam
977511b3a3
Add/fix mypy type annotations at BFS, DFS in graphs ( #4488 )
2021-06-10 22:36:41 +05:30
Lewis Tian
c39be1d8b8
update graphs/breadth_first_search.py ( #3908 )
...
* update graphs/breadth_first_search.py
- update naming style to snake_case
- add type hints
* add doctests
2020-12-09 17:21:46 +08:00
Sanders Lin
c92a520956
Update breadth_first_search.py ( #1869 )
2020-04-19 19:26:52 +05:30
Christian Clauss
bfcb95b297
Create codespell.yml ( #1698 )
...
* fixup! Format Python code with psf/black push
* Create codespell.yml
* fixup! Format Python code with psf/black push
2020-01-18 13:24:33 +01:00
Christian Clauss
28419cf839
pyupgrade --py37-plus **/*.py ( #1654 )
...
* pyupgrade --py37-plus **/*.py
* fixup! Format Python code with psf/black push
2020-01-03 22:25:36 +08:00
William Zhang
9eac17a408
psf/black code formatting ( #1277 )
2019-10-05 10:14:13 +05:00
Christian Clauss
47a9ea2b0b
Simplify code by dropping support for legacy Python ( #1143 )
...
* Simplify code by dropping support for legacy Python
* sort() --> sorted()
2019-08-19 15:37:49 +02:00
Vysor
df04d94543
Some directories had a capital in their name [fixed]. Added a recursive factorial algorithm. ( #763 )
...
* Renaming directories
* Adding a recursive factorial algorithm
2019-04-22 22:53:56 +08:00