Home / By Difficulty

Questions by Difficulty

Practice problems organized by difficulty level to match your skill progression.

Easy Questions

28 questions

Two Sum

Array

Find two numbers that add up to a target using hash map.

Valid Parentheses

Stack

Check if parentheses string is valid using stack approach.

Reverse a Linked List

Linked List

Reverse a singly linked list using iterative approach.

Merge Strings Alternately

Strings

Merge two strings by alternating their characters.

Palindrome Number

Math

Check if an integer is a palindrome without converting to string.

Merge Two Sorted Lists

Linked List

Merge two sorted linked lists using dummy node approach.

Binary Tree Inorder Traversal

Tree

Traverse binary tree inorder using recursive and iterative approaches.

Best Time to Buy and Sell Stock

Array

Find maximum profit from stock prices using two pointers approach.

Valid Anagram

String

Check if two strings are anagrams using hash map approach.

Maximum Depth of Binary Tree

Tree

Calculate the maximum depth of a binary tree using recursive approach.

Climbing Stairs

Dynamic Programming

Count distinct ways to climb stairs using 1 or 2 steps at a time. Fibonacci pattern.

Contains Duplicate

Array

Check if array contains any duplicate values using hash set approach.

Binary Search

Binary Search

Search sorted array by repeatedly dividing search space in half. O(log n) complexity.

Remove Element

Array

Remove all occurrences of a value in-place using two pointers technique.

Length of Last Word

String

Find the length of the last word in a string using reverse traversal approach.

Plus One

Array

Increment a large integer represented as a digit array by one using in-place carry propagation.

Add Binary

String

Add two binary strings and return their sum using carry propagation from right to left.

Symmetric Tree

Tree

Check if binary tree is symmetric using recursive mirror comparison approach.

Maximum Depth of N-ary Tree

Tree

Find maximum depth of N-ary tree using recursive DFS or iterative BFS.

Path Sum

Tree

Check if tree has root-to-leaf path where values sum to target.

Minimum Depth of Binary Tree

Tree

Find the minimum depth using BFS or DFS approach.

Remove Duplicates from Sorted Array

Array

Remove duplicates in-place using two pointers technique.

Move Zeroes

Array

Move all zeroes to the end while maintaining non-zero order.

Linked List Cycle

Linked List

Detect cycle using Floyd's Tortoise and Hare algorithm.

Sqrt(x)

Binary Search

Compute integer square root using binary search.

Balanced Binary Tree

Tree

Check if binary tree is height-balanced using recursive depth calculation.

Convert Sorted Array to Binary Search Tree

Tree

Build a height-balanced BST from sorted array using divide and conquer.

Invert Binary Tree

Tree

Invert a binary tree by swapping left and right nodes recursively. Create a mirror image.

Medium Questions

3 questions

Hard Questions

Coming Soon
đźš§

Hard Questions Coming Soon

We're working on adding more hard difficulty problems. Check back soon!

More questions coming soon! Check back regularly for updates.