CodenQuest
Sign In
Continue on iOS
Continue on Android
Questions
FAANG Interview Prep
To Land Your Dream Job
Array
0/7
Indices for Two Sum
Binary Search
Hash Table
Array
Find the indices of the two numbers in an array that add up to a specific target sum
10m
Unique Triplets with Zero Sum
Array
Find all unique triplets in an array that sum up to zero
25m
Unique Combinations
Backtracking
Array
Find combinations of integers summing to a target
30m
Largest Water Reservoir
Array
Find the maximum amount of water that can be held between two skyscrapers
15m
Minimum Element in Rotated Array
Binary Search
Array
Find the minimum element in a rotated sorted array
25m
Compute Product Except Current Element
Array
Find an array where each element is the product of all others
20m
Hot Air Balloon Booking
Sorting
Greedy
Array
Calculate the minimum number of hot air balloons needed to accommodate all flights without overlaps
25m
List
0/4
Merge Two Sorted Lists
Recursion
Linked List
Merge two sorted linked lists into one sorted linked list
15m
Reverse Linked List
Recursion
Linked List
Reverse a singly linked list
15m
Remove Nth Node
Linked List
Remove the nth node from the end of a linked list and return the head of the modified list
20m
Reorder List
Recursion
Linked List
Reorder a list by alternating the first and last elements in the sequence
35m
Intervals
0/3
Merge Overlapping Intervals
Array
Merge all overlapping intervals into a list of non-overlapping intervals
20m
Remove Intervals to Avoid Overlap
Dynamic Programming
Array
Find the minimum number of overlapping intervals to remove for non-overlapping intervals
20m
Interval Insertion
Array
Insert and merge a new interval into sorted, non-overlapping intervals
25m
String
0/5
Is Palindrome
String
Determine if a given string is a palindrome
10m
Valid Parentheses
Stack
String
Check if a string of parentheses, brackets, and braces is balanced
15m
Palindromic Substring
String
Find the length of the longest palindromic substring in a given string
20m
Longest Unique Substring
String
Find the length of the longest substring without repeating characters
20m
Minimum Window Substring
Hash Table
String
Find the smallest substring that contains all the characters of another string
30m
Matrix
0/4
Rotate Matrix
Matrix
Array
Rotate a N x N 2D matrix by 90 degrees clockwise
25m
Zero Matrix Transformation
Matrix
Array
Set entire rows and columns to zero if any element is zero in an m x n matrix
25m
Counting Islands
Breadth-First Search
Matrix
Depth-First Search
Count the number of islands formed by adjacent lands in a 2D grid
25m
Spiral Order Traversal
Matrix
Array
Return matrix elements in a spiral order
30m
Binary Tree
0/9
Check Identical Trees
Recursion
Binary Tree
Determine if two binary trees are identical
15m
Invert Binary Tree
Binary Tree
Breadth-First Search
Depth-First Search
Tree
Invert a binary tree by swapping all left and right child nodes
10m
BiTree Depth Calculation
Depth-First Search
Binary Tree
Determine the maximum depth of a binary tree from root to leaf
25m
Level Order Traversal of a Binary Tree
Breadth-First Search
Binary Tree
Return node values in level order traversal for a binary tree
30m
Subtree Check in BiTree
Depth-First Search
Binary Tree
Check if one binary tree is a subtree of another binary tree
15m
Validate BST
Validation
Recursion
Binary Tree
Check if a binary tree is a valid binary search tree
20m
BiTree Kth Min Value
Depth-First Search
Binary Tree
Return the kth smallest value from a binary search tree
20m
Serialize BST
Binary Tree
String
Convert a BST to a string
20m
Maximum Path Sum
Depth-First Search
Dynamic Programming
Binary Tree
Find the maximum path sum in a binary tree
30m
Bit Manipulation
0/4
Count Set Bits
Bit Manipulation
Return the number of 1s in the binary representation of a positive integer
15m
Reverse Bits
Bit Manipulation
Reverse the bits of a given 32-bit unsigned integer
10m
Binary Bit Count
Dynamic Programming
Bit Manipulation
Compute the number of 1's in the binary representation for each number from 0 to n
15m
Bitwise Integer Sum
Bit Manipulation
Math
Calculate the sum of two integers using bitwise operations instead of + or -
20m
Hash Table
0/6
Missing Number
Sorting
Array
Identify the smallest missing positive number in an unsorted array
20m
Check Anagram
String
Determine if one string is an anagram of another
10m
Maximize Substring with Character Changes
Hash Table
String
Find the longest substring with the same letter after changing up to k characters
25m
Longest Sequence of Consecutive Numbers
Hash Table
Array
Find the longest consecutive sequence length in an unsorted array
25m
Detect Array Duplicate
Hash Table
Array
Return true if the array contains duplicates, false if all elements are unique
10m
Frequent Elements
Sorting
Array
Identify the k most frequent elements in an integer array, returning them sorted by their frequency in ascending order
25m
Dynamic Programming
0/9
Robot Pathfinding
Dynamic Programming
Math
Calculate unique paths from top-left to bottom-right in an m x n grid
25m
Maximum Subarray Sum
Dynamic Programming
Array
Find the maximum sum of a contiguous subarray in an array of integers
15m
Array Jumps
Dynamic Programming
Array
Calculate the minimum number of jumps required to reach the end of an array
25m
Maximum Profit
Dynamic Programming
Array
Calculate the maximum profit that can be achieved with at most two transactions
40m
Minimum Coins for Toll
Dynamic Programming
Array
Determine the minimum number of coins required to make up a given amount
20m
Max Length of Ascending Subsequence
Dynamic Programming
Array
Calculate the maximum length of a strictly ascending subsequence within a given array
20m
Maximize Subarray Product
Dynamic Programming
Array
Find the maximum product of any subarray in an integer array
25m
Prize Collection II
Dynamic Programming
Array
Find the maximum prize you can collect from circular, non-adjacent contest booths
25m
Decoding Possibilities
Dynamic Programming
String
Count the number of ways to decode a numeric string using a given mapping
30m