Archive
Counting Subarrays with Sum Equal to K: A Prefix Sum Approach in Java
Spiral Traversal of a matrix
Rotating a Matrix by 90 Degrees: A Java Implementation
Finding the Next Lexicographical Permutation in Java
Kadane's Algorithm
Moore's Voting Algorithm
Two Sum Problem
Finding the Longest Subarray with a Given Sum: A Java Implementation (Handles Positive and Negative Numbers)
Quick Sort
Merge Sort
Mastering Insertion Sort: A Step-by-Step Guide
BubbleSort
Selection Sort