Questions by Difficulty
Practice problems organized by difficulty level to match your skill progression.
Easy Questions
28 questionsTwo Sum
ArrayFind two numbers that add up to a target using hash map.
Valid Parentheses
StackCheck if parentheses string is valid using stack approach.
Reverse a Linked List
Linked ListReverse a singly linked list using iterative approach.
Merge Strings Alternately
StringsMerge two strings by alternating their characters.
Palindrome Number
MathCheck if an integer is a palindrome without converting to string.
Merge Two Sorted Lists
Linked ListMerge two sorted linked lists using dummy node approach.
Binary Tree Inorder Traversal
TreeTraverse binary tree inorder using recursive and iterative approaches.
Best Time to Buy and Sell Stock
ArrayFind maximum profit from stock prices using two pointers approach.
Valid Anagram
StringCheck if two strings are anagrams using hash map approach.
Maximum Depth of Binary Tree
TreeCalculate the maximum depth of a binary tree using recursive approach.
Climbing Stairs
Dynamic ProgrammingCount distinct ways to climb stairs using 1 or 2 steps at a time. Fibonacci pattern.
Contains Duplicate
ArrayCheck if array contains any duplicate values using hash set approach.
Binary Search
Binary SearchSearch sorted array by repeatedly dividing search space in half. O(log n) complexity.
Remove Element
ArrayRemove all occurrences of a value in-place using two pointers technique.
Length of Last Word
StringFind the length of the last word in a string using reverse traversal approach.
Plus One
ArrayIncrement a large integer represented as a digit array by one using in-place carry propagation.
Add Binary
StringAdd two binary strings and return their sum using carry propagation from right to left.
Symmetric Tree
TreeCheck if binary tree is symmetric using recursive mirror comparison approach.
Maximum Depth of N-ary Tree
TreeFind maximum depth of N-ary tree using recursive DFS or iterative BFS.
Path Sum
TreeCheck if tree has root-to-leaf path where values sum to target.
Minimum Depth of Binary Tree
TreeFind the minimum depth using BFS or DFS approach.
Remove Duplicates from Sorted Array
ArrayRemove duplicates in-place using two pointers technique.
Move Zeroes
ArrayMove all zeroes to the end while maintaining non-zero order.
Linked List Cycle
Linked ListDetect cycle using Floyd's Tortoise and Hare algorithm.
Sqrt(x)
Binary SearchCompute integer square root using binary search.
Balanced Binary Tree
TreeCheck if binary tree is height-balanced using recursive depth calculation.
Convert Sorted Array to Binary Search Tree
TreeBuild a height-balanced BST from sorted array using divide and conquer.
Invert Binary Tree
TreeInvert a binary tree by swapping left and right nodes recursively. Create a mirror image.
Medium Questions
3 questionsAdd Two Numbers
Linked ListAdd two numbers represented as linked lists with carry handling.
Longest Substring Without Repeating Characters
StringFind the longest substring without repeating characters using sliding window technique.
Merge Intervals
ArrayMerge all overlapping intervals using sorting approach.
Hard Questions
Coming SoonHard Questions Coming Soon
We're working on adding more hard difficulty problems. Check back soon!
More questions coming soon! Check back regularly for updates.