Commit Graph

5 Commits

Author SHA1 Message Date
02RdDT
616d15a408 Shortest coprime segment using sliding window technique (#6296)
* Shortest coprime segment using sliding window technique

* mvn checkstyle passes

* gcd function reformatted

* fixed typo in ShortestCoprimeSegment

* 1. shortestCoprimeSegment now returns not the length, but the shortest segment itself.
2. Testcases have been adapted, a few new ones added.

* clang formatted ShortestCoprimeSegmentTest.java code
2025-06-18 21:29:35 +02:00
PANKAJ PATWAL
bca8d0efe0 Add Longest Subarray With Sum Less Than or Equal to K algorithm (#6042) 2024-10-27 22:54:30 +02:00
Rashi Dashore
03777f8d88 Add MinSumKSizeSubarray algorithm (#6025) 2024-10-26 14:54:53 +00:00
PANKAJ PATWAL
0f1dcbe479 Add longest substring (#6007) 2024-10-25 20:18:40 +00:00
PANKAJ PATWAL
bc9645c0ea Add Sliding Window algorithm and tests for maximum sum of subarray (#6001) 2024-10-25 20:38:26 +03:00