S Mahmudul Hasan c82bfb5455
Implement deque in C++ as required by #139 (#155)
* Initial integration of deque in collections

* some fix

* WIP: Implemented a int-only deque with limited capabilities

* WIP: added some more functionality -> changed int to arbitrary objects

* WIP: Added more functionalities in deque

* WIP: switched to std::deque

* WIP: added more functionalities

* WIP: minor fix

* WIP: added constructor

* WIP: added deque iterator

* WIP: added more functionalities

* Cleaned up and added more functionalities

* minor fix, std::min

* minor fix, rotate, n=0 case

* fix `collections` module

* support pickle

* refactored collections module

* Added some tests, more to follow

* Fixed the tests, more to follow

* Fixed some functionalities and added more tests

* added more tests, called __init__ from pickle, added reverse iterator option

* added the tests

* dropped support for __init__ for now

* moved deque iterator to collections.cpp

* undo unnecessary changes

* Cleaned up and added __str__() support

---------

Co-authored-by: blueloveTH <blueloveTH@foxmail.com>
2023-10-21 07:47:11 +08:00
..
...
2023-08-28 13:17:58 +08:00
...
2023-08-28 13:40:39 +08:00
...
2023-08-28 13:40:39 +08:00
2023-10-15 16:47:53 +08:00
...
2023-09-22 20:48:54 +08:00
...
2023-04-24 18:41:12 +08:00
...
2023-10-07 11:55:57 +08:00
2023-09-24 19:35:40 +08:00
2023-06-11 23:55:04 +08:00
...
2023-10-13 13:12:05 +08:00
...
2023-06-09 22:49:30 +08:00
...
2023-06-16 21:35:28 +08:00
...
2023-07-18 18:10:11 +08:00
...
2023-06-09 22:08:16 +08:00
2023-05-27 21:47:52 +08:00
2023-03-18 10:54:49 +08:00
2023-03-16 16:07:17 +08:00
2023-03-18 10:54:49 +08:00
2023-03-16 16:07:17 +08:00
2023-03-16 16:07:17 +08:00
...
2023-09-24 13:50:59 +08:00
...
2023-05-02 21:20:01 +08:00
2023-05-28 22:18:22 +08:00
2023-06-23 22:26:27 +08:00
2023-06-05 12:48:36 +08:00
...
2023-09-27 06:55:31 +08:00
...
2023-09-27 06:55:31 +08:00
2023-06-02 15:02:06 +08:00
...
2023-05-21 15:21:13 +08:00
2023-03-16 16:07:17 +08:00
2023-10-12 00:44:53 +08:00
2023-05-28 14:23:16 +08:00
2023-09-07 00:35:47 +08:00
...
2023-06-09 22:39:16 +08:00
...
2023-05-20 18:45:46 +08:00
...
2023-05-01 19:23:25 +08:00
2023-03-17 11:38:22 +08:00
2023-08-02 23:29:13 +08:00
2023-08-02 23:16:21 +08:00
2023-03-16 23:51:20 +08:00
2023-10-06 01:13:19 +08:00
...
2023-06-11 23:28:26 +08:00
2023-03-16 16:07:17 +08:00
...
2023-10-09 00:03:23 +08:00
2023-10-09 20:27:21 +05:30
...
2023-06-11 23:08:26 +08:00
...
2023-06-11 23:12:37 +08:00
2023-04-15 18:18:02 +08:00
2023-10-15 22:39:10 +08:00
...
2023-10-16 00:15:45 +08:00
2023-10-08 01:36:11 +08:00
2023-09-07 23:07:04 +08:00
2023-10-14 15:29:30 +08:00
2023-03-16 16:07:17 +08:00
2023-03-16 16:07:17 +08:00
...
2023-10-12 22:17:26 +08:00
2023-10-08 20:55:31 +08:00
...
2023-10-15 22:08:41 +08:00