30 Commits

Author SHA1 Message Date
2488a2ad51 Code cleanup (#4246) 2023-07-22 15:23:00 +00:00
9ecc3aae59 Add a new implementation for CheckAnagrams (#4231) 2023-07-06 16:56:59 +03:00
415a04ea7f Add automatic linter (#4214) 2023-06-09 20:05:14 +08:00
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
89b7ee42e6 Add one more solution for anagrams check (#4175) 2023-05-05 20:50:47 +03:00
b55fc972ac Add tests for HorspoolSearch (#4165) 2023-04-25 14:04:15 +03:00
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
86c93146d9 Add Run-Length Encoding (fixes #3911) (#3916) 2023-03-19 09:51:48 +02:00
c6694fc1bd Simplifying boolean returns (#3796)
* Simplifying boolean returns

* add comment back
2022-12-18 03:03:09 +00:00
1a391c2fe9 Add ValidParentheses (#3689) 2022-11-01 19:26:13 +02:00
fea982d54d Create Atoi Function.java (#3756)
* 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>
2022-11-01 16:34:14 +05:30
9e7456a2a8 Add tests for merge sort (#3715) 2022-10-31 19:26:49 +00:00
bd267bb7d8 Fixed error in Palindrome.java and gave semantic names to functions (#3643)
* fixed error and changed functions names

fixed error at line 57 and gave semantic names to functions with comments

* renamed functions

renamed functions to match with original functions' names in the file

* Updated TestCases

Updated TestCases and changed a function name

* Removed main() and changed function name

Removed main() and changed the function name from isPalindromeStringBuilder to isPalindrome

* fixed typo

Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2022-10-28 00:17:16 +05:30
acf7a86b96 Added function in Pangram.java (#3703)
* Added function in Pangram.java

Added isPangramIndexOf() function in Pangram.java

* Added Tests for new function

Added Tests for isPangramIndexOf() function

* fixed typo

* changed function name

* changed function name

Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2022-10-27 23:26:34 +05:30
a0d03e814a Update WordLadderTest.java & WordLadder.java (#3674) 2022-10-26 21:14:03 +08:00
eecec0f706 Add test case for LetterCombinationsOfPhoneNumber (#3662) 2022-10-26 16:38:24 +08:00
fd3386a0db Removed extra loop in Anagram.java (#3654) 2022-10-25 12:19:03 +00:00
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
9c418ba827 Add pangram check tests (#3267) 2022-09-15 13:31:11 +00:00
20a1f40c5a Add Isomorphic Strings (#3253)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-09-13 02:29:26 +03:00
b0f21803d1 Simplify CheckVowels (#3172) 2022-07-01 14:58:28 +03:00
d8c9c1ac85 Add Hamming Distance (#3164) 2022-06-23 09:29:08 +03:00
2e09e44a38 Add ZigZag Encoding and Longest Nonrepetitive Substring Algorithms (#3058) 2022-05-26 12:47:23 +03:00
ab544c3b9f Fix Null Pointer Exception in strings/Upper (#3005)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-04-05 17:02:20 +08:00
e7ff986414 Fix CheckVowels (#3004)
Close #2990
2022-04-04 16:44:38 +08:00
8d099ee7d1 Update Anagrams and add unit test (#3002)
* Add test for Anagrams
* Update Anagrams.java

Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-04-04 16:34:27 +08:00
76fbe7c9e9 Update LongestPalindromicSubstring - Remove ; (#2905)
Removing unnecessary semi-colon ';'

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-01-13 09:59:11 +08:00
0bb7db2d87 Add anagrams (#2859)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-12-09 20:47:45 +02:00
9fb3364ccc Change project structure to a Maven Java project + Refactor (#2816) 2021-11-12 08:59:36 +02:00