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.
| ID | Title | UCC | Link |
|---|---|---|---|
| 🔴 269 | Alien Dictionary | 5 | Link |
| 🔴 23 | Merge k Sorted Lists | 5 | Link |
| 🔴 297 | Serialize and Deserialize Binary Tree | 5 | Link |
| 🔴 4 | Median of Two Sorted Arrays | 5 | Link |
| 🔴 295 | Find Median from Data Stream | 5 | Link |
| 🔴 42 | Trapping Rain Water | 5 | Link |
| 🔴 212 | Word Search II | 5 | Link |
| 🔴 273 | Integer to English Words | 5 | Link |
| 🔴 128 | Longest Consecutive Sequence | 5 | Link |
| 🔴 124 | Binary Tree Maximum Path Sum | 5 | Link |
| 🔴 329 | Longest Increasing Path in a Matrix | 5 | Link |
| 🔴 218 | The Skyline Problem | 5 | Link |
| 🟡 480 | Sliding Window Median | 4 | Link |
| 🟡 37 | Sudoku Solver | 4 | Link |
| 🟡 239 | Sliding Window Maximum | 4 | Link |
| 🟡 10 | Regular Expression Matching | 4 | Link |
| 🟡 224 | Basic Calculator | 4 | Link |
| 🟡 126 | Word Ladder II | 4 | Link |
| 🟡 340 | Longest Substring with At Most K Distinct Characters | 4 | Link |
| 🟡 41 | First Missing Positive | 4 | Link |
| 🟡 403 | Frog Jump | 4 | Link |
| 🟡 140 | Word Break II | 4 | Link |
| 🟡 76 | Minimum Window Substring | 4 | Link |
| 🟡 759 | Employee Free Time | 4 | Link |
| 🟡 25 | Reverse Nodes in k-Group | 4 | Link |
| 🟡 32 | Longest Valid Parentheses | 4 | Link |
| 🟡 428 | Serialize and Deserialize N-ary Tree | 4 | Link |
| 🟡 45 | Jump Game II | 4 | Link |
| 🟢 65 | Valid Number | 3 | Link |
| 🟢 57 | Insert Interval | 3 | Link |
| 🟢 158 | Read N Characters Given Read4 II - Call multiple times | 3 | Link |
| 🟢 315 | Count of Smaller Numbers After Self | 3 | Link |
| 🟢 1032 | Stream of Characters | 3 | Link |
| 🟢 472 | Concatenated Words | 3 | Link |
| 🟢 773 | Sliding Puzzle | 3 | Link |
| 🟢 301 | Remove Invalid Parentheses | 3 | Link |
| 🟢 317 | Shortest Distance from All Buildings | 3 | Link |
| 🟢 85 | Maximal Rectangle | 3 | Link |
| 🟢 44 | Wildcard Matching | 3 | Link |
| 🟢 51 | N-Queens | 3 | Link |
| 🟢 642 | Design Search Autocomplete System | 3 | Link |
| 🟢 99 | Recover Binary Search Tree | 3 | Link |
| 🟢 432 | All O`one Data Structure | 3 | Link |
| 🔵 410 | Split Array Largest Sum | 2 | Link |
| 🔵 689 | Maximum Sum of 3 Non-Overlapping Subarrays | 2 | Link |
| 🔵 97 | Interleaving String | 2 | Link |
| 🔵 632 | Smallest Range Covering Elements from K Lists | 2 | Link |
| 🔵 839 | Similar String Groups | 2 | Link |
| 🔵 827 | Making A Large Island | 2 | Link |
| 🔵 727 | Minimum Window Subsequence | 2 | Link |
| 🔵 316 | Remove Duplicate Letters | 2 | Link |
| 🔵 460 | LFU Cache | 2 | Link |
| 🔵 772 | Basic Calculator III | 2 | Link |
| 🔵 335 | Self Crossing | 2 | Link |
| 🔵 1074 | Number of Submatrices That Sum to Target | 2 | Link |
| 🔵 352 | Data Stream as Disjoint Intervals | 2 | Link |
| 🔵 358 | Rearrange String k Distance Apart | 2 | Link |
| 🔵 1095 | Find in Mountain Array | 2 | Link |
| 🔵 862 | Shortest Subarray with Sum at Least K | 2 | Link |
| 🔵 68 | Text Justification | 2 | Link |
| 🔵 630 | Course Schedule III | 2 | Link |
| 🔵 296 | Best Meeting Point | 2 | Link |
| 🔵 188 | Best Time to Buy and Sell Stock IV | 2 | Link |
| 🔵 489 | Robot Room Cleaner | 2 | Link |
| 🔵 282 | Expression Add Operators | 2 | Link |
| 🔵 1192 | Critical Connections in a Network | 2 | Link |
| 🔵 843 | Guess the Word | 2 | Link |
| 🔵 815 | Bus Routes | 2 | Link |
| 🔵 995 | Minimum Number of K Consecutive Bit Flips | 2 | Link |
| 🔵 72 | Edit Distance | 2 | Link |
| 🔵 135 | Candy | 2 | Link |
| 🔵 84 | Largest Rectangle in Histogram | 2 | Link |
| 🔵 1044 | Longest Duplicate Substring | 2 | Link |
| 🔵 715 | Range Module | 2 | Link |
| 🔵 1153 | String Transforms Into Another String | 2 | Link |
| 🔵 354 | Russian Doll Envelopes | 2 | Link |
| 🔵 980 | Unique Paths III | 2 | Link |
| 🔵 679 | 24 Game | 2 | Link |
| 🟠 992 | Subarrays with K Different Integers | 1 | Link |
| 🟠 753 | Cracking the Safe | 1 | Link |
| 🟠 1463 | Cherry Pickup II | 1 | Link |
| 🟠 420 | Strong Password Checker | 1 | Link |
| 🟠 527 | Word Abbreviation | 1 | Link |
| 🟠 1125 | Smallest Sufficient Team | 1 | Link |
| 🟠 1235 | Maximum Profit in Job Scheduling | 1 | Link |
| 🟠 588 | Design In-Memory File System | 1 | Link |
| 🟠 1411 | Number of Ways to Paint N × 3 Grid | 1 | Link |
| 🟠 1345 | Jump Game IV | 1 | Link |
| 🟠 778 | Swim in Rising Water | 1 | Link |
| 🟠 968 | Binary Tree Cameras | 1 | Link |
| 🟠 1293 | Shortest Path in a Grid with Obstacles Elimination | 1 | Link |
| 🟠 363 | Max Sum of Rectangle No Larger Than K | 1 | Link |
| 🟠 145 | Binary Tree Postorder Traversal | 1 | Link |
| 🟠 639 | Decode Ways II | 1 | Link |
| 🟠 895 | Maximum Frequency Stack | 1 | Link |
| 🟠 123 | Best Time to Buy and Sell Stock III | 1 | Link |
| 🟠 871 | Minimum Number of Refueling Stops | 1 | Link |
| 🟠 262 | Trips and Users | 1 | Link |
| 🟠 936 | Stamping The Sequence | 1 | Link |
| 🟠 272 | Closest Binary Search Tree Value II | 1 | Link |
| 🟠 1326 | Minimum Number of Taps to Open to Water a Garden | 1 | Link |
| 🟠 185 | Department Top Three Salaries | 1 | Link |
| 🟠 407 | Trapping Rain Water II | 1 | Link |
| 🟠 803 | Bricks Falling When Hit | 1 | Link |
| 🟠 381 | Insert Delete GetRandom O(1) - Duplicates allowed | 1 | Link |
| 🟠 1136 | Parallel Courses | 1 | Link |
| 🟠 924 | Minimize Malware Spread | 1 | Link |
| 🟠 850 | Rectangle Area II | 1 | Link |
| 🟠 465 | Optimal Account Balancing | 1 | Link |
| 🟠 828 | Count Unique Characters of All Substrings of a Given String | 1 | Link |
| 🟠 132 | Palindrome Partitioning II | 1 | Link |
| 🟠 546 | Remove Boxes | 1 | Link |
| 🟠 564 | Find the Closest Palindrome | 1 | Link |
| 🟠 214 | Shortest Palindrome | 1 | Link |
| 🟠 87 | Scramble String | 1 | Link |
| 🟠 1312 | Minimum Insertion Steps to Make a String Palindrome | 1 | Link |
| 🟠 312 | Burst Balloons | 1 | Link |
| 🟠 818 | Race Car | 1 | Link |
| 🟠 1246 | Palindrome Removal | 1 | Link |
| 🟠 887 | Super Egg Drop | 1 | Link |
| 🟠 1406 | Stone Game III | 1 | Link |
| 🟠 336 | Palindrome Pairs | 1 | Link |
| 🟠 1240 | Tiling a Rectangle with the Fewest Squares | 1 | Link |
| 🟠 1231 | Divide Chocolate | 1 | Link |
| 🟠 174 | Dungeon Game | 1 | Link |
| 🟠 391 | Perfect Rectangle | 1 | Link |
| 🟠 726 | Number of Atoms | 1 | Link |
| 🟠 1439 | Find the Kth Smallest Sum of a Matrix With Sorted Rows | 1 | Link |
| 🟠 736 | Parse Lisp Expression | 1 | Link |
| 🟠 1320 | Minimum Distance to Type a Word Using Two Fingers | 1 | Link |
| 🟠 154 | Find Minimum in Rotated Sorted Array II | 1 | Link |
| 🟠 552 | Student Attendance Record II | 1 | Link |
| 🟠 149 | Max Points on a Line | 1 | Link |
| 🟠 741 | Cherry Pickup | 1 | Link |
| 🟠 1216 | Valid Palindrome III | 1 | Link |
| 🟠 1269 | Number of Ways to Stay in the Same Place After Some Steps | 1 | Link |
| 🟠 1520 | Maximum Number of Non-Overlapping Substrings | 1 | Link |
| 🟠 1335 | Minimum Difficulty of a Job Schedule | 1 | Link |
| 🟠 1373 | Maximum Sum BST in Binary Tree | 1 | Link |
| 🟠 1368 | Minimum Cost to Make at Least One Valid Path in a Grid | 1 | Link |
| 🟠 466 | Count The Repetitions | 1 | Link |
| 🟠 1444 | Number of Ways of Cutting a Pizza | 1 | Link |
| 🟠 60 | Permutation Sequence | 1 | Link |
| 🟠 1088 | Confusing Number II | 1 | Link |