0% found this document useful (0 votes)
26 views

Facebook Tagged LeetCode Problems

Uploaded by

aditytripathee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Facebook Tagged LeetCode Problems

Uploaded by

aditytripathee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

TAGGED PROBLEMS FROM

MUST SAVE AND SHARE


SDE SHEET (for Facebook)
Question asked in Last 6 Months

Total Questions: 376


Difficulty: Arranged in Ascending Order

# Title Acceptance Difficulty

1757 Recyclable and Low Fat Products 94.0% Easy

1108 Defanging an IP Address 89.1% Easy

938 Range Sum of BST 85.2% Easy

1588 Sum of All Odd Length Subarrays 83.5% Easy

1614 Maximum Nesting Depth of the Parentheses 82.7% Easy

1832 Check if the Sentence Is Pangram 81.4% Easy

1213 Intersection of Three Sorted Arrays 80.0% Easy

1789 Primary Department for Each Employee 79.7% Easy

557 Reverse Words in a String III 79.2% Easy

897 Increasing Order Search Tree 78.3% Easy

617 Merge Two Binary Trees 78.1% Easy

346 Moving Average from Data Stream 76.6% Easy

Join telegram.me/sahebcse Community for Better Discussion !


344 Reverse String 75.2% Easy

1299 Replace Elements with Greatest Element on 74.5% Easy

Right Side

876 Middle of the Linked List 72.9% Easy

104 Maximum Depth of Binary Tree 72.2% Easy

226 Invert Binary Tree 72.0% Easy

1207 Unique Number of Occurrences 71.9% Easy

977 Squares of a Sorted Array 71.7% Easy

610 Triangle Judgement 70.9% Easy

1047 Remove All Adjacent Duplicates In String 70.9% Easy

206 Reverse Linked List 70.8% Easy

136 Single Number 69.6% Easy

349 Intersection of Two Arrays 69.4% Easy

463 Island Perimeter 69.1% Easy

637 Average of Levels in Binary Tree 68.9% Easy

766 Toeplitz Matrix 68.1% Easy

824 Goat Latin 67.6% Easy

Join telegram.me/sahebcse Community for Better Discussion !


412 Fizz Buzz 67.1% Easy

1991 Find the Middle Index in Array 66.3% Easy

266 Palindrome Permutation 65.6% Easy

706 Design HashMap 65.2% Easy

243 Shortest Word Distance 64.6% Easy

191 Number of 1 Bits 62.4% Easy

242 Valid Anagram 61.7% Easy

217 Contains Duplicate 61.0% Easy

283 Move Zeroes 60.8% Easy

21 Merge Two Sorted Lists 60.7% Easy

268 Missing Number 60.6% Easy

1099 Two Sum Less Than K 60.5% Easy

448 Find All Numbers Disappeared in an Array 59.2% Easy

1331 Rank Transform of an Array 58.6% Easy

896 Monotonic Array 58.3% Easy

13 Roman to Integer 57.9% Easy

235 Lowest Common Ancestor of a Binary Search 57.5% Easy

Join telegram.me/sahebcse Community for Better Discussion !


Tree

387 First Unique Character in a String 57.4% Easy

303 Range Sum Query - Immutable 56.2% Easy

1640 Check Array Formation Through 55.9% Easy

Concatenation

1539 Kth Missing Positive Number 55.6% Easy

704 Binary Search 55.2% Easy

350 Intersection of Two Arrays II 55.1% Easy

703 Kth Largest Element in a Stream 55.0% Easy

543 Diameter of Binary Tree 54.7% Easy

1275 Find Winner on a Tic Tac Toe Game 54.6% Easy

121 Best Time to Buy and Sell Stock 54.2% Easy

270 Closest Binary Search Tree Value 54.1% Easy

993 Cousins in Binary Tree 53.9% Easy

9 Palindrome Number 52.5% Easy

953 Verifying an Alien Dictionary 52.5% Easy

415 Add Strings 52.3% Easy

Join telegram.me/sahebcse Community for Better Discussion !


101 Symmetric Tree 51.9% Easy

724 Find Pivot Index 51.9% Easy

160 Intersection of Two Linked Lists 51.6% Easy

27 Remove Element 51.4% Easy

1141 User Activity for the Past 30 Days I 51.2% Easy

67 Add Binary 50.7% Easy

155 Min Stack 50.6% Easy

190 Reverse Bits 49.7% Easy

53 Maximum Subarray 49.6% Easy

26 Remove Duplicates from Sorted Array 49.3% Easy

83 Remove Duplicates from Sorted List 49.2% Easy

1 Two Sum 48.7% Easy

674 Longest Continuous Increasing Subsequence 48.6% Easy

246 Strobogrammatic Number 47.6% Easy

234 Palindrome Linked List 47.1% Easy

112 Path Sum 45.9% Easy

572 Subtree of Another Tree 45.5% Easy

Join telegram.me/sahebcse Community for Better Discussion !


989 Add to Array-Form of Integer 45.5% Easy

716 Max Stack 45.2% Easy

88 Merge Sorted Array 44.9% Easy

643 Maximum Average Subarray I 43.6% Easy

66 Plus One 43.0% Easy

111 Minimum Depth of Binary Tree 42.8% Easy

597 Friend Requests I: Overall Acceptance Rate 42.7% Easy

35 Search Insert Position 42.3% Easy

125 Valid Palindrome 42.2% Easy

278 First Bad Version 42.0% Easy

263 Ugly Number 41.8% Easy

20 Valid Parentheses 40.9% Easy

219 Contains Duplicate II 40.7% Easy

14 Longest Common Prefix 39.7% Easy

680 Valid Palindrome II 39.4% Easy

69 Sqrt(x) 36.6% Easy

28 Implement strStr() 36.3% Easy

Join telegram.me/sahebcse Community for Better Discussion !


408 Valid Word Abbreviation 34.8% Easy

168 Excel Sheet Column Title 34.1% Easy

605 Can Place Flowers 33.1% Easy

163 Missing Ranges 31.4% Easy

859 Buddy Strings 28.8% Easy

1265 Print Immutable Linked List in Reverse 94.3% Medium

1570 Dot Product of Two Sparse Vectors 90.2% Medium

339 Nested List Weight Sum 81.5% Medium

1382 Balance a Binary Search Tree 80.3% Medium

1762 Buildings With an Ocean View 79.7% Medium

1305 All Elements in Two Binary Search Trees 79.6% Medium

366 Find Leaves of Binary Tree 79.0% Medium

1650 Lowest Common Ancestor of a Binary Tree III 77.4% Medium

921 Minimum Add to Make Parentheses Valid 76.9% Medium

723 Candy Crush 75.4% Medium

1973 Count Nodes Equal to Sum of Descendants 75.1% Medium

419 Battleships in a Board 73.9% Medium

Join telegram.me/sahebcse Community for Better Discussion !


1026 Maximum Difference Between Node and 73.3% Medium

Ancestor

1522 Diameter of N-Ary Tree 73.2% Medium

46 Permutations 72.9% Medium

2023 Number of Pairs of Strings With 72.8% Medium

Concatenation Equal to Target

442 Find All Duplicates in an Array 72.7% Medium

78 Subsets 72.0% Medium

986 Interval List Intersections 71.3% Medium

814 Binary Tree Pruning 70.9% Medium

22 Generate Parentheses 70.5% Medium

1123 Lowest Common Ancestor of Deepest 70.3% Medium

Leaves

695 Max Area of Island 70.1% Medium

791 Custom Sort String 69.3% Medium

1110 Delete Nodes And Return Forest 69.3% Medium

1740 Find Distance in a Binary Tree 68.6% Medium

1244 Design A Leaderboard 68.2% Medium

Join telegram.me/sahebcse Community for Better Discussion !


1721 Swapping Nodes in a Linked List 68.2% Medium

230 Kth Smallest Element in a BST 68.0% Medium

451 Sort Characters By Frequency 68.0% Medium

865 Smallest Subtree with all the Deepest Nodes 68.0% Medium

173 Binary Search Tree Iterator 67.7% Medium

48 Rotate Image 67.3% Medium

739 Daily Temperatures 67.3% Medium

311 Sparse Matrix Multiplication 66.5% Medium

1161 Maximum Level Sum of a Binary Tree 66.4% Medium

669 Trim a Binary Search Tree 66.3% Medium

39 Combination Sum 66.1% Medium

973 K Closest Points to Origin 65.9% Medium

647 Palindromic Substrings 65.7% Medium

1249 Minimum Remove to Make Valid Parentheses 65.7% Medium

856 Score of Parentheses 65.3% Medium

1268 Search Suggestions System 65.3% Medium

347 Top K Frequent Elements 65.0% Medium

Join telegram.me/sahebcse Community for Better Discussion !


529 Minesweeper 64.9% Medium

49 Group Anagrams 64.6% Medium

77 Combinations 64.5% Medium

426 Convert Binary Search Tree to Sorted Doubly 64.5% Medium

Linked List

515 Find Largest Value in Each Tree Row 64.5% Medium

238 Product of Array Except Self 64.2% Medium

983 Minimum Cost For Tickets 64.2% Medium

215 Kth Largest Element in an Array 63.9% Medium

249 Group Shifted Strings 63.8% Medium

1011 Capacity To Ship Packages Within D Days 63.8% Medium

1029 Two City Scheduling 63.8% Medium

398 Random Pick Index 63.4% Medium

1344 Angle Between Hands of a Clock 63.4% Medium

1004 Max Consecutive Ones III 63.1% Medium

503 Next Greater Element II 62.4% Medium

122 Best Time to Buy and Sell Stock II 62.3% Medium

Join telegram.me/sahebcse Community for Better Discussion !


648 Replace Words 62.2% Medium

323 Number of Connected Components in an 61.4% Medium

Undirected Graph

863 All Nodes Distance K in Binary Tree 61.4% Medium

102 Binary Tree Level Order Traversal 61.3% Medium

510 Inorder Successor in BST II 61.3% Medium

341 Flatten Nested List Iterator 60.9% Medium

636 Exclusive Time of Functions 60.5% Medium

62 Unique Paths 60.4% Medium

131 Palindrome Partitioning 60.2% Medium

199 Binary Tree Right Side View 59.9% Medium

378 Kth Smallest Element in a Sorted Matrix 59.9% Medium

328 Odd Even Linked List 59.7% Medium

516 Longest Palindromic Subsequence 59.7% Medium

167 Two Sum II - Input Array Is Sorted 59.6% Medium

286 Walls and Gates 59.6% Medium

24 Swap Nodes in Pairs 59.1% Medium

Join telegram.me/sahebcse Community for Better Discussion !


1644 Lowest Common Ancestor of a Binary Tree II 59.0% Medium

287 Find the Duplicate Number 58.9% Medium

399 Evaluate Division 58.8% Medium

540 Single Element in a Sorted Array 58.6% Medium

1055 Shortest Way to Form String 58.4% Medium

114 Flatten Binary Tree to Linked List 58.3% Medium

1094 Car Pooling 57.9% Medium

1868 Product of Two Run-Length Encoded Arrays 57.9% Medium

116 Populating Next Right Pointers in Each Node 57.7% Medium

284 Peeking Iterator 57.7% Medium

740 Delete and Earn 57.5% Medium

129 Sum Root to Leaf Numbers 57.4% Medium

1288 Remove Covered Intervals 57.4% Medium

348 Design Tic-Tac-Toe 57.3% Medium

384 Shuffle an Array 57.2% Medium

498 Diagonal Traverse 57.2% Medium

676 Implement Magic Dictionary 56.6% Medium

Join telegram.me/sahebcse Community for Better Discussion !


394 Decode String 56.5% Medium

1209 Remove All Adjacent Duplicates in String II 56.2% Medium

109 Convert Sorted List to Binary Search Tree 56.0% Medium

721 Accounts Merge 56.0% Medium

536 Construct Binary Tree from String 55.9% Medium

236 Lowest Common Ancestor of a Binary Tree 55.8% Medium

1443 Minimum Time to Collect All Apples in a Tree 55.7% Medium

36 Valid Sudoku 55.5% Medium

75 Sort Colors 55.4% Medium

490 The Maze 54.9% Medium

1060 Missing Element in Sorted Array 54.8% Medium

621 Task Scheduler 54.7% Medium

17 Letter Combinations of a Phone Number 54.5% Medium

692 Top K Frequent Words 54.5% Medium

113 Path Sum II 54.4% Medium

200 Number of Islands 54.4% Medium

343 Integer Break 54.4% Medium

Join telegram.me/sahebcse Community for Better Discussion !


875 Koko Eating Bananas 54.3% Medium

11 Container With Most Water 54.0% Medium

103 Binary Tree Zigzag Level Order Traversal 54.0% Medium

90 Subsets II 53.8% Medium

958 Check Completeness of a Binary Tree 53.7% Medium

939 Minimum Area Rectangle 53.5% Medium

974 Subarray Sums Divisible by K 53.2% Medium

934 Shortest Bridge 53.1% Medium

1102 Path With Maximum Minimum Value 53.1% Medium

452 Minimum Number of Arrows to Burst Balloons 53.0% Medium

1428 Leftmost Column with at Least a One 52.7% Medium

40 Combination Sum II 52.6% Medium

148 Sort List 52.5% Medium

767 Reorganize String 52.2% Medium

380 Insert Delete GetRandom O(1) 51.5% Medium

298 Binary Tree Longest Consecutive Sequence 51.4% Medium

314 Binary Tree Vertical Order Traversal 51.4% Medium

Join telegram.me/sahebcse Community for Better Discussion !


1053 Previous Permutation With One Swap 51.4% Medium

247 Strobogrammatic Number II 51.1% Medium

304 Range Sum Query 2D - Immutable 51.1% Medium

2033 Minimum Operations to Make a Uni-Value 51.1% Medium

Grid

259 3Sum Smaller 50.4% Medium

1424 Diagonal Traverse II 50.1% Medium

437 Path Sum III 50.0% Medium

253 Meeting Rooms II 49.9% Medium

300 Longest Increasing Subsequence 49.8% Medium

1865 Finding Pairs With a Certain Sum 49.6% Medium

1541 Minimum Insertions to Balance a 49.4% Medium

Parentheses String

325 Maximum Size Subarray Sum Equals k 49.3% Medium

935 Knight Dialer 49.2% Medium

38 Count and Say 49.0% Medium

73 Set Matrix Zeroes 48.8% Medium

Join telegram.me/sahebcse Community for Better Discussion !


128 Longest Consecutive Sequence 48.8% Medium

622 Design Circular Queue 48.8% Medium

117 Populating Next Right Pointers in Each Node 48.7% Medium

II

138 Copy List with Random Pointer 48.7% Medium

143 Reorder List 48.7% Medium

435 Non-overlapping Intervals 48.6% Medium

438 Find All Anagrams in a String 48.5% Medium

133 Clone Graph 48.4% Medium

616 Add Bold Tag in String 48.4% Medium

153 Find Minimum in Rotated Sorted Array 48.1% Medium

1559 Detect Cycles in 2D Grid 48.1% Medium

1891 Cutting Ribbons 48.1% Medium

443 String Compression 47.8% Medium

670 Maximum Swap 47.7% Medium

198 House Robber 47.6% Medium

285 Inorder Successor in BST 47.5% Medium

Join telegram.me/sahebcse Community for Better Discussion !


299 Bulls and Cows 47.5% Medium

16 3Sum Closest 47.0% Medium

210 Course Schedule II 46.9% Medium

416 Partition Equal Subset Sum 46.5% Medium

525 Contiguous Array 46.5% Medium

528 Random Pick with Weight 46.2% Medium

825 Friends Of Appropriate Ages 46.1% Medium

162 Find Peak Element 46.0% Medium

494 Target Sum 45.4% Medium

56 Merge Intervals 45.2% Medium

74 Search a 2D Matrix 45.1% Medium

207 Course Schedule 45.1% Medium

139 Word Break 44.8% Medium

658 Find K Closest Elements 44.7% Medium

134 Gas Station 44.5% Medium

1091 Shortest Path in Binary Matrix 44.4% Medium

735 Asteroid Collision 44.3% Medium

Join telegram.me/sahebcse Community for Better Discussion !


560 Subarray Sum Equals K 44.2% Medium

713 Subarray Product Less Than K 44.2% Medium

211 Design Add and Search Words Data 43.9% Medium

Structure

542 01 Matrix 43.9% Medium

209 Minimum Size Subarray Sum 43.7% Medium

92 Reverse Linked List II 43.6% Medium

545 Boundary of Binary Tree 43.5% Medium

698 Partition to K Equal Sum Subsets 43.2% Medium

150 Evaluate Reverse Polish Notation 43.1% Medium

93 Restore IP Addresses 42.2% Medium

54 Spiral Matrix 41.9% Medium

227 Basic Calculator II 41.7% Medium

2090 K Radius Subarray Averages 41.7% Medium

333 Largest BST Subtree 41.5% Medium

1834 Single-Threaded CPU 41.4% Medium

322 Coin Change 40.7% Medium

Join telegram.me/sahebcse Community for Better Discussion !


34 Find First and Last Position of Element in 40.3% Medium

Sorted Array

662 Maximum Width of Binary Tree 40.3% Medium

146 LRU Cache 40.1% Medium

79 Word Search 39.8% Medium

1498 Number of Subsequences That Satisfy the 39.1% Medium

Given Sum Condition

2 Add Two Numbers 38.9% Medium

71 Simplify Path 38.9% Medium

271 Encode and Decode Strings 38.8% Medium

189 Rotate Array 38.7% Medium

19 Remove Nth Node From End of List 38.6% Medium

63 Unique Paths II 38.6% Medium

33 Search in Rotated Sorted Array 38.0% Medium

43 Multiply Strings 38.0% Medium

55 Jump Game 38.0% Medium

57 Insert Interval 37.6% Medium

Join telegram.me/sahebcse Community for Better Discussion !


18 4Sum 37.5% Medium

31 Next Permutation 36.6% Medium

787 Cheapest Flights Within K Stops 35.9% Medium

81 Search in Rotated Sorted Array II 35.6% Medium

708 Insert into a Sorted Circular Linked List 34.4% Medium

161 One Edit Distance 34.0% Medium

556 Next Greater Element III 33.9% Medium

678 Valid Parenthesis String 33.5% Medium

3 Longest Substring Without Repeating 33.4% Medium

Characters

179 Largest Number 33.2% Medium

50 Pow(x, n) 32.5% Medium

5 Longest Palindromic Substring 32.2% Medium

15 3Sum 31.4% Medium

98 Validate Binary Search Tree 30.7% Medium

91 Decode Ways 30.6% Medium

402 Remove K Digits 30.5% Medium

Join telegram.me/sahebcse Community for Better Discussion !


523 Continuous Subarray Sum 27.4% Medium

7 Reverse Integer 26.8% Medium

166 Fraction to Recurring Decimal 23.7% Medium

29 Divide Two Integers 17.5% Medium

8 String to Integer (atoi) 16.6% Medium

489 Robot Room Cleaner 76.1% Hard

1944 Number of Visible People in a Queue 70.0% Hard

895 Maximum Frequency Stack 66.5% Hard

51 N-Queens 60.6% Hard

1206 Design Skiplist 59.9% Hard

778 Swim in Rising Water 59.2% Hard

42 Trapping Rain Water 57.0% Hard

37 Sudoku Solver 54.7% Hard

1192 Critical Connections in a Network 54.3% Hard

297 Serialize and Deserialize Binary Tree 54.1% Hard

410 Split Array Largest Sum 52.4% Hard

25 Reverse Nodes in k-Group 51.7% Hard

Join telegram.me/sahebcse Community for Better Discussion !


329 Longest Increasing Path in a Matrix 51.3% Hard

1216 Valid Palindrome III 50.6% Hard

295 Find Median from Data Stream 50.5% Hard

689 Maximum Sum of 3 Non-Overlapping 48.6% Hard

Subarrays

772 Basic Calculator III 47.8% Hard

23 Merge k Sorted Lists 47.4% Hard

301 Remove Invalid Parentheses 46.9% Hard

691 Stickers to Spell Word 46.7% Hard

239 Sliding Window Maximum 46.3% Hard

827 Making A Large Island 44.8% Hard

1293 Shortest Path in a Grid with Obstacles 43.6% Hard

Elimination

317 Shortest Distance from All Buildings 43.2% Hard

140 Word Break II 42.6% Hard

987 Vertical Order Traversal of a Binary Tree 41.8% Hard

164 Maximum Gap 41.7% Hard

Join telegram.me/sahebcse Community for Better Discussion !


84 Largest Rectangle in Histogram 41.1% Hard

158 Read N Characters Given read4 II - Call 41.1% Hard

Multiple Times

480 Sliding Window Median 41.1% Hard

224 Basic Calculator 40.7% Hard

2060 Check if an Original String Exists Given Two 40.4% Hard

Encoded Strings

332 Reconstruct Itinerary 40.3% Hard

76 Minimum Window Substring 39.3% Hard

282 Expression Add Operators 39.2% Hard

124 Binary Tree Maximum Path Sum 37.8% Hard

212 Word Search II 37.7% Hard

127 Word Ladder 35.7% Hard

68 Text Justification 35.6% Hard

381 Insert Delete GetRandom O(1) - Duplicates 35.6% Hard

allowed

269 Alien Dictionary 35.0% Hard

4 Median of Two Sorted Arrays 34.4% Hard

Join telegram.me/sahebcse Community for Better Discussion !


2092 Find All People With Secret 33.9% Hard

32 Longest Valid Parentheses 32.3% Hard

273 Integer to English Words 29.7% Hard

10 Regular Expression Matching 28.3% Hard

126 Word Ladder II 27.2% Hard

44 Wildcard Matching 26.6% Hard

862 Shortest Subarray with Sum at Least K 26.1% Hard

65 Valid Number 18.3% Hard

Join telegram.me/sahebcse Community for Better Discussion !

You might also like