- DSA Problems
Number of Islands Problem Solution
Complete Java implementation for counting connected land cells in a 2D grid using DFS and BFS approaches.
- DSA Problems
Design Search Suggestions System
Implementation of a search suggestions system with autocomplete functionality using trie data structure and priority queue for efficient result retrieval.
- DSA Problems
Add and Search Word Data Structure Implementation
Complete Java solution for designing a word dictionary with add and search functionality using Trie data structure.
- 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 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
Convert Sorted Array to Binary Search Tree
Learn to convert a sorted array into a height-balanced binary search tree using divide-and-conquer approach with O(n) time and space complexity.
- DSA Problems
Lowest Common Ancestor of a BST
Find the lowest common ancestor in a binary search tree using iterative and recursive approaches with O(log n) time complexity.
- 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
Insert into a BST - Java Solution with Recursive and Iterative Approaches
Complete Java implementation for inserting a value into a Binary Search Tree with both recursive and iterative solutions, including time/space complexity analysis.
- DSA Problems
Kth Smallest Element in a BST - Efficient Tree Traversal Solution
Learn to find the kth smallest element in a Binary Search Tree using iterative inorder traversal with O(h) space 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.
FAANG Data Structures & Algorithms Problems Guide
A curated catalog of concrete data structures and algorithms problems. Use it to plan practice, track coverage, and rehearse solutions with a repeatable approach.