Commit Graph

27 Commits

Author SHA1 Message Date
timis1 e812b299bd
JAVA-32783 Split or move algorithms-miscellaneous-7 (#16317)
Co-authored-by: timis1 <noreplay@yahoo.com>
2024-04-10 00:03:56 +02:00
alexyang 7edeb43ed1
BAEL-7598 Check if a number is a perfect number (#16039)
* BAEL-7598 Check if a number is a perfect number

* add stream based method. refactor UT

* refactor UT using bdd style

* removes public modifier

* add jmh benchmark

* use properties and remove uncessary configuration

---------

Co-authored-by: alexyang <alexyang0623@gmail.com>
Co-authored-by: travel2china <163321917+travel2china@users.noreply.github.com>
2024-04-05 16:17:28 +02:00
timis1 cc90a0b8bb
JAVA-31057 Check if large files can be removed (#16278)
* JAVA-31057 Check if large files can be removed

* JAVA-31057 Remove un-needed files from spring boot telegram

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
2024-04-04 23:24:46 +02:00
Liam Williams 0902917c82
Merge pull request #16082 from sk1418/happy-number
[happy-number] happy number
2024-03-26 13:27:54 +00:00
Graham Cox 30a5cddce0
Updates for BAEL-7496 (#16150)
* Moved vigenere cipher code to a new module

* New test case for encoding and decoding together
2024-03-21 06:34:48 +01:00
Kai.Yuan 11ee2130cc [happy-number] renaming method 2024-03-10 18:05:49 +01:00
Neetika23 eb3460d9ac
Code to find largest number after removing K digits from a number (#16060)
Co-authored-by: Neetika Khandelwal <kwal.neetika2398@gmail.com>
2024-03-09 20:03:59 +01:00
Graham Cox e1a2eed0d9
BAEL-7496: Vigenère Cipher in Java (#16072) 2024-03-09 11:18:55 +01:00
Kai.Yuan c3b389f4dc [happy-number] happy number 2024-03-09 00:09:04 +01:00
vunamtien 2dc927ea9b
BAEL-7555-count-unique-digit-in-integer (#15933)
* BAEL-7555-count-unique-digit-in-integer

* rename test case

* add solution using stream
2024-03-06 18:47:29 +01:00
Pedro Lopes c39267bbf9
BAEL-7410: Finding Parent of a Node in a Binary Tree (#15736)
* adding the parent method. wrapping up structure of tree

* wrapping up recursive solution with edge cases. tests passing

* refactor parent function for clarity

* renaming Test class to suffix UnitTest

* adding iterative version tests. adding parent keeper tree and tests

* final adjustments

* adding review suggestions

* fix requested changes

* Revert "fix requested changes"

This reverts commit e52d3e6531668f99c415939c195bb4bbdd349bae.

* reverting bad commit

* adding variable for notFoundMesage

* fixing package names. fix test names
2024-03-06 18:06:56 +01:00
Liam Williams 2a48b85f4d
Merge pull request #16004 from sk1418/juggler-sequence
[juggler-sequence] juggler seq
2024-03-04 20:25:51 +00:00
Kai.Yuan 812b2ec89d [juggler-sequence] juggler seq 2024-02-29 11:39:55 +08:00
lucaCambi77 c5a3c01108
Check if two strings are rotations of each other [BAEL-7493] (#15864)
* feat: string rotation

* fix: test names
2024-02-20 21:43:07 -06:00
vunamtien cf5842a3ab
BAEL-7358-find-prime-under-given (#15888) 2024-02-15 15:54:14 +01:00
Graham Cox c72cb4238c
Calculate Weighted Mean in Java (#15644)
Co-authored-by: Grzegorz Piwowarek <gpiwowarek@gmail.com>
2024-01-26 19:41:08 +01:00
Loredana Crusoveanu d5fd32b955 add missing files 2024-01-16 15:47:17 +02:00
Tapan Avasthi 7f9d025510 BAEL-7328: Find All Missing Numbers From a Given Array in Java (#15443)
Co-authored-by: Tapan Avasthi <tavasthi@Tapans-MacBook-Air.local>
2024-01-03 20:32:15 -06:00
edizor 9ba05068aa Create README.md
[skip ci]
2023-11-05 13:45:06 +08:00
Graham Cox 0422349dab BAEL-7088: Code for Connect 4 Article (#15099)
* BAEL-7088: Code for Connect 4 Article

* Renamed test
2023-10-31 19:07:06 +01:00
lucaCambi77 d5b2f61ea0 BAEL-6913 - Rotate array in java (#14861)
* feat: rotate array in java

* fix: When to when
2023-10-10 20:35:10 -05:00
Harry9656 12a678018f BAEL-6868: Implement Distance Calculation formulas. (#14576) 2023-08-22 09:09:38 +05:30
Arya 01c02e151e Getting Pixel Array From Image in Java (#13911)
* Added the code for "Getting Pixel Array From Image in Java".

* The code and resources for "Getting Pixel Array From Image in Java".

* Removed the previous files from the wrong module.
2023-04-26 16:52:53 -07:00
vunamtien f3e685a231 BAEL-6168-find-most-frequent-elements-java-array (#13633)
* BAEL-6168-find-most-frequent-elements-java-array

* update method use stream

---------

Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2023-03-21 21:44:57 +01:00
vunamtien 69ef18b53a BAEL-6168-find-most-frequent-elements-java-array (#13620)
Co-authored-by: tienvn4 <tienvn4@ghtk.co>
2023-03-11 17:58:46 +01:00
panos-kakos 82757b243a [JAVA-18123] Upgraded algorithms-modules to java 11 + Upgraded unit t… (#13437)
* [JAVA-18123] Upgraded algorithms-modules to java 11 + Upgraded unit tests to junit5

* [JAVA-18123] Clean up properties

---------

Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
2023-02-07 20:12:21 +05:30
Shaun Phillips 94ecd00052 CS-868 Add Luhn Algorithm (#12594)
* CS-868 Add Luhn Algorithm
2022-08-21 08:32:00 -06:00