Commit Graph

217 Commits

Author SHA1 Message Date
Amit Kumar
3542f1c4c1 Add check if tree is symmetric or not (fixes #3471) (#3472)
Co-authored-by: Amit Kumar <akumar@indeed.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-10-30 10:29:22 +02:00
Aayush2111
23eec39a29 Fibonacci optimized using binet's formula (#3728)
* Fibonacci optimized using binet's formula

* Update Fibonacci.java

* Update Fibonacci.java

* updated changes

Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2022-10-30 09:26:08 +05:30
Taranjeet Singh Kalsi
8efc71e609 Added functions in Perimeter.java (#3739)
* 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
2022-10-30 09:22:25 +05:30
Taranjeet Singh Kalsi
957f633c93 Added function and fixed bug in PerfectCube.java (#3655)
* Added another function to PerfectCube.java

Added another function to PerfectCube.java and fixed a testing mistake in line number 9

* Created PerfectCubeTest.java

Created PerfectCubeTest.java

* fixed PerfectCubeTest.java

* Fixed bug in PerfectCube.java

Fixed bug in PerfectCube.java in isPerfectCube() function for negative numbers. Now It gives the correct output for perfect negative numbers.

* removed main() in PerfectCube.java
2022-10-29 11:57:17 +05:30
Taranjeet Singh Kalsi
5ab1b6c319 Created VolumeTest.java & Fixed Bugs in Volume.java (#3682)
* Fixed functions and removed main() in Volume.java

Fixed calculation errors in volumeSphere() and volumeHemisphere() functions and removed main() and changed functions access specifier from private to public

* Created VolumeTest.java

Created VolumeTest.java JUnit Tests for Volume.java

Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2022-10-28 00:35:59 +05:30
Taranjeet Singh Kalsi
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
Taranjeet Singh Kalsi
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
Nandini Anagondi
b2393d62a0 Add Test case for EggDropping (#3687) 2022-10-27 20:52:45 +03:00
Nandini Anagondi
23949cac47 Add test case for BinaryToDecimal (#3684) 2022-10-27 20:40:08 +08:00
Nandini Anagondi
2c9edc95b8 Add test case for HexaDecimalToBinary (#3683) 2022-10-27 20:34:01 +08:00
Taranjeet Singh Kalsi
a0d03e814a Update WordLadderTest.java & WordLadder.java (#3674) 2022-10-26 21:14:03 +08:00
Taranjeet Singh Kalsi
eecec0f706 Add test case for LetterCombinationsOfPhoneNumber (#3662) 2022-10-26 16:38:24 +08:00
Artan.sh
c9e1d96147 Fix typos (#3615)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-10-26 07:40:06 +00:00
Alexandre Velloso
8c6ed9c240 Add unit test for RSA cipher (#3664) 2022-10-26 09:10:27 +08:00
Alexandre Velloso
f8897f166d Add unit tests for Caesar cipher (#3665)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-10-26 09:01:35 +08:00
Alexandre Velloso
7ef75980d5 Add unit tests for Vigenere cipher (#3666) 2022-10-26 08:57:51 +08:00
Taranjeet Singh Kalsi
fd3386a0db Removed extra loop in Anagram.java (#3654) 2022-10-25 12:19:03 +00:00
Debasish Biswas
315e947c87 Add more tests (#3601) 2022-10-25 12:15:41 +00:00
Philippe CANCELLIER
6235fd6505 Add tests for Average (#3652) 2022-10-25 15:00:53 +03:00
Debasish Biswas
d88b70113f Fix naming LinkList_sort -> LinkListSort (#3640) 2022-10-24 21:27:17 +03:00
Siddhant Deepak Pradhan
1e16709680 Update README.md (#3362) 2022-10-23 05:59:40 +00:00
laks-mi1099
8d4b048cb3 Add LongestValidParenthesesTest (#3612) 2022-10-22 19:21:54 +00:00
laks-mi1099
ea05286c86 Add tests for PowerSum (#3603) 2022-10-22 19:11:40 +00:00
samratpodder
3ef3d761c6 Add DP Solution to Subset Count (#3580) 2022-10-20 19:51:54 +00:00
kongleong86
f2e0126469 Use GCM mode in AES (fixes #3324) (#3325) 2022-10-18 21:24:25 +03:00
Amarildo Aliaj
8803b7f5e7 Add tests for Area (#3358) 2022-10-18 21:03:58 +03:00
Rebecca Velez
ddcb5cfead Create test cases for SlowSort (closes #3361) (#3363) 2022-10-17 15:15:06 +00:00
Kumaraswamy B G
8855cf9525 Optimize Hashmap implementation (#3533) 2022-10-17 14:36:09 +00:00
Debasish Biswas
cdd12a128d Add Dual Pivot QuickSort (#3357) 2022-10-15 06:06:36 +00:00
Akshay Dubey
efac505a6d Add twin prime (#3312) 2022-10-14 09:36:26 +00:00
Ricardo Ramos
c805437c0c Add tests for CountChar (#3334) 2022-10-12 18:42:24 +00:00
Smiti Maheshwari
c59fc923bf Add fcfs scheduling (#3335)
Co-authored-by: Smiti <smmaheshwari@paypal.com>
2022-10-12 21:39:34 +03:00
Ricardo Ramos
911b98472c Add Tests for Dudeney Number (#3336) 2022-10-10 17:25:06 +00:00
samratpodder
8661d07276 Add sum without using any mathematical operators (#3473) 2022-10-10 20:19:01 +03:00
Aitor Fidalgo Sánchez
03a4832a7d Add an interface for matrix search algorithms (closes #3461) (#3464) 2022-10-09 14:45:36 +03:00
Shashwat Gupta
cce1dbd124 Add algorithm to search for an element in 2D array (#3306) 2022-10-09 12:23:36 +03:00
Aitor Fidalgo Sánchez
302db81bb8 Fixes #3323 Javadoc generation errors in backtracking algorithms (#3326) 2022-10-08 14:10:34 +03:00
Narek Karapetian
471d2c0b5d Fix CircularBuffer and add unit tests (#3411) 2022-10-06 16:51:10 +08:00
acbin
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
J2mF
e4eb99ff18 Add A5 Cipher (#3292) 2022-09-27 16:33:13 +00:00
Amarildo Aliaj
8ca571d887 Add Collatz Conjecture (#3290) 2022-09-26 04:51:21 +00:00
Akshay Dubey
ea8e0463ef Add Liouville lambda function (#3284) 2022-09-24 13:18:12 +00:00
Mihir Sawant
2fbb1d6402 Add hamming distance (#3270) 2022-09-24 16:14:39 +03:00
Akshay Dubey
07a5531f1a Add prime factorization algorithm (#3278) 2022-09-21 19:29:20 +00:00
valjamwo
d56eaa58af Add LRUCacheTest and MRUCacheTest (fixes #3263) (#3277) 2022-09-19 20:55:15 +03:00
Aitor Fidalgo Sánchez
a2dd154ad6 Add BubbleSort unit tests (#3275) 2022-09-19 17:23:08 +00:00
Akshay Dubey
a41656a311 Add pollard rho algorithm (#3260) 2022-09-16 07:27:40 +00:00
0x3C50
9c418ba827 Add pangram check tests (#3267) 2022-09-15 13:31:11 +00:00
Pratyush Singh
8f18b92f6e Add count set bits algorithm (#3262) 2022-09-14 17:05:23 +00:00
Mann
20a1f40c5a Add Isomorphic Strings (#3253)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-09-13 02:29:26 +03:00