Commit Graph

542 Commits

Author SHA1 Message Date
Alex Klymenko
aefc8fd4b8
refactor: HexToOct (#5377) 2024-08-24 11:32:50 +03:00
Alex Klymenko
44d7cbbaf4
test: NQueensTest (#5378) 2024-08-24 11:27:39 +03:00
Alex Klymenko
ce4eb55e0e
refactor: FloydTriangle (#5367) 2024-08-23 15:55:13 +03:00
Alex Klymenko
844aeaf701
refactor: LFUCache (#5369) 2024-08-23 14:23:16 +03:00
Alex Klymenko
d7b60be7d1
refactor: PermuteString (#5362) 2024-08-23 12:33:41 +03:00
Alex Klymenko
0301ecf1cb
refactor: Pow (#5364) 2024-08-23 11:59:20 +03:00
Alex Klymenko
fb55552ebb
refactor: fix typo (#5363) 2024-08-23 10:58:08 +03:00
Alex Klymenko
74b05ef7c2
refactor: fix typo in class name LongestNonRepetitiveSubstring (#5359) 2024-08-22 12:37:52 +03:00
Alex Klymenko
622a3bf795
refactor: cleanup AhoCorasick (#5358) 2024-08-22 11:08:17 +03:00
Alex Klymenko
8a89b42cf8
refactor: AnyBaseToDecimal (#5357) 2024-08-22 10:50:56 +03:00
Piotr Idzik
07dbc51e1b
feat: add temperature unit conversions (#5315)
Co-authored-by: Bama Charan Chhandogi <b.c.chhandogi@gmail.com>
2024-08-22 06:43:52 +00:00
Alex Klymenko
5149051e95
refactor: LinkedQueue (#5352) 2024-08-21 20:39:09 +03:00
Alex Klymenko
39ecf70857
refactor: GenericArrayListQueue (#5355) 2024-08-21 16:55:36 +03:00
Alex Klymenko
4c65530722
refactor: StackArrayList (#5356) 2024-08-21 14:00:05 +03:00
Alex Klymenko
a03353d3d3
refactor: Deque (#5353) 2024-08-21 13:39:01 +03:00
Alex Klymenko
e756a7d2d5
refactor: CircularQueue (#5354) 2024-08-21 13:26:21 +03:00
Alex Klymenko
f5c0314111
refactor: StackArray (#5349) 2024-08-20 13:10:18 +03:00
Alex Klymenko
8712a7f405
refactor: Queue (#5348) 2024-08-20 00:03:19 +03:00
Alex Klymenko
04eae87512
refactor: DynamicArray (#5346) 2024-08-19 11:15:47 +03:00
Alex Klymenko
33fd79ad55
refactor: OctalToHexadecimal (#5345) 2024-08-18 22:03:28 +03:00
Alex Klymenko
a9f5b82708
refactor: OctalToDecimal (#5344) 2024-08-18 21:58:57 +03:00
Alex Klymenko
2905ccbb20
refactor: DecimalToAnyBase (#5343) 2024-08-18 21:45:30 +03:00
Alex Klymenko
404ad7272f
refactor: Bag data structure (#5340) 2024-08-17 22:31:29 +03:00
Alex Klymenko
e8985b3edb
refactor: BinaryToOctal (#5338)
* refactor: BinaryToOctal

* checkstyle: fix formatting

* refactor: adding input correctness case, cover by tests. Renaming variable

---------

Co-authored-by: alxkm <alx@alx.com>
Co-authored-by: Bama Charan Chhandogi <b.c.chhandogi@gmail.com>
2024-08-17 19:06:45 +00:00
Alex Klymenko
25b6aebe45
refactor: DecimalToHexadecimal (#5337) 2024-08-17 21:58:50 +03:00
Alex Klymenko
d80fd0c623
refactor: DecimalToBinary (#5339) 2024-08-17 21:35:36 +03:00
mountdisk
7c58b190c8
chore: fix some comments (#5333) 2024-08-16 20:19:15 +03:00
Alex Klymenko
98bee26d51
refactor: Dijkstra algorithm (#5329) 2024-08-16 17:55:42 +03:00
Alex Klymenko
e32cab3189
refactor: BinaryToDecimal (#5330) 2024-08-16 17:48:47 +03:00
Alex Klymenko
c20375ae0f
refactor: BinaryToHexadecimal (#5331) 2024-08-16 17:43:54 +03:00
Alex Klymenko
ec30592fcb
refactor: DecimalToOctal (#5332) 2024-08-16 10:07:27 +03:00
Alex Klymenko
a84a4a29ed
refactor: cleanup InsertionSort (#5322) 2024-08-15 11:48:23 +03:00
Alex Klymenko
046f5a4728
refactor: atoi (#5324) 2024-08-15 11:43:47 +03:00
Alex Klymenko
134b42c7ff
refactor: BloomFilter (#5325) 2024-08-15 11:30:53 +03:00
Alex Klymenko
777de1da99
refactor: cleanup CycleSort (#5321) 2024-08-15 11:25:23 +03:00
Alex Klymenko
8d0dd3ef32
refactor: cleanup DualPivotQuickSort (#5319) 2024-08-13 19:30:35 +03:00
Alex Klymenko
41f76e0e89
refactor: simple improvements and cleanup for different sorts (#5320) 2024-08-13 19:26:48 +03:00
Alex Klymenko
2837585705
refactor: IntrospectiveSort (#5316) 2024-08-11 21:00:47 +03:00
Alex Klymenko
66bfaff807
refactor: cleanup CocktailShakerSort (#5317) 2024-08-11 20:55:11 +03:00
Alex Klymenko
554b6cf006
refactor: simple improvements and cleanup for different sorts (#5318) 2024-08-11 20:44:22 +03:00
Alex Klymenko
197718842f
refactor: cleanup BucketSort (#5314) 2024-08-10 14:21:44 +03:00
Alex Klymenko
7a5fe92b2a
feat: FlashSort implementation (#5305) 2024-08-10 10:25:46 +03:00
Bayram Turgut
324a35a939
Update GrahamScan.java (#5310)
* Update GrahamScan.java

improved the Javadoc comments, clarified some methods in the Point class, and corrected some text.

* Minor adjustment to GrahamScan.java

* revised GrahamScan.java

* Update-2 GrahamScan.java

* clang format GrahamScan.java

* reverted GrahamScan.java

* minor updates.java

* minor updates

* Spc.java

* clang format

---------

Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-08-09 15:03:54 +03:00
congyuluo
cafea1ee52
Refactored Identifiers (#5306)
Co-authored-by: Bama Charan Chhandogi <b.c.chhandogi@gmail.com>
2024-08-08 19:39:00 +05:30
Alex Klymenko
6e23e198ab
feat: SpreadSort implementation (#5308) 2024-08-08 10:45:33 +03:00
Bayram Turgut
6f521145cc
Update Average.java (#5309)
* Update Average.java

- Made the constructor throw an UnsupportedOperationException to prevent instantiation, making it explicit that this is a utility class.
- Added a private validateInput method to handle validation, reducing code duplication and improving readability.
- Consistent exception messages and handling for both methods.
- Improved comments to be more descriptive and follow JavaDoc conventions.
- Enhanced code readability and maintained consistent formatting.

* Minor Update Average.java

* Change To Average.java

* Mnr Average.java

* Update_Average.java

* Fix Average.java

1. throw new IllegalArgumentException("Numbers array cannot be empty or null");

2. int --> double

* fix2.java

return(double)..
2024-08-04 23:45:54 +05:30
Alex Klymenko
fccd141014
refactor: cleanup CombSort (#5303)
refactor: cleanup CombSort

Co-authored-by: Alex Klymenko <alx@alx.com>
2024-08-02 09:06:45 +02:00
Alex Klymenko
5113101e5d
refactor: cleanup ShellSort (#5302) 2024-07-26 09:55:11 +03:00
Alex Klymenko
ebed8b38b8
refactor: cleanup PigeonholeSort (#5298)
* refactor: PigeonholeSort

* checkstyle: fix formatting

* checkstyle: make class final

* refactor: changing negative numbers check first, fix typo, adding one more test for negative numbers

---------

Co-authored-by: Alex Klymenko <alx@alx.com>
Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com>
2024-07-25 21:55:27 +02:00
Alex Klymenko
76a450fb75
feat: add PatienceSort (#5288)
* feat: PatienceSort

* refactor: fix readability issues,a and redundant check

---------

Co-authored-by: alxklm <alx@alx.com>
2024-07-24 17:32:47 +02:00