Commit Graph

787 Commits

Author SHA1 Message Date
Du Yuanchao
e55f994a4f
Merge pull request #1429 from abhijaykumar/Development
Fixed code smells after running sonarqube on the project
2020-08-25 19:39:54 +08:00
Abhijay Kumar
2d797fb976 Corrected code smells with raw type and dangling else block
-Generic types shouldn't be used raw (without type parameters) in variable declarations or return values. Doing so bypasses generic type checking, and defers the catch of unsafe code to runtime. https://rules.sonarsource.com/java/RSPEC-3740
- The dangling else problem appears when nested if/else statements are written without curly braces. In this case, else is associated with the nearest if but that is not always obvious and sometimes the indentation can also be misleading.
https://rules.sonarsource.com/java/tag/confusing/RSPEC-5261
2020-08-21 15:59:02 +05:30
Abhijay Kumar
6aecb37b49 Removing unused generic variable - code smell 2020-08-21 15:35:58 +05:30
Abhijay Kumar
57c1967be0 Added constant for string literal - code smell
String literals should not be duplicated
https://rules.sonarsource.com/java/RSPEC-1192
2020-08-21 15:07:49 +05:30
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
Stepfen Shawn
56a527aa26
Merge pull request #1385 from varnaa/Development
Added LRU cache implementation.
2020-08-03 07:27:29 +08:00
varnaa
5466ff0d57 Added LRU cache implementation. 2020-08-02 22:20:39 +05:30
Stepfen Shawn
80b765ba30
Merge pull request #1371 from tanmaylaud/Development
Added LFU Cache implementation
2020-07-27 14:51:47 +08:00
Tanmay
36e23bb402 Added LFU cache implementation 2020-07-26 17:12:45 +05:30
Sombit Bose
bf223bbf56
Merge pull request #1341 from alai32002/Development
add junit for test paass
2020-06-07 22:23:11 +05:30
jieli
17ae1c6137 add junit for test paass 2020-06-04 17:48:57 +08:00
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
Stepfen Shawn
8426bedf86
Merge pull request #1307 from SageTendo/Development
CaesarBruteForce
2020-05-10 22:44:33 +08: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
Anirudh
6111fb7629
Merge pull request #1289 from iheb1196/Development
Integer Queue
2020-04-29 21:29:28 +05:30
iheb1196
c6c6fffac9 IntQueue 2020-04-29 11:16:38 +01:00
Anirudh
a3c111b5f5
Merge pull request #1288 from MohamedBechir/Development
Add singly linked list
2020-04-29 13:00:57 +05:30
MohamedBechir
f82bf1a149 Add singly linked list 2020-04-28 01:39:18 +01:00
Stepfen Shawn
9086252da5
Merge pull request #1256 from BenceLakos/feature/ternary
Implement ternary search
2020-04-18 10:16:04 +08: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
Yang Libin
d678faeab6
Merge pull request #1240 from leny-mi/Development
Fix maven link and correct Stack implementation
2020-03-15 15:34:23 +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
Inluminous
573b1ce056 Update Maven URL from HTTP to HTTPS
Since January 15, 2020 Maven Central no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS.
2020-03-07 16:10:38 +01:00
Yang Libin
8b416b1267
Merge pull request #1199 from myronrotter/Development
Add simple gradle workflow for Development
2020-01-12 09:42:45 +08:00
Myron Rotter
f015210382 Add simple gradle workflow 2020-01-04 11:04:48 +01:00
Yang Libin
3fe20e3eff
Merge pull request #1186 from ali4j/Development
Decorator pattern Implementation
2019-12-15 10:06:51 +08: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
Ehsan
15d0f56c7a
Merge pull request #2 from TheAlgorithms/Development
merging thealgorithms/java to ali4j/java dev branch
2019-12-11 21:31:32 +03:30
Yang Libin
5ec13c6bcb
Merge pull request #1180 from myidrajkumar/Development
Fixing 'Generics' issue in Sort
2019-12-08 16:19:38 +08:00
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
Yang Libin
6ad2c9ff3b
Merge pull request #1178 from ali4j/Development
Adding Proxy Design Pattern
2019-11-28 11:33:47 +08:00
ali4j
5d790266e7 adds proxy design pattern. 2019-11-03 18:05:40 +03:30
Yang Libin
6c8151f64e
Merge pull request #902 from renjithgr/Development
Use Gradle instead of Maven
2019-09-28 14:43:55 +08:00
Renjith
98982f8f25 Converting to a gradle project 2019-09-27 22:35:00 -07:00
Yang Libin
3750999f5a
Merge pull request #795 from laingke/Development
* Add Maven frameworks support
* close #529 
* close #815
2019-08-27 16:43:07 +08:00
laingke
d6002f87da docs: update README 2019-07-19 14:40:15 +08:00
laingke
87693f051c fix: Correct the package path and reference 2019-07-19 14:32:02 +08:00
laingke
d579b8e903 feat: Add Maven frameworks support.
1. Add JUnit Jupiter dependency;
2. Add maven-resources-plugin to fix path problem in SimplexNoise testcase;
3. Add maven-compiler-plugin to tell the default compiler version;
2019-07-19 14:16:37 +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