Christian Clauss
b75a7c77f8
pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0 ( #6245 )
...
* pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0
* pre-commit run --all-files
2022-07-11 10:19:52 +02:00
Dylan Buchi
24731b078c
[mypy] fix type annotations in data_structures/queue/circular_queue_linked_list.py
( #5749 )
...
* [mypy] fix type annotations in circular_queue_linked_list
* Remove 10 blank lines
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-11-02 11:09:46 +01:00
Víctor A. Rodríguez
70368a757e
Implement Circular Queue using linked lists. Fixes TheAlgorithms#5361 ( #5587 )
...
* CircularQueueLinkedList: empty list, trivial implementation TheAlgorithms#5361
* CircularQueueLinkedList: single element list TheAlgorithms#5361
* CircularQueueLinkedList: refactor, no que empty attribute TheAlgorithms#5361
* CircularQueueLinkedList: refactor TheAlgorithms#5361
* CircularQueueLinkedList: changed internal data structure to use double linked list TheAlgorithms#5361
* CircularQueueLinkedList: enqueue test cases added TheAlgorithms#5361
* CircularQueueLinkedList: track full queue TheAlgorithms#5361
* CircularQueueLinkedList: adding functions description TheAlgorithms#5361
* CircularQueueLinkedList: type hints TheAlgorithms#5361
* CircularQueueLinkedList: algorithm explanation TheAlgorithms#5361
* CircularQueueLinkedList: missing type hints TheAlgorithms#5361
* CircularQueueLinkedList: more missing type hints TheAlgorithms#5361
* Update data_structures/queue/circular_queue_linked_list.py
Co-authored-by: John Law <johnlaw.po@gmail.com>
2021-10-28 22:43:24 +08:00
Dylan Buchi
8285913e81
[mypy] Fix and add type annotations ( #5618 )
2021-10-27 11:45:33 +08:00
Dylan Buchi
20e09c3ec2
[mypy] Add type annotations for linked queue in data structures ( #5533 )
...
* [mypy] Add/fix type annotations for linked queue in data_structures
* add return type annotation to __iter__
* Add more readable syntax
2021-10-23 11:56:58 +02:00
Benjamín García Roqués
2e955aea46
Replace double_ended_queue.py ( #5429 )
...
* Add deque_from_scratch.py
* added deque_from_scratch.py
* add extend, extendleft and make comparison
* updated operations list
* fix doctest on Deque.__iter__
* pre-commit fix
* time complexity comments, change type hints
* pre-commit fix
* added more doctests
2021-10-21 11:38:04 +08:00
Du Yuanchao
1cd8e68537
Update LinkedQueue ( #3683 )
...
* update LinkedQueue
* add type hint and rename
2020-10-24 12:16:37 +02:00
Dhruv
9016fe192f
Fix imports for all namespace packages ( #2506 )
...
* Fix imports as they're namespace packages
* Fix import for scripts/validate_filenames.py
* Fix path in doctest
2020-09-28 23:41:04 +02:00
Dhruv
48357cea5b
Add __init__.py files in all the directories ( #2503 )
2020-09-28 19:42:36 +02:00
Ashley Jeji George
1ac75f4683
Create priority_queue_using_list.py ( #2435 )
...
* Create priority_queue_using_list.py
* Update priority_queue_using_list.py
* Update priority_queue_using_list.py
* Update priority_queue_using_list.py
* Maximum queue size is 100
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-09-16 18:42:53 +02:00
Vipul Rai
3d4ccc383a
change method name from front to get_front ( #1943 )
...
Co-authored-by: “Vipul <“vipulrai8891@gmail.com”>
2020-05-06 11:19:44 +05:30
matkosoric
7f04e5cd34
contribution guidelines checks ( #1787 )
...
* spelling corrections
* review
* improved documentation, removed redundant variables, added testing
* added type hint
* camel case to snake case
* spelling fix
* review
* python --> Python # it is a brand name, not a snake
* explicit cast to int
* spaces in int list
* "!= None" to "is not None"
* Update comb_sort.py
* various spelling corrections in documentation & several variables naming conventions fix
* + char in file name
* import dependency - bug fix
Co-authored-by: John Law <johnlaw.po@gmail.com>
2020-03-04 13:40:28 +01:00
Christian Clauss
ec7bc7c7cd
Tabs --> spaces in quine_mc_cluskey.py ( #1426 )
...
* Tabs --> spaces in quine_mc_cluskey.py
* fixup! Format Python code with psf/black push
2019-11-21 22:21:40 +08:00
Himanshu Bhatnagar
0832e1ec58
Adding circular_queue.py ( #1574 )
...
* Create circular_queue.py
Circular Queue implementation using python list with fixed range.
* Update circular_queue.py
* Update circular_queue.py
* Update circular_queue.py
* Update circular_queue.py
* Update circular_queue.py
* doctest: Catch "Exception: UNDERFLOW"
* Deal with the fluent interface for cq.enqueue()
* Test the fluent interface
2019-11-17 19:59:50 +01:00
Mariusz Skoneczko
7376addcd5
Implement Linked Queue and Linked Stack data structures ( #1324 )
...
* Add LinkedQueue
* Add LinkedStack
2019-10-18 08:38:31 +02:00
William Zhang
9eac17a408
psf/black code formatting ( #1277 )
2019-10-05 10:14:13 +05:00
yijoonsu
189b350312
Deque ( #1200 )
...
* deque add pop
* deque add remove
2019-09-30 16:27:41 +02: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
Christian Clauss
89acf5d017
print() is a function just like every other function ( #1101 )
...
* print() is a function just like every other function
2019-08-06 12:14:23 +02:00
Anup Kumar Panwar
4e413c0183
Updated README
2019-07-06 11:11:20 +05:30
luanjerry
f386fce820
Update queue_on_list.py ( #851 )
...
* Fixed error in queue_on_list.py
2019-05-31 16:05:24 +08:00
Anup Kumar Panwar
71be23999c
refactor
2019-05-26 21:56:10 +05:30
Alex Brown
91fccecb56
snake_case all the things
2018-10-19 17:14:25 -05:00
Alex Brown
564179a0ec
increment 1
2018-10-19 07:48:28 -05:00