DSA Cheatsheet Curated list (Leetcode)

Prasun Das| June 14, 2023 at 7:06 AM | 5 minutes Read

If you're looking to prepare for a job in the tech industry, Data Structures and Algorithms (DSA) are essential to master. Practising problems on platforms like LeetCode is one of the best ways to prepare for DSA. However, with thousands of problems available, it can be overwhelming to choose which ones to solve. This is where Pephub's DSA LeetCode problems sheet comes in handy.

Curated DSA LeetCode Problems Sheet:

ArraysTwo Sumhttps://leetcode.com/problems/two-sum/
ArraysBest Time to Buy and Sell Stockhttps://leetcode.com/problems/best-time-to-buy-and-sell-stock/
ArraysContains Duplicatehttps://leetcode.com/problems/contains-duplicate/
ArraysProduct of Array Except Selfhttps://leetcode.com/problems/product-of-array-except-self/
ArraysMaximum Subarrayhttps://leetcode.com/problems/maximum-subarray/
ArraysMaximum Product Subarrayhttps://leetcode.com/problems/maximum-product-subarray/
ArraysFind Minimum in Rotated Sorted Arrayhttps://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
ArraysSearch in Rotated Sorted Arrayhttps://leetcode.com/problems/search-in-rotated-sorted-array/
ArraysContainer With Most Waterhttps://leetcode.com/problems/container-with-most-water/
BinarySum of Two Integershttps://leetcode.com/problems/sum-of-two-integers/
BinaryNumber of 1 Bitshttps://leetcode.com/problems/number-of-1-bits/
BinaryCounting Bitshttps://leetcode.com/problems/counting-bits/
BinaryMissing Numberhttps://leetcode.com/problems/missing-number/
BinaryReverse Bitshttps://leetcode.com/problems/reverse-bits/
StackValid Parenthesishttps://leetcode.com/problems/valid-parentheses/
StackLongest Common Subsequencehttps://practice.geeksforgeeks.org/problems/maximum-rectangular-area-in-a-histogram-1587115620/1
StackNext Greater Elementhttps://leetcode.com/problems/next-greater-element-i/
StackNext Greater Elementhttps://leetcode.com/problems/next-greater-element-i/
StackNext Greater Elementhttps://leetcode.com/problems/next-greater-element-i/
Dynamic ProgrammingLongest Common Subsequencehttps://leetcode.com/problems/longest-common-subsequence/
Dynamic ProgrammingWord Break Problemhttps://leetcode.com/problems/word-break/
Dynamic ProgrammingCombination Sumhttps://leetcode.com/problems/combination-sum/
Dynamic ProgrammingHouse Robberhttps://leetcode.com/problems/house-robber/
Dynamic ProgrammingHouse Robber IIhttps://leetcode.com/problems/house-robber-ii/
Dynamic ProgrammingDecode Wayshttps://leetcode.com/problems/decode-ways/
Dynamic ProgrammingUnique Pathshttps://leetcode.com/problems/unique-paths/
Dynamic ProgrammingJump Gamehttps://leetcode.com/problems/jump-game/
GraphClone Graphhttps://leetcode.com/problems/clone-graph/
GraphCourse Schedulehttps://leetcode.com/problems/course-schedule/
GraphPacific Atlantic Water Flowhttps://leetcode.com/problems/pacific-atlantic-water-flow/
GraphNumber of Islandshttps://leetcode.com/problems/number-of-islands/
GraphLongest Consecutive Sequencehttps://leetcode.com/problems/longest-consecutive-sequence/
GraphAlien Dictionary (Leetcode Premium)https://leetcode.com/problems/alien-dictionary/
GraphGraph Valid Tree (Leetcode Premium)https://leetcode.com/problems/graph-valid-tree/
GraphNumber of Connected Components in an Undirected Graph (Leetcode Premium)https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/
IntervalInsert Intervalhttps://leetcode.com/problems/insert-interval/
IntervalMerge Intervalshttps://leetcode.com/problems/merge-intervals/
IntervalNon-overlapping Intervalshttps://leetcode.com/problems/non-overlapping-intervals/
IntervalMeeting Rooms (Leetcode Premium)https://leetcode.com/problems/meeting-rooms/
IntervalMeeting Rooms II (Leetcode Premium)https://leetcode.com/problems/meeting-rooms-ii/
Linked ListReverse a Linked Listhttps://leetcode.com/problems/reverse-linked-list/
Linked ListDetect Cycle in a Linked Listhttps://leetcode.com/problems/linked-list-cycle/
Linked ListMerge Two Sorted Listshttps://leetcode.com/problems/merge-two-sorted-lists/
Linked ListMerge K Sorted Listshttps://leetcode.com/problems/merge-k-sorted-lists/
Linked ListRemove Nth Node From End Of Listhttps://leetcode.com/problems/remove-nth-node-from-end-of-list/
Linked ListReorder Listhttps://leetcode.com/problems/reorder-list/
MatrixSet Matrix Zeroeshttps://leetcode.com/problems/set-matrix-zeroes/
MatrixSpiral Matrixhttps://leetcode.com/problems/spiral-matrix/
MatrixRotate Imagehttps://leetcode.com/problems/rotate-image/
MatrixWord Searchhttps://leetcode.com/problems/word-search/
StringLongest Substring Without Repeating Charactershttps://leetcode.com/problems/longest-substring-without-repeating-characters/
StringLongest Repeating Character Replacementhttps://leetcode.com/problems/longest-repeating-character-replacement/
StringMinimum Window Substringhttps://leetcode.com/problems/minimum-window-substring/
StringValid Anagramhttps://leetcode.com/problems/valid-anagram/
StringGroup Anagramshttps://leetcode.com/problems/group-anagrams/
StringValid Parentheseshttps://leetcode.com/problems/valid-parentheses/
StringValid Palindromehttps://leetcode.com/problems/valid-palindrome/
StringLongest Palindromic Substringhttps://leetcode.com/problems/longest-palindromic-substring/
StringPalindromic Substringshttps://leetcode.com/problems/palindromic-substrings/
StringEncode and Decode Strings (Leetcode Premium)https://leetcode.com/problems/encode-and-decode-strings/
TreeMaximum Depth of Binary Treehttps://leetcode.com/problems/maximum-depth-of-binary-tree/
TreeSame Treehttps://leetcode.com/problems/same-tree/
TreeInvert/Flip Binary Treehttps://leetcode.com/problems/invert-binary-tree/
TreeBinary Tree Maximum Path Sumhttps://leetcode.com/problems/binary-tree-maximum-path-sum/
TreeBinary Tree Level Order Traversalhttps://leetcode.com/problems/binary-tree-level-order-traversal/
TreeSerialize and Deserialize Binary Treehttps://leetcode.com/problems/serialize-and-deserialize-binary-tree/
TreeSubtree of Another Treehttps://leetcode.com/problems/subtree-of-another-tree/
TreeConstruct Binary Tree from Preorder and Inorder Traversalhttps://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
TreeValidate Binary Search Treehttps://leetcode.com/problems/validate-binary-search-tree/
TreeKth Smallest Element in a BSThttps://leetcode.com/problems/kth-smallest-element-in-a-bst/
TreeLowest Common Ancestor of BSThttps://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
TreeImplement Trie (Prefix Tree)https://leetcode.com/problems/implement-trie-prefix-tree/
TreeAdd and Search Wordhttps://leetcode.com/problems/add-and-search-word-data-structure-design/
TreeWord Search IIhttps://leetcode.com/problems/word-search-ii/
HeapMerge K Sorted Listshttps://leetcode.com/problems/merge-k-sorted-lists/
HeapTop K Frequent Elementshttps://leetcode.com/problems/top-k-frequent-elements/
HeapFind Median from Data Streamhttps://leetcode.com/problems/find-median-from-data-stream/

Pephub has curated a comprehensive list of beginner-friendly LeetCode problems that cover every topic and question type that one can expect in a technical interview. The list is not exhaustive but is comprehensive enough to crack top MNCs both on-campus and off-campus.

The problems in the list are carefully chosen to cover all essential topics, including arrays, linked lists, stacks, queues, trees, graphs, dynamic programming, and more. The list also includes problems of varying difficulty levels, ranging from easy to hard, allowing you to start with simpler problems and gradually move towards the more challenging ones.

Why Use Pephub's DSA LeetCode Problems Sheet?

  1. Comprehensive Coverage: The list covers every essential topic and question type, making it an excellent resource for beginners.

  1. Difficulty Levels: The problems in the listed range from easy to hard, allowing you to start with simpler problems and gradually move towards the more challenging ones.

  1. Beginner-Friendly: The problems in the list are beginner-friendly, making it easy for those who are new to DSA to get started.

  1. Curated List: The problems in the list are carefully chosen to ensure that you get the most out of your preparation time.

We would like to give a big shoutout to Soumava Banerjee for his incredible help in creating the Pephub DSA cheatsheet. This cheatsheet is solely dedicated to boosting your DSA skills for both on and off-campus placements.

If you have any questions or need further assistance, don't hesitate to reach out to us. We're here to help you succeed. Happy coding and best of luck on your DSA journey!

#dsa cheatsheet#leetcode#interview tips and tricks#interview preparation#dsa-prep
View Count:10.0k


Similar Articles

How to Start with DSA

Each and every programmer needs a strong grasp in DSA to write efficient and optimised codes. However, DSA has a reputation of being one of the most f......

Cover image

Campus Placement Roadmap for Batch 2024

Its that time round the calendar again, but different for you all as for the first time now. You all will be facing the on campus placement season.Wit......

Cover image


The job hunting landscape has evolved in different aspects since the advent of the internet. Thanks to the internet, online applications for a particu......

Cover image

How to write cold emails / dms / How to approach [with template example]

Writing a cold email might be challenging, but the proper pearl of knowledge can spare business years of pain and thousands of dollars. But how can yo......

Cover image


Operating Systems is one of the core subjects for a computer science student. As such a lot of important questions are asked on this subject in interv......

Cover image


It has been observed that a majority of applicants experience anxiety, self doubt and miscellaneous emotions which might cloud their minds. It is a no...

Cover image

Cognizant previous year QnA and Interview Experience

Cognizant helps organizations remain ahead of the competition by modernizing technology, reinventing processes, and redefining customer experiences. I...

Cover image

Capgemini Previous Year Questions with Study Materials

Capgemini is a global leader in consulting, digital transformation, technology, and engineering services. In the rapidly evolving world of cloud, digi...

Cover image

MINDTREE Interview Experience and Previous Year Questions Part 2

Technical Round :Candidates who pass the online test will be invited to the technical interview...

Cover image

MINDTREE Interview Experience and Previous Year Questions Part 1

About Mindtree:Mindtree Ltd, located in Bangalore, India, is a prominent Indian multinational information technology and outsourcing company. The&nbsp...

Cover image

TCS NQT Latest Questions and Answers

TCS NQT Interview kicks off with the aptitude test. The test follows the following pattern : TCS uses the TCS-iON software for their online aptit...

Cover image


Increased competition for fewer jobs in the current economy means that just being right for the role on paper, is not enough on its own anymore. You h...

Cover image


About TCS NinjaTCS administers the NQT to select candidates for a variety of positions (National Qualifier Test). Tens of thousands of people apply fo...

Cover image

Understanding Time Complexity with Interview Examples

Introduction:Understanding time complexity of a function is imperative for every programmer to execute a program in the most efficient manner. Time co...

Cover image

TCS Digital Interview Experience [2023]

About TCS DigitalTCS selects applicants for a variety of jobs by conducting the NQT (National Qualifier Test). About 10,000-15,000 job applicants subm...

Cover image

SQL Interview Questions

Are you getting ready for your SQL developer job interview?You've come to the correct place.This tutorial will assist you in brushing up on your SQL s...

Cover image

TCS NQT Technical Interview Questions

TCS Recruitment ProcessInterview RoundsInterview round 1:  TCS NQTTCS NQT (National Qualifier T...

Cover image

TCS NQT Aptitude Questions

TCS NQT Aptitude has three sections, namely the Numerical Ability, Verbal Ability, and Reasoning Abi...

Cover image

TCS NQT Interview Experience [2023]

About TCS NQTTCS NQTs, also known as TCS National Qualifier Tests or Tata Consultancy Services Natio...

Cover image

Last Minute Preparation Cheat Sheet for Quantitative Aptitude

FORMULA LIST:ALGEBRA :1.Sum of first n natural numbers = n(n+1)/22.Sum of the squares of first n nat...

Cover image

Final year Placement Roadmap in India

Nowadays students tend to go more for off campus placements rather than on campus placements.One of ...

Cover image

C Interview Questions — 2022

C is a general purpose high-level language most popular amongst coders, it is the most compatible, e...

Cover image

Cognizant GenC Next Interview

What is GenC and GenC Next?GenC stands for Generation Cognizant. It basically means the fresher hiri...

Cover image

Python [Advanced] Interview Questions — 2022

Interview Questions are a great source to test your knowledge about any specific field. But remember...

Cover image

Basic Python [Core] Interview Questions for Freshers and Short Sample Answers — 2022

The most popular high-level, multipurpose programming language right now is Python.Python supports p...

Cover image

Basic Java Interview Questions for Freshers and Short Sample Answers — 2022

Interview Questions are a great source to test your knowledge about any specific field. But remember...

Cover image

A Complete Roadmap for On-Campus Placements

Placements are an important part of engineering life, and while everyone hopes to be placed in a reputable company, only a few are successful. This is primarily due to a...

Cover image