- DSA Problems
Three Sum Problem Solution and Algorithm Analysis
Complete Java implementation of the three sum algorithm with optimal time complexity and space considerations for FAANG interviews.
- DSA Problems
Reverse String or Reverse Vowels of a String Problem
Complete Java solution for reversing strings and vowels with optimal time and space complexity analysis.
- DSA Patterns
3Sum Problem Solution - Efficient Algorithm for Finding Triplets
Complete Java solution for the classic 3Sum algorithm with two-pointer technique, including time complexity analysis and edge case handling.
- DSA Patterns
Trapping Rain Water Algorithm Solution
Complete Java implementation of the trapping rain water problem with multiple approaches including two-pointer and dynamic programming techniques.
- DSA Problems
Trapping Rain Water Algorithm Solution
Comprehensive Java implementation of the trapping rain water problem with optimal time and space complexity analysis.
- DSA Patterns
Container With Most Water Algorithm Solution
Complete Java implementation of the container with most water problem using two-pointer technique with O(n) time and space complexity analysis.
- DSA Problems
Container With Most Water Algorithm Solution
Complete Java implementation of the container with most water problem using two-pointer technique with O(n) time and space complexity analysis.
- DSA Patterns
Pair Sum in Sorted Arrays Algorithm
Complete Java solution for finding pairs that sum to a target value in sorted arrays using two-pointer technique with O(n) time complexity.
- DSA Problems
Pair Sum in Sorted Array Algorithm Solution
Efficient Java implementation to find two numbers in a sorted array that sum to a target value using two-pointer technique.
- DSA Problems
First Unique Character in a String Algorithm
Find the first non-repeating character in a string and return its index, with optimal time and space complexity solutions.
- DSA Patterns
Prefix Sum with Hash Maps for Subarray Problems
Master prefix sum techniques with hash maps to efficiently solve subarray sum problems including contiguous subarrays and range queries.
- DSA Problems
Four Sum Problem Solution with Two Pointers Approach
Complete Java implementation of 4Sum problem using sorting and two-pointer technique with O(n³) time complexity and O(1) space solution.
#LeetCode
Browse articles tagged with #LeetCode