Loading
3 posts about Java algorithm by 1 contributor.
Know Java algorithm? Share what you know with developers who are learning it.
Learn how to solve the "Triplets with Sum in Range" problem in Java with an optimal $O(n^2)$ time complexity and $O(1)$ auxiliary space using sorting and the two-pointer technique.

Learn an O(n) Java solution for finding the maximum-sum contiguous subarray with length at least K using Kadane's algorithm and a sliding window.
Find the maximum sum path in two sorted arrays with distinct integers, allowing switches at common elements.
Publish an article in this category and earn +1,000 SHARP when it is approved.
Write an article