Skip to main content

#Two Pointers

Browse articles tagged with #Two Pointers

  • DSA Patterns

    Fast Slow Pointer Algorithm Patterns in Java

    Comprehensive guide to fast/slow pointer techniques for linked list cycle detection, middle element finding, and related algorithmic problems with Java implementations.

  • 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

    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

    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.

  • DSA Patterns

    Longest Substring Without Repeating Characters

    Comprehensive Java solution for finding the longest substring without repeating characters using sliding window technique with detailed complexity analysis and edge case handling.

  • DSA Patterns

    Reverse String and Palindrome Check Algorithms

    Comprehensive Java solutions for string reversal and palindrome validation with multiple approaches and performance analysis.

  • DSA Patterns

    Minimum Window Substring Problem Solution

    Complete Java implementation of the sliding window technique for finding the minimum window substring containing all characters from a target string.

  • DSA Problems

    Longest Palindromic Substring Algorithm Solution

    Complete Java implementation with optimal time and space complexity for finding the longest palindromic substring using expand around centers approach.

  • DSA Patterns

    Merge Sorted Arrays Algorithm Solution

    Complete Java implementation of merge sorted arrays with optimal time and space complexity analysis for FAANG technical interviews.

  • DSA Problems

    Valid Palindrome Problem Solution

    Complete Java implementation for validating palindromes with detailed complexity analysis and edge case handling.

Stay in the Loop

Get curated DSA patterns, coding problems, frontend and backend LLD/HLD, and AI/ML System Design insights delivered straight to your inbox. No spam, just focused interview and engineering content.