* bug fix for CircularBuffer + refactoring + add unit tests
* change Insertion sort to classical implementation + add isSorted function to SortUtils + add SortUtilsRandomGenerator for generating random values and arrays
* little fix
* move all common tests to SortingAlgorithmTest and utilize them
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
* Added Order Agnostic Binary Search problem
* Update OrderAgnosticBinSearch.java
* Added JUnit Tests and removed redundant code.
* Made minor changes in JUnit Tests
* Removed tests for main folder and added docs.
* Added OrderAgnosticBinarySearchTest.java
* Renamed file to avoid errors.
* Updated the file to avoid build error
* Add testcase to CocktailShakerSort Algorithm
* fixed method name to lowerCamelCase
* Added test cases to OddEvenSortTest
* Added test case to CombSort
* bug fix for CircularBuffer + refactoring + add unit tests
* change Insertion sort to classical implementation + add isSorted function to SortUtils + add SortUtilsRandomGenerator for generating random values and arrays
* little fix
* simplify merge function in MergeSort
* refactor one-liners
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
* bug fix for CircularBuffer + refactoring + add unit tests
* change Insertion sort to classical implementation + add isSorted function to SortUtils + add SortUtilsRandomGenerator for generating random values and arrays
* little fix
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
* Create MyAtoi.java
There is a method in C++, which converts String to an Integer, called Atoi function, this is my own implementation of this function.
* Update directory
* Update MyAtoi.java
* Create MyAtoiTest.java
* Update directory
* Update directory
* Update directory
* Update MyAtoi.java
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
* Added function in PerfectNumber.java
Added isPerfectNumber2() in PerfectNumber.java
* Created PerfectNumberTest.java
* fixed isPerfectNumber()
fixed bug in isPerfectNumber() for negative numbers
* fixed typo
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
* Added functions and removed main
* deleted perimeterTest.java
deleted perimeterTest.java to create PerimeterTest.java
* Recreated PerimeterTest.java
Renamed perimeterTest.java to PerimeterTest.java and added test cases
* deleted PerimeterTest.java
* Recreated PerimeterTest.java
Recreated PerimeterTest.java from perimeterTest.java