Skip to main content

#LeetCode

Browse articles tagged with #LeetCode

  • DSA Problems

    Validate Binary Search Tree Algorithm Solution

    Complete Java implementation to validate if a binary tree is a valid BST with optimal time and space complexity considerations.

  • DSA Problems

    Subtree of Another Tree Java Solution

    Complete Java implementation for checking if one binary tree is a subtree of another, including multiple approaches and time complexity analysis.

  • DSA Problems

    Same Tree and Symmetric Tree Problems in Java

    Comprehensive Java solution for same tree and symmetric tree problems including recursive and iterative approaches with time and space complexity analysis.

  • DSA Patterns

    Number of Islands Problem Solution in Java

    Complete Java implementation for counting islands in a 2D grid using DFS and BFS approaches with time and space complexity analysis.

  • DSA Problems

    Path Sum II Java Solution with DFS and Backtracking

    Complete Java implementation for Path Sum II problem with detailed explanation of DFS approach and backtracking techniques for finding all root-to-leaf paths with target sum.

  • DSA Problems

    Diameter of Binary Tree Solution in Java

    Complete Java implementation for finding the diameter of a binary tree with optimal time and space complexity analysis.

  • DSA Problems

    Maximum Depth of Binary Tree Solution

    Complete Java implementation for finding maximum depth of binary tree with BFS and DFS approaches, including time/space complexity analysis.

  • DSA Patterns

    Validate Binary Search Tree with Bounds Propagation

    Complete Java solution for validating BST using bounds propagation technique with detailed time/space analysis and edge case handling.

  • DSA Problems

    Valid Parentheses Algorithm Solution

    Complete Java implementation for validating balanced parentheses using stack data structure with O(n) time and space complexity.

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.