Coding
See all these frontend coding interview questions and solutions!
Total: 152
Two Sum
Valid Parentheses
Merge Two Sorted Lists
Merge K Sorted Lists
Best Time to Buy and Sell Stock
Valid Palindrome
Valid Anagram
3Sum
Random Pick with Weight
Text Justification
Container With Most Water
Sliding Window Maximum
Flood Fill
Linked List Cycle
Minimum Window Substring
Longest Substring Without Repeating Characters
Reverse Linked List
Middle of the Linked List
Array.prototype.flat()
Array.prototype.forEach()
Array.prototype.map()
Array.prototype.reduce()
Convert Hex Color to RGBA
Currying
Debounce
Event Emitter
Find Next Right Sibling
Invert Binary Tree
Previous Left Sibling
Roman Numerals to Integer
Serialize and Deserialize Binary Tree
Throttle
Traverse DOM Level by Level (Flatten)
Virtual DOM
Remove K Digits
Contains Duplicate
Missing Number
Find All Numbers Disappeared in an Array
Single Number
Convert 1D Array into 2D Array
Product of Array Except Self
Find the Duplicate Number
Find All Duplicates in an Array
Set Matrix Zeroes
Spiral Matrix
Data Fetching Histogram
Rotate Image
Longest Consecutive Sequence
First Missing Positive
Climbing Stairs
Maximum Subarray
Range Sum Query - Immutable
Counting Bits
Image Carousel
Snake
Modal Overlay
Target Sum
House Robber
Mortgage Calculator
Trapping Rain Water
Coin Change
Maximum Product Subarray
Longest Increasing Subsequence
Longest Palindromic Substring
Word Break
Combination Sum IV
Decode Ways
Unique Paths
Number of Longest Increasing Subsequence
Palindromic Substrings
Jump Game
Partition Equal Subset Sum
Partition to K Equal Sum Subsets
Binary Search
sqrt(x)
Peak Index in a Mountain Array
Find Peak Element
Find Minimum in Rotated Sorted Array
Search a 2D Matrix
Maximum Depth of Binary Tree
Same Tree
Diameter of Binary Tree
Lowest Common Ancestor of a Binary Search Tree
Lowest Common Ancestor of a Binary Tree
Balanced Binary Tree
Longest Substring with at Most Two Distinct Characters
Validate Binary Search Tree
Insert into a Binary Search Tree
Permutations
Path Sum
Path Sum II
Path Sum III
Course Schedule
Course Schedule II
Clone Graph
Pacific Atlantic Water Flow
Graph Valid Tree
Word Search
Word Search II
Implement Trie Prefix Tree
Design Search Autocomplete System
Reverse Polish Notation
Letter Combinations of a Phone Number
Maximum Width of Binary Tree
Binary Tree Maximum Path Sum
Subsets
Find Leaves of Binary Tree
Find Duplicate Subtrees
Combinations
Combination Sum
Combination Sum II
Combination Sum III
Palindrome Partitioning
Strobogrammatic Number II
Generate Parentheses
Generalized Abbreviation
Sudoku Solver
Meeting Rooms
Meeting Rooms II
Binary Tree Level Order Traversal
Binary Tree Zigzag Level Order Traversal
Kth Smallest Element in a Sorted Matrix
Kth Largest Element in an Array
Median of Two Sorted Arrays
Insert Interval
Merge Intervals
01 Matrix
Shortest Path in a Grid with Obstacles Elimination
Remove nth Node from End of List
Alien Dictionary
Build Text File Folder Structure UI
Logger Rate Limiter
Design Hit Counter
Race Car
Longest Increasing Path in a Matrix
Find Median from Data Stream
Step by Step Directions from a Binary Tree Node to Another
Employee Free Time
Robot Room Cleaner
Battleships in a Board
Subtree of Another Tree
Construct Binary Tree from Preorder and Inorder Traversal
Convert Sorted Array to Binary Search Tree
Task Scheduler
Interval List Intersections
Rotting Oranges
Longest String Chain
Minimum Size Subarray Sum
Permutation in String
Decode String
Time Based Key Value Store
Accounts Merge