Hard Questions

Recent (last 6 months) LeetCode hard questions asked at FAANG companies.

UCC is the Unique Company Count. UCC = 4 means the question is asked at 4 distinct FAANG companies.

IDTitleUCCLink
🔴 269Alien Dictionary5Link
🔴 23Merge k Sorted Lists5Link
🔴 297Serialize and Deserialize Binary Tree5Link
🔴 4Median of Two Sorted Arrays5Link
🔴 295Find Median from Data Stream5Link
🔴 42Trapping Rain Water5Link
🔴 212Word Search II5Link
🔴 273Integer to English Words5Link
🔴 128Longest Consecutive Sequence5Link
🔴 124Binary Tree Maximum Path Sum5Link
🔴 329Longest Increasing Path in a Matrix5Link
🔴 218The Skyline Problem5Link
🟡 480Sliding Window Median4Link
🟡 37Sudoku Solver4Link
🟡 239Sliding Window Maximum4Link
🟡 10Regular Expression Matching4Link
🟡 224Basic Calculator4Link
🟡 126Word Ladder II4Link
🟡 340Longest Substring with At Most K Distinct Characters4Link
🟡 41First Missing Positive4Link
🟡 403Frog Jump4Link
🟡 140Word Break II4Link
🟡 76Minimum Window Substring4Link
🟡 759Employee Free Time4Link
🟡 25Reverse Nodes in k-Group4Link
🟡 32Longest Valid Parentheses4Link
🟡 428Serialize and Deserialize N-ary Tree4Link
🟡 45Jump Game II4Link
🟢 65Valid Number3Link
🟢 57Insert Interval3Link
🟢 158Read N Characters Given Read4 II - Call multiple times3Link
🟢 315Count of Smaller Numbers After Self3Link
🟢 1032Stream of Characters3Link
🟢 472Concatenated Words3Link
🟢 773Sliding Puzzle3Link
🟢 301Remove Invalid Parentheses3Link
🟢 317Shortest Distance from All Buildings3Link
🟢 85Maximal Rectangle3Link
🟢 44Wildcard Matching3Link
🟢 51N-Queens3Link
🟢 642Design Search Autocomplete System3Link
🟢 99Recover Binary Search Tree3Link
🟢 432All O`one Data Structure3Link
🔵 410Split Array Largest Sum2Link
🔵 689Maximum Sum of 3 Non-Overlapping Subarrays2Link
🔵 97Interleaving String2Link
🔵 632Smallest Range Covering Elements from K Lists2Link
🔵 839Similar String Groups2Link
🔵 827Making A Large Island2Link
🔵 727Minimum Window Subsequence2Link
🔵 316Remove Duplicate Letters2Link
🔵 460LFU Cache2Link
🔵 772Basic Calculator III2Link
🔵 335Self Crossing2Link
🔵 1074Number of Submatrices That Sum to Target2Link
🔵 352Data Stream as Disjoint Intervals2Link
🔵 358Rearrange String k Distance Apart2Link
🔵 1095Find in Mountain Array2Link
🔵 862Shortest Subarray with Sum at Least K2Link
🔵 68Text Justification2Link
🔵 630Course Schedule III2Link
🔵 296Best Meeting Point2Link
🔵 188Best Time to Buy and Sell Stock IV2Link
🔵 489Robot Room Cleaner2Link
🔵 282Expression Add Operators2Link
🔵 1192Critical Connections in a Network2Link
🔵 843Guess the Word2Link
🔵 815Bus Routes2Link
🔵 995Minimum Number of K Consecutive Bit Flips2Link
🔵 72Edit Distance2Link
🔵 135Candy2Link
🔵 84Largest Rectangle in Histogram2Link
🔵 1044Longest Duplicate Substring2Link
🔵 715Range Module2Link
🔵 1153String Transforms Into Another String2Link
🔵 354Russian Doll Envelopes2Link
🔵 980Unique Paths III2Link
🔵 67924 Game2Link
🟠 992Subarrays with K Different Integers1Link
🟠 753Cracking the Safe1Link
🟠 1463Cherry Pickup II1Link
🟠 420Strong Password Checker1Link
🟠 527Word Abbreviation1Link
🟠 1125Smallest Sufficient Team1Link
🟠 1235Maximum Profit in Job Scheduling1Link
🟠 588Design In-Memory File System1Link
🟠 1411Number of Ways to Paint N × 3 Grid1Link
🟠 1345Jump Game IV1Link
🟠 778Swim in Rising Water1Link
🟠 968Binary Tree Cameras1Link
🟠 1293Shortest Path in a Grid with Obstacles Elimination1Link
🟠 363Max Sum of Rectangle No Larger Than K1Link
🟠 145Binary Tree Postorder Traversal1Link
🟠 639Decode Ways II1Link
🟠 895Maximum Frequency Stack1Link
🟠 123Best Time to Buy and Sell Stock III1Link
🟠 871Minimum Number of Refueling Stops1Link
🟠 262Trips and Users1Link
🟠 936Stamping The Sequence1Link
🟠 272Closest Binary Search Tree Value II1Link
🟠 1326Minimum Number of Taps to Open to Water a Garden1Link
🟠 185Department Top Three Salaries1Link
🟠 407Trapping Rain Water II1Link
🟠 803Bricks Falling When Hit1Link
🟠 381Insert Delete GetRandom O(1) - Duplicates allowed1Link
🟠 1136Parallel Courses1Link
🟠 924Minimize Malware Spread1Link
🟠 850Rectangle Area II1Link
🟠 465Optimal Account Balancing1Link
🟠 828Count Unique Characters of All Substrings of a Given String1Link
🟠 132Palindrome Partitioning II1Link
🟠 546Remove Boxes1Link
🟠 564Find the Closest Palindrome1Link
🟠 214Shortest Palindrome1Link
🟠 87Scramble String1Link
🟠 1312Minimum Insertion Steps to Make a String Palindrome1Link
🟠 312Burst Balloons1Link
🟠 818Race Car1Link
🟠 1246Palindrome Removal1Link
🟠 887Super Egg Drop1Link
🟠 1406Stone Game III1Link
🟠 336Palindrome Pairs1Link
🟠 1240Tiling a Rectangle with the Fewest Squares1Link
🟠 1231Divide Chocolate1Link
🟠 174Dungeon Game1Link
🟠 391Perfect Rectangle1Link
🟠 726Number of Atoms1Link
🟠 1439Find the Kth Smallest Sum of a Matrix With Sorted Rows1Link
🟠 736Parse Lisp Expression1Link
🟠 1320Minimum Distance to Type a Word Using Two Fingers1Link
🟠 154Find Minimum in Rotated Sorted Array II1Link
🟠 552Student Attendance Record II1Link
🟠 149Max Points on a Line1Link
🟠 741Cherry Pickup1Link
🟠 1216Valid Palindrome III1Link
🟠 1269Number of Ways to Stay in the Same Place After Some Steps1Link
🟠 1520Maximum Number of Non-Overlapping Substrings1Link
🟠 1335Minimum Difficulty of a Job Schedule1Link
🟠 1373Maximum Sum BST in Binary Tree1Link
🟠 1368Minimum Cost to Make at Least One Valid Path in a Grid1Link
🟠 466Count The Repetitions1Link
🟠 1444Number of Ways of Cutting a Pizza1Link
🟠 60Permutation Sequence1Link
🟠 1088Confusing Number II1Link
Comments (3)