Commit Graph

1904 Commits

Author SHA1 Message Date
Hyun
5864f3296f
Add BogoSort Tests (#3716) 2022-10-31 19:52:57 +00:00
shlokam
9e7456a2a8
Add tests for merge sort (#3715) 2022-10-31 19:26:49 +00:00
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
Andrii Siriak
703c60fa7a
Update CODEOWNERS 2022-10-27 18:03:22 +03:00
Nandini Anagondi
8504e6ad35
Add test case for RomanToInteger (#3686) 2022-10-27 20:42:57 +08: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
Nandini Anagondi
838916d8e9
Add test case for hexadecimal to decimal (#3685) 2022-10-27 19:17:38 +08:00
rashmibharambe
0bed437eb2
Add test case for BinaryToHexadecimal (#3694) 2022-10-27 18:15:39 +08:00
rashmibharambe
c7b69561a5
Add test case for BinaryToOctal (#3696) 2022-10-27 18:11:16 +08:00
rashmibharambe
a1a2a849c2
Add test case for DecimalToHexaDecimal (#3697) 2022-10-27 18:07:13 +08:00
rashmibharambe
38eadd928a
Add test case for CatalanNumber (#3698) 2022-10-27 17:34:39 +08:00
harshalkhachane
b46bf0d9b0
Add test case for OctalToDecimal (#3678) 2022-10-27 00:06:25 +08:00
harshalkhachane
0bbacb1925
Add test case for OctalToHexadecimal (#3679) 2022-10-27 00:04:26 +08:00
Taranjeet Singh Kalsi
a0d03e814a
Update WordLadderTest.java & WordLadder.java (#3674) 2022-10-26 21:14:03 +08:00
harshalkhachane
2e25f89c36
Add test case for HexToOct (#3675) 2022-10-26 21:10:25 +08:00
harshalkhachane
0365afa16a
Add test case for IntegerToRoman (#3676) 2022-10-26 21:03:04 +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
Andrii Siriak
a4ede35bef
Update pull_request_template.md 2022-10-26 10:23:38 +03:00
Harshal
0953236b4c
Add tests for WordLadder (#3668) 2022-10-26 07:18:33 +00:00
Harshal
0a5ee18079
Add tests for HowManyTimesRotated (#3669) 2022-10-26 10:16:02 +03:00
Harshal
3aadb9da1e
Add tests for vowels check (#3658) 2022-10-26 09:15:25 +03:00
Harshal
9a09a9e772
Add test case for Rotation (#3667) 2022-10-26 09:44:37 +08: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
Amit Kumar
c9e7b219a7
Add unit test for CeilInBinarySearchTree (fixes #3395) (#3396)
Co-authored-by: Amit Kumar <akumar@indeed.com>
2022-10-23 05:47:00 +00:00
James Tuong
f35aeb5311
Add ReverseStringTest (#3607)
Co-authored-by: jtuong <Rofleveryday1?>
2022-10-22 19:23:35 +00:00
laks-mi1099
8d4b048cb3
Add LongestValidParenthesesTest (#3612) 2022-10-22 19:21:54 +00:00
ff124012
bf03d16303
Add test for Lower (#3328) 2022-10-22 19:17:18 +00:00
laks-mi1099
ea05286c86
Add tests for PowerSum (#3603) 2022-10-22 19:11:40 +00:00
Andrii Siriak
51f9596649
Update pull_request_template.md 2022-10-21 22:05:14 +03: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