Commit Graph

148 Commits

Author SHA1 Message Date
Abhijay Kumar
7fbf8f221c Removed code smells and followed naming convention
- Local variable names in java must be with the  default regular expression ^[a-z][a-zA-Z0-9]*$
https://rules.sonarsource.com/java/tag/convention/RSPEC-117
- The diamond operator ("<>") should be used when the type of the maps are already defined
https://rules.sonarsource.com/java/RSPEC-2293
- Package names being camel cased is a code smell
2020-08-21 15:00:21 +05:30
varnaa
5466ff0d57 Added LRU cache implementation. 2020-08-02 22:20:39 +05:30
Tanmay
36e23bb402 Added LFU cache implementation 2020-07-26 17:12:45 +05:30
Sombit Bose
9f8abb0f55
Merge pull request #1328 from MohamedBechir/Development
Add hexadecimal to binary and hexadecimal  to decimal conversions
2020-05-26 01:16:22 +05:30
MohamedBechir
9ee9612b43 Take into consideration hexadecimal numbers with floating point 2020-05-25 20:39:57 +01:00
MohamedBechir
fd24ffc5e3 Fix requested changes 2020-05-25 15:03:41 +01:00
MohamedBechir
724ff7ef30 Add Hexadecimal to binary conversion 2020-05-25 03:52:51 +01:00
MohamedBechir
ccf506514a Add HexadecimalToDecimal conversion 2020-05-25 02:24:06 +01:00
SageTendo
2567859e32 CaesarBruteForce 2020-05-09 00:31:51 +02:00
Stepfen Shawn
4690efbea4
Merge pull request #1247 from BanQiaoGeXia/Development
Optimize method flip in SortUtils #1246
2020-05-06 16:45:34 +08:00
iheb1196
c6c6fffac9 IntQueue 2020-04-29 11:16:38 +01:00
MohamedBechir
f82bf1a149 Add singly linked list 2020-04-28 01:39:18 +01:00
Bence Lakos
fc75a15ef1 Implement ternary search 2020-03-23 13:35:21 +01:00
MK
7b1c328594 fix a bug #1250 2020-03-18 18:19:16 +08:00
MK
f3f2661d35 Solve the Optimize method flip in SortUtils #1246 2020-03-17 14:35:13 +08:00
Inluminous
2d4d7dd742 Rewrote Stack.java
The previous implementation would show unexpected behaviour when using the values returned by pop() and peek().
Generic type was needed but not used in implementation thus leading to redundancy.
push() had unnecessary return type.
2020-03-07 17:19:52 +01:00
ehsan
78f7a803ea adds new test for testing encoding and compressing email. 2019-12-14 22:03:49 +03:30
ehsan
59eb36e4ab commits tests for testing decorator pattern. 2019-12-13 23:57:49 +03:30
Ehsan
c52e12aa05 commits decorator design pattern. 2019-12-13 23:08:14 +03:30
Rajkumar
56b374ce9f Fixed 'Generics' issue of bubble sort since Sort class should accept
only comparable datatype rather than just restricting sort method
2019-12-08 01:03:31 +05:30
Ehsan
45fee1868e adds commit to the President class. 2019-11-29 03:03:25 +03:30
Ehsan
e30d11545f removes the Citizen class in src directory.
changes messages printed by the secretary and the president.
2019-11-29 02:59:56 +03:30
ali4j
5d790266e7 adds proxy design pattern. 2019-11-03 18:05:40 +03:30
Renjith
98982f8f25 Converting to a gradle project 2019-09-27 22:35:00 -07:00
laingke
87693f051c fix: Correct the package path and reference 2019-07-19 14:32:02 +08:00
Libin Yang
837f635001
Merge pull request #769 from abhijay94/Development
Added adapter pattern and its test case
2019-05-29 09:46:45 +08:00
Abhijay Kumar
c31c39a08e Removed usage of BigInteger constructor for constants 2019-05-28 17:45:32 +05:30
Abhijay Kumar
a7a9abd8c0 Corrected the package for the JUnit 2019-05-27 12:06:39 +05:30
Abhijay Kumar
afe5d241b9 Added adapter pattern and its test case 2019-05-27 12:05:42 +05:30
Libin Yang
13a08836be
Update Sha2Test.java
Fix #768
2019-05-24 17:28:00 +08:00
Abhijay Kumar
7e33042c3a @Test annotated methods must be public. Removed the annotation and made methods private 2019-05-24 13:45:48 +05:30
Abhijay Kumar
8841314c87 Added the code for Abstract factory pattern implementation and its unit test 2019-05-24 13:24:29 +05:30
Abhijay Kumar
4456658f82 Merge remote-tracking branch 'origin/Development' into Development 2019-05-23 12:07:44 +05:30
Abhijay Kumar
3f9ff6e3b5 Prevent the byte from getting automatically promoted 2019-05-23 12:07:30 +05:30
Abhijay Kumar
c25da3ce97
Update src/main/java/com/generation/SimplexNoise.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-23 09:40:46 +05:30
Abhijay Kumar
5358f8ddc9
Added space after typecast expression
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-23 00:21:14 +05:30
Abhijay Kumar
b6772c5fb1 Cast the second operand of Math.pow to double 2019-05-22 12:49:33 +05:30
Abhijay Kumar
132060f078
Merge branch 'Development' into Development 2019-05-21 14:26:32 +05:30
Abhijay Kumar
4fd7698fd2 Updated SimpleNoise test to use org.juint.Assert instead of jupiter 2019-05-21 14:21:25 +05:30
Abhijay Kumar
ba90059624 Added the prototype pattern and its unit test 2019-05-21 14:14:43 +05:30
Libin Yang
04f6924ec5
Merge pull request #762 from abhijay94/Development
Added a sub-package for "creational" in order to organize the code
2019-05-21 14:57:10 +08:00
Abhijay Kumar
ee985d510b Added a sub-package for "creational" in order to organize the code better 2019-05-21 11:37:16 +05:30
Libin Yang
6458e31c45
Merge pull request #757 from abhijay94/Development
Added Builder Design pattern implementation in Java and its test
2019-05-17 18:14:50 +08:00
Abhijay Kumar
b532d70716 Added Builder Design pattern implementation in Java and its test 2019-05-16 16:05:27 +05:30
Libin Yang
21f82001dd
Merge pull request #756 from abhijay94/Development
Added Factory pattern implementation in Java and its test
2019-05-16 15:42:51 +08:00
Abhijay Kumar
616d5cfcc8
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-16 13:05:49 +05:30
Abhijay Kumar
321ebea864
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-16 13:05:42 +05:30
Abhijay Kumar
6ffb2d5b4e
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-16 13:05:13 +05:30
Abhijay Kumar
77881f67fd
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-16 13:05:06 +05:30
Abhijay Kumar
c11a0611a0
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-16 13:04:56 +05:30