Commit Graph

738 Commits

Author SHA1 Message Date
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
Libin Yang
fc421591fc
Merge pull request #767 from abhijay94/Development
Added the code for Abstract factory pattern implementation and JUnit
2019-05-24 16:47:04 +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
Libin Yang
ceae5ee44a
Merge pull request #766 from abhijay94/Development
Cast the second operand of Math.pow to double - SonarQube analysis
2019-05-23 14:47:32 +08:00
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
Libin Yang
d8bfa59b14
Merge pull request #763 from abhijay94/Development
Added the prototype pattern and its unit test
2019-05-22 08:52:22 +08:00
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
Abhijay Kumar
c29640e0e2
Update src/test/java/com/designpatterns/factorypattern/PolygonFactoryTest.java
Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-16 13:04:41 +05:30
Abhijay Kumar
43d47225be Added Factory Design pattern implementation in Java and its test 2019-05-15 17:17:37 +05:30
Libin Yang
f01927dcb3
Merge pull request #754 from abhijay94/Development
Added Singleton Design pattern implementation in Java and its test
2019-05-15 16:03:23 +08:00
Abhijay Kumar
4a3f871218
Update src/test/java/com/designpatterns/singletonpattern/SingletonTest.java
Removed println statement

Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-15 13:31:07 +05:30
Abhijay Kumar
ea6c4e5a8a Added Singleton Design pattern implementation in Java and its test 2019-05-14 14:54:50 +05:30
Libin Yang
e2a6b024b1
Merge pull request #753 from abhijay94/Development
Added the algorithm and test for Fibonacci Search
2019-05-13 21:30:17 +08:00
Libin Yang
09c4cd790f
Update FibonacciSearch.java
Add single space after `//`
2019-05-13 21:29:00 +08:00
Abhijay Kumar
36f977936d Added the algorithm and test for Fibonacci Search 2019-05-13 16:36:38 +05:30
Libin Yang
0276ccd903
Merge pull request #751 from TheAlgorithms/revert-737-Development
Revert "Added DepthFirstSearch.java and DepthFirstTestSearch.java"
2019-05-11 09:53:11 +08:00
Libin Yang
e5856e329f
Revert "Added DepthFirstSearch.java and DepthFirstTestSearch.java" 2019-05-11 09:52:38 +08:00
Libin Yang
af6daf7af6
Merge pull request #737 from abircb/Development
Added DepthFirstSearch.java and DepthFirstTestSearch.java
2019-05-11 09:42:32 +08:00
Abir Bhushan
fa1503fa77
Apply suggestions from code review
Update DepthFirstSearch.java - signature removed, and whitespaces resolved

Co-Authored-By: Libin Yang <contact@yanglibin.info>
2019-05-10 19:48:02 +01:00
Libin Yang
ada660a4c3
refactor: update FastPower 2019-05-10 15:43:36 +08:00
Libin Yang
cac1b0b4c7
Delete FastPowerTest.java___jb_tmp___ 2019-05-10 15:42:55 +08:00
Libin Yang
1041b02e6b
refactor: update FastPower 2019-05-10 15:42:08 +08:00
yanglbme
fbffeb658c refactor: update FastPower 2019-05-10 15:39:18 +08:00
Libin Yang
64bd1a147e
Merge pull request #731 from DDullahan/Development
Added FastPower
2019-05-10 15:34:11 +08:00
yanglbme
184f644bd7 update binaryToGray 2019-05-10 15:16:01 +08:00
Libin Yang
0c015fc605
Merge pull request #734 from nbdgit/Development
Added Binary to Gray code conversion
2019-05-10 15:12:14 +08:00
yanglbme
8e8e14d1c2 refactor: format code and fix typos 2019-05-10 14:49:24 +08:00
Libin Yang
60bb026f8a
Update ExponentialSearch.java 2019-05-09 20:33:46 +08:00
Libin Yang
37e6717be9
Merge pull request #750 from abhijay94/Development
Added the algorithm and test cases for Exponential Search
2019-05-09 20:32:45 +08:00