Skip to main content

#LeetCode

Browse articles tagged with #LeetCode

  • DSA Problems

    Word Search II Java Solution with Trie and DFS

    Complete Java implementation for Word Search II problem using Trie data structure and depth-first search with backtracking.

  • DSA Patterns

    Sorting and Merging Intervals in Java

    Complete Java solution for interval sorting problems including merge intervals, interval scheduling, and overlap detection with optimal time complexity.

  • DSA Problems

    Implement Trie (Prefix Tree) Data Structure in Java

    Complete Java solution for implementing a Trie (Prefix Tree) data structure with insert, search, and startsWith operations optimized for string prefix matching.

  • DSA Problems

    Delete Node in a BST

    Learn how to delete a node from a Binary Search Tree while maintaining BST properties and optimal time complexity.

  • 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.

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.