Commit Graph

802 Commits

Author SHA1 Message Date
Du Yuanchao
56a611a9e1
Merge pull request #1462 from geogiadim/Development
Implementation for Round Robin Algorithm in Java with tests
2020-09-17 09:43:12 +08:00
shellhub
be160de58b format code 2020-09-17 09:36:07 +08:00
geogiadim
72efcaa564 Implementation for Round Robin Algorithm in Java with tests 2020-09-17 09:25:54 +08:00
Du Yuanchao
3c71071e2b
Merge pull request #1465 from shellhub/Development
Fixed syntax error
2020-09-17 09:23:53 +08:00
shellhub
bdaabbb2aa fixed syntax error 2020-09-17 09:17:36 +08:00
Du Yuanchao
18b2930d4f
Merge pull request #1464 from shellhub/Development
Fixed actions on pull requests
2020-09-17 09:13:20 +08:00
shellhub
8e9482682c actions on pull requests 2020-09-17 09:08:23 +08:00
Du Yuanchao
452fa5659c
Merge pull request #1434 from TheAlgorithms/revert-1432-revert-1429-Development
Revert "Revert "Fixed code smells after running sonarqube on the project""
2020-08-25 21:26:26 +08:00
Du Yuanchao
87485b0109
Revert "Revert "Fixed code smells after running sonarqube on the project"" 2020-08-25 21:25:56 +08:00
Du Yuanchao
dcdd17d4c9
Merge pull request #1433 from abhijaykumar/Development
Added LinkedHashMap cache type params to avoid build error
2020-08-25 20:50:26 +08:00
Abhijay Kumar
dd3b2d2ac1 Fixed code smells detected by SonarQube - PR#1429
https://github.com/TheAlgorithms/Java/pull/1429
2020-08-25 18:11:29 +05:30
Abhijay Kumar
32b02af2bb Merge branch 'Development' of https://github.com/TheAlgorithms/Java into Development 2020-08-25 18:08:46 +05:30
Abhijay Kumar
60c77e5730 Added cache type params to avoid build error on jdk8 2020-08-25 17:42:24 +05:30
Du Yuanchao
84914c878f
Merge pull request #1432 from TheAlgorithms/revert-1429-Development
Revert "Fixed code smells after running sonarqube on the project"
2020-08-25 19:45:31 +08:00
Du Yuanchao
e7304d367e
Revert "Fixed code smells after running sonarqube on the project" 2020-08-25 19:43:59 +08:00
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