Skip to content

Latest commit

 

History

History
1116 lines (488 loc) · 42.7 KB

sdeProblemSheet.md

File metadata and controls

1116 lines (488 loc) · 42.7 KB

🚀 SDE Problem Sheet

To know the entire list and other stuffs like Projects, Resume, how to give interviews.

Watch the entire video at: TUF YouTube

Subscribe to the channel. :) (Take U forward)

(Channel run by Amazon | Media.net(Directi) | GFG) employee, CM at Codeforces and 6* at Codechef)

Adding the credits above as a lot of people were sharing this pdf without giving credits.

[x] denotes problem number x on Leetcode


📅 Day 1 (Arrays)


📅 Day 2 (Arrays)


📅 Day 3 (Math)


📅 Day 4 (Hashing)


📅 Day 5 (Linked List)


📅 Day 6 (Linked List)


📅 Day 7 (Pointers)


📅 Day 8 (Greedy)


📅 Day 9 (Backtracking)


📅 Day 10 (Backtracking)

  • 1️⃣ Combination sum-1 [39] [216]

  • 2️⃣ Combination sum-2 [40]

  • 3️⃣ Palindrome Partioning

  • 4️⃣ Subset Sum-1 [416]

    • ✅ leet 416
  • 5️⃣ Subset Sum-2

  • 6️⃣ K-th permutation Sequence


📅 Day 11 (Divide and Conquer)

  • 1️⃣ 1/N-th root of an integer (use binary search)

  • 2️⃣ Matrix Median

  • 3️⃣ Find the element that appears once in sorted array, and rest element appears twice (Binary search)

  • 4️⃣ Search element in a sorted and rotated array

    • Github ( Find pivot by searching the smallest elements index , then apply BS )
    • GeeksforGeeks
  • 5️⃣ K-th element of two sorted arrays

  • 6️⃣ Median of an array


📅 Day 12 (Bit Manipulation)


📅 Day 13 (Stack and Queue)


📅 Day 14 (Stack and Queue)


📅 Day 15 (String)


📅 Day 16 (String)


📅 Day 17 (Binary Tree)


📅 Day 18 (Binary Tree)

  • 1️⃣ Level order Traversal / Level order traversal in spiral form [102] [103]

  • 2️⃣ Height of a Binary Tree [104]

  • 3️⃣ Diameter of Binary Tree [543]

  • 4️⃣ Check if Binary tree is height balanced or not [110]

  • 5️⃣ LCA in Binary Tree [236]

  • 6️⃣ Check if two trees are identical or not [100]


📅 Day 19 (Binary Tree)

  • 1️⃣ Maximum path sum [124]

  • 2️⃣ Construct Binary Tree from inorder and preorder [105]

  • 3️⃣ Construct Binary Tree from Inorder and Postorder [106]

  • 4️⃣ Symmetric Binary Tree [101]

  • 5️⃣ Flatten Binary Tree to Linked List [114]

  • 6️⃣ Check if Binary Tree is mirror of itself or not [101]


📅 Day 20 (Binary Search Tree)

  • 1️⃣ Populate Next Right pointers of Tree [116]

    • ✅ Leetcode 116
  • 2️⃣ Search given Key in BST [700]

  • 3️⃣ Construct BST from given keys [108]

  • 4️⃣ Check is a BT is BST or not [98]

  • 5️⃣ Find LCA of two nodes in BST [235]

  • 6️⃣ Find the inorder predecessor/successor of a given Key in BST


📅 Day 21 (Binary Search Tree)

  • 1️⃣ Floor and Ceil in a BST

  • 2️⃣ Find K-th smallest and K-th largest element in BST [230]

  • 3️⃣ Find a pair with a given sum in BST [653]

    • ✅ git leet 653
  • 4️⃣ BST iterator [173]

    • ✅ git leet 173
  • 5️⃣ Size of the largest BST in a Binary Tree

  • 6️⃣ Serialize and deserialize Binary Tree [297]

    • ✅ git 297

📅 Day 22 (Mixed Questions)


📅 Day 23 (Graph)


📅 Day 24 (Graph)

  • 1️⃣ SCC(using KosaRaju’s Algorithm)

  • 2️⃣ Djisktra’s Algorithm [743]

  • 3️⃣ Bellman Ford Algorithm

  • 4️⃣ Floyd Warshall Algorithm

  • 5️⃣ MST using Prim’s Algorithm

  • 6️⃣ MST using Kruskal’s Algorithm


📅 Day 25 (Dynamic Programming)


📅 Day 26 (Dynamic Programming)

  • 1️⃣ Maximum sum path in matrix, (count paths, and similar type do, also backtrack to find the maximum path) [64]

  • 2️⃣ Coin change [322]

  • 3️⃣ Subset Sum [416]

  • 4️⃣ Rod Cutting

  • 5️⃣ Egg Dropping [887]

  • 6️⃣ Word Break [139]

  • 7️⃣ Palindrome Partitioning


📅 Day 27

  • 1️⃣ Revise OS notes that you would have made during your sem

  • 2️⃣ If not made notes, spend 2 or 3 days and make notes from Knowledge Gate


📅 Day 28

  • 1️⃣ Revise DBMS notes that you would have made during your semester

  • 2️⃣ If not made notes, spend 2 or 3 days and make notes from Knowledge Gate.


📅 Day 29

  • 1️⃣ Revise CN notes, that you would have made during your sem.

  • 2️⃣ If not made notes, spend 2 or 3 days and make notes from Knowledge Gate.


📅 Day 30

  • 1️⃣ Make a note of how will your represent your projects, and prepare all questions related to tech which you have used in your projects. Prepare a note which you can say for 3-10 minutes when he asks you that say something about the project

🚀 Hurrah!! You are ready for your placement after a month of hard-work without a cheat day.