Files
C-Plus-Plus/data_structures
SOZEL 54a20b447e Rework on Stack Array Data Structure (#2683)
* ref: rework on stack array data structure
- The `Stack` class is placed within the `data_structures` namespace
- The destructor is added to the Stack class to ensure memory deallocation
- Comments are added to the member functions to describe their purpose
- The self-test function is provided, which demonstrates the usage of the Stack class

* chore(docs): add `namespace` docstring

* chore: add `std::out_of_range` exception and test cases when stack is empty

* ref: add `full` and `empty` methods

* ref: improve stack array implementation
- Use TOS instead of stack index
- Add tests for overflow and underflow

* fix: remove comparision to true from asserts

* chore: remove `stack.hpp`

* fix: revert

* Update data_structures/stack_using_array.cpp

* docs: add namespace comment

* chore: remove redundant line in docstring of `empty` method

---------

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
2024-09-01 10:07:27 +05:30
..
2020-06-23 15:13:28 -05:00
2020-06-24 02:22:20 +05:30
2021-03-07 21:19:21 -06:00
2023-07-20 23:05:40 -06:00
2020-07-08 12:30:13 -04:00