* Longest Increasing subsequence using binary search most optimal approach for this problem
* Longest Increasing subsequence using binary search most optimal approach for this problem
* Longest Increasing subsequence using binary search most optimal approach for this problem (Modified)
* Longest Increasing subsequence using binary search most optimal approach for this problem
* Longest Increasing subsequence using binary search most optimal approach for this problem(done)
* Longest Increasing subsequence using binary search most optimal approach for this problem
* Floyd warshall
* Longest Increasing subsequence using binary search most optimal approach for this problem
* Longest Increasing subsequence using binary search most optimal approach for this problem
* Longest Increasing subsequence using binary search most optimal approach for this problem
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* Create Longest_Substring_Without_Repeating_Characters.cpp
* I would like to contribute for sliding window algorithm and this one is one of the famous problem that is asked in interviews.
* Thank you!!.
* Update and rename Longest_Substring_Without_Repeating_Characters.cpp to sliding-window/Longest_Substring_Without_Repeating_Characters.cpp
* This is my contribution towards the sliding window algorithm/s and this is one of the famous problems.
* Thank you.
* Update Longest_Substring_Without_Repeating_Characters.cpp
* I would like to contribute towards the sliding window algorithm in which this is one of the famous problem asked in interviews.
* Thank you.
* Update Longest_Substring_Without_Repeating_Characters.cpp
* Updated certain changes in documentation, this is my contribution towards sliding window algorithm this is one of the famous interview problem.
* Thank you.
* Update Longest_Substring_Without_Repeating_Characters.cpp
* Well documented and tested code for sliding window algorithm.
* Thank you.
* Update and rename Longest_Substring_Without_Repeating_Characters.cpp to Longest_Substring_Without_Repeating_Characters.cpp
* So,I did a small change I added the problem into the others section I think this works fine I guess.
* I would be glad if this can be tagged as hackoctoberfest
* Thank you.
* Update and rename Longest_Substring_Without_Repeating_Characters.cpp to longest_substring_without_repeating_characters.cpp
* I hope I have done the required changes.
* Update longest_substring_without_repeating_characters.cpp
* Added specific edge cases and tests as void tests() and followed the guidelines.
* Update longest_substring_without_repeating_characters.cpp
* I hope I have made the necessary changes required.
* If there are any changes to make I can do that.
* Thank you.
* Update longest_substring_without_repeating_characters.cpp
* I have done the required changes for the include part.
* Thank you.
* Update longest_substring_without_repeating_characters.cpp
added author name
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* added recursive insertion sort algorithm
* Modified the main function and removed user interaction as requested
* Deleted previous file
* Updated insertion_sort.cpp to its original code
* Created insertion_sort_recursive.cpp file
* Updated documentation and structure in insertion_sort_recursive.cpp
* Updated documentation in insertion_sort_recursive.cpp
* chore: remove redundant comment
* chore:Removed unnecssary whitespace
* doc: ease the brief of test
* doc: remove redundant lines from main
* chore:Removed redundant whitespace
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* feat: add lfu cache
* docs: add comments and explanation to class LFUCache
* test: add tests for class lfu cache
* docs: document namespace and classes
* test: modify tests to check negative numbers
* docs: document template params and class data members
* test: make test func static and move tests in the same func
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* changed PI variable value from 3.14 to M_PI
* changed PI variable to M_PI
* changed the degree_to_radians function
* comments removed
* docs: remove pi param
* fix: typo in function name
* changed degree to degrees
---------
Co-authored-by: [Divyansh Jain] <[jdivyansh51@gmail.com]>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* 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>
* chore: add `trapped_rainwater.cpp` to DIRECTORY.md
* feat: implement Trapped Rain Water algorithm
* chore: add links to the trapped rain water problem
* chore(docs): remove Trapped Rain Water dir
* ref: add edges tests
* doc: adding Sozel as author
* doc: includes documentatino
* ref: use `unsigned int` for height of walls
* fix: use fixed-width integers instead of unsigned int
* chore: rearrange included libraries
---------
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
* fix: set proper size of fac
* style: use std::size_t as a type of loop counter
* style: use uint64_t as a type of loop counter
* fix: remove p from the argument list of NCRModuloP::ncr
* refactor: add utils namespace
* refactor: use references in gcdExtended
* refactor: add NCRModuloP::computeFactorialsMod
* style: make NCRModuloP::ncr const
* test: reorganize tests
* test: add missing test cases
* refactor: simplify logic
* style: make example object const
* style: use auto
* style: use int64_t to avoid narrowing conversions
* docs: update explanation why to import iostream
* docs: remove `p` from docstr of `NCRModuloP::ncr`
* docs: udpate doc-strs and add example()
* Apply suggestions from code review
Co-authored-by: David Leal <halfpacho@gmail.com>
* dosc: add missing docs
* feat: display message when all tests pass
Co-authored-by: David Leal <halfpacho@gmail.com>
* style: initialize `NCRModuloP::p` with `0`
Co-authored-by: David Leal <halfpacho@gmail.com>
---------
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>