0% found this document useful (0 votes)
0 views9 pages

Muhammad Farhan's DSA Sheet

Muhammad Farhan's DSA Sheet contains a list of 71 LeetCode problems categorized by topics such as Math, Array, String, Hash Map, and Tree. The document emphasizes the importance of consistency in practice and includes links to problem descriptions, hints, and comments for each problem. It also encourages learning advanced concepts and provides links to study plans and personal profiles on LinkedIn and GitHub.

Uploaded by

vh12329cse22
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)
0 views9 pages

Muhammad Farhan's DSA Sheet

Muhammad Farhan's DSA Sheet contains a list of 71 LeetCode problems categorized by topics such as Math, Array, String, Hash Map, and Tree. The document emphasizes the importance of consistency in practice and includes links to problem descriptions, hints, and comments for each problem. It also encourages learning advanced concepts and provides links to study plans and personal profiles on LinkedIn and GitHub.

Uploaded by

vh12329cse22
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/ 9

Muhammad Farhan's DSA Sheet

REMEMBER Nothing worth having comes easy!


CONSISTENCY is the Key. Do atleast one question every day
Serial Problem Name Done (Y/N) Solution Comments / Hints for the Problem
Math / Array / String
1 Add Two Integers - LeetCode
2 Concatenation of Array - LeetCode
3 Convert the Temperature - LeetCode
4 Smallest Even Multiple - LeetCode
5 Fizz Buzz - LeetCode
6 Ant on the Boundary - LeetCode
7 Average Value of Even Numbers That Are Divisible by Three - LeetCode
8 Maximum Nesting Depth of the Parentheses - LeetCode Solution
9 https://leetcode.com/problems/three-divisors/description
10 Number of Common Factors - LeetCode
11 Find Greatest Common Divisor of Array - LeetCode Greatest Common Divisor (GCD) is an important mathematical concept
12 Defanging an IP Address - LeetCode
13 Two Sum - LeetCode
14 Minimum Number Game - LeetCode Solution
15 To Lower Case - LeetCode Understand ASCII Values
16 https://leetcode.com/problems/robot-return-to-origin/description/
17 https://leetcode.com/problems/furthest-point-from-origin/
18 Palindrome Number - LeetCode
19 Subtract the Product and Sum of Digits of an Integer - LeetCode
20 Difference Between Element Sum and Digit Sum of an Array - LeetCode
21 Count Integers With Even Digit Sum - LeetCode
22 https://leetcode.com/problems/harshad-number/description/
23 https://leetcode.com/problems/perfect-number/description/
24 https://leetcode.com/problems/valid-perfect-square/description/
25 https://leetcode.com/problems/truncate-sentence/description/
26 https://leetcode.com/problems/reverse-words-in-a-string-iii/description/
27 Buy Two Chocolates - LeetCode Array, Sorting
28 Divisible and Non-divisible Sums Difference - LeetCode
29 https://leetcode.com/problems/detect-capital/description/
30 https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/description/
31 https://leetcode.com/problems/shuffle-string/description/
32 Keep Multiplying Found Values by Two - LeetCode
33 https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix/description
34 Maximum Area of Longest Diagonal Rectangle - LeetCode
35 https://leetcode.com/problems/number-of-1-bits/description/
36 https://leetcode.com/problems/fibonacci-number/ Fibonacci is a very important concept. Understand it thoroughly
37 https://leetcode.com/problems/climbing-stairs/description/
38 Binary Search - LeetCode Binary Search
39 Search Insert Position - LeetCode Binary Search
40 Goal Parser Interpretation - LeetCode
41 Find the Maximum Achievable Number - LeetCode
42 Missing Number - LeetCode
43 Alternating Digit Sum - LeetCode
44 https://leetcode.com/problems/count-items-matching-a-rule/description/
45 https://leetcode.com/problems/maximum-average-subarray-i/description/ Learn Sliding Windows Technique First
46 https://leetcode.com/problems/capitalize-the-title/description/
https://leetcode.com/problems/convert-integer-to-the-sum-of-two-no-zero-integers/description/
47
48 https://leetcode.com/problems/find-first-palindromic-string-in-the-array/description/
49 Maximum Number of Words Found in Sentences - LeetCode
50 Plus One - LeetCode
51 191. Number of 1 Bits
52 Maximum Odd Binary Number - LeetCode
53 Find the Distance Value Between Two Arrays - LeetCode
54 https://leetcode.com/problems/sum-of-values-at-indices-with-k-set-bits/ Learn Binary Number System
55 Count of Matches in Tournament - LeetCode
56 Find N Unique Integers Sum up to Zero - LeetCode
57 Single Number - LeetCode
58 https://leetcode.com/problems/left-and-right-sum-differences/description/
59 https://leetcode.com/problems/decompress-run-length-encoded-list/description/
60 Contains Duplicate - LeetCode Use sorting
61 Minimum Common Value - LeetCode Two Pointers
62 Final Value of Variable After Performing Operations - LeetCode
63 https://leetcode.com/problems/check-if-a-string-is-an-acronym-of-words/description/
64 Find the Difference - LeetCode
65 https://leetcode.com/problems/find-missing-and-repeated-values/description/ String
66 Check If Two String Arrays are Equivalent - LeetCode
67 https://leetcode.com/problems/squares-of-a-sorted-array/description/ Learn Sliding WIndow Approach
68https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/description/
69 https://leetcode.com/problems/find-resultant-array-after-removing-anagrams/description/ Medium - Easy
70 https://leetcode.com/problems/find-all-duplicates-in-an-array/description/ Medium - Easy
71 Partitioning Into Minimum Number Of Deci-Binary Numbers - LeetCode String Medium Problem (But easy - look at hints)

Congratulations! 71 Questions, Now you need to understand hash map / set.


It's fun to solve with it !
Hash Map
72 Two Sum - LeetCode Instead two loops, solve with one loop using hash map / set
73 Majority Element - LeetCode
74 Contains Duplicate - LeetCode Already done with sorting, now do with hashmap (Less time complexity)
75 https://leetcode.com/problems/most-frequent-number-following-key-in-an-array/description/
76 https://leetcode.com/problems/n-repeated-element-in-size-2n-array/description/
77 Maximum Number of Pairs in Array - LeetCode
78 https://leetcode.com/problems/valid-anagram/description/
79 https://leetcode.com/problems/find-the-difference-of-two-arrays/description/
80 https://leetcode.com/problems/first-unique-character-in-a-string/description/
81 https://leetcode.com/problems/first-letter-to-appear-twice/description/
82 Check if the Sentence Is Pangram - LeetCode
83 Jewels and Stones - LeetCode
84 Largest Positive Integer That Exists With Its Negative - LeetCode
85 Minimum Common Value - LeetCode
86 https://leetcode.com/problems/find-missing-and-repeated-values/description/
87 Number of Good Pairs - LeetCode
88 Distribute Candies - LeetCode
89 Count Elements With Maximum Frequency - LeetCode
90 Remove Duplicates from Sorted Array - LeetCode
91 Move Zeroes - LeetCode
92 Duplicate Zeros - LeetCode
93 Intersection of Two Arrays - LeetCode
94 Intersection of Two Arrays II - LeetCode
95 Find Smallest Letter Greater Than Target - LeetCode
96 https://leetcode.com/problems/find-resultant-array-after-removing-anagrams/description/
97 Set Mismatch - LeetCode
98 Maximum Product of Three Numbers - LeetCode
99 Third Maximum Number - LeetCode
100 https://leetcode.com/problems/most-frequent-even-element/description/
101 https://leetcode.com/problems/contains-duplicate-ii/description/
102 https://leetcode.com/problems/number-of-arithmetic-triplets/description/
103 https://leetcode.com/problems/maximum-length-substring-with-two-occurrences/description/
104 https://leetcode.com/problems/find-all-duplicates-in-an-array/description/ Medium - Easy
105 https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram/description/ Medium
106https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram-ii/description/ Medium
107 https://leetcode.com/problems/determine-if-two-strings-are-close/description/ Medium
108 https://leetcode.com/problems/insert-delete-getrandom-o1/description/ Medium
109 https://leetcode.com/problems/group-anagrams/description/ Medium
110
111 Permutation in String - LeetCode Medium Sliding Window
112 Find All Anagrams in a String - LeetCode Medium Sliding Window

Congratulations! It's time to learn advanced concepts and start doing medium level questions
Remember Quality over quantity.
Learn Linkedlists, Trees, DFS, BFS, Dynamic Programming and do Easy then Medium questions from these concepts

TREE
Preorder Traversal
Inorder Traversal
Postorder Traversal

https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier/description/ SQL JOIN

Study Plans - Questions Selected by Leetcode to itself to improve on the topic.


These two are highly recommended

https://leetcode.com/studyplan/top-sql-50/

Pls like my linkedin post : Your likes and comments are my moticvation <3
Muhammad Farhan KT on LinkedIn: Leetcode Question Sheet | 16 comments

For topic wise question set. Visit my Github Repo


https://github.com/muhammadfarhankt/Data-Structures-Algoithms-Golang/
Sl. No Question link
Warm-Ups Read This
1 Convert the Temperature https://www.rareskills.io/post/best-50-leetcode-questions-to-start
2 Add Two Integers
3 Smallest Even Multiple
4 Final Value of Variable after Performing Operations
5 Count of Matches in Tournament
6 Number of Common Factors
7 XOR Operation in an Array
Array
8 Fizz Buzz
9 Check if Array is Sorted and Rotated
10 Check if a Word Occurs as a Prefix of Any Word in a Sentence
11 Subtract the Product and Sum of Digits of an Integer
12 Find First Palindromic String in the Array
13 Running Sum of 1D Array
14 Merge Two Sorted Lists
15 Find Greatest Common Divisor of Array
16 Maximum Number of Words Found in Sentences
17 Final Value of Variable after Performing Operations
18 Shuffle the Array
19 Shuffle String
20 Cells in a Range on an Excel Sheet
21 Minimum Sum of Four Digit Number after Splitting Digits
22 Decompress Run-Length Encoded List
String
23 Length of Last Word
24 To Lower Case
25 To Upper Case (Opposite)
26 Reverse String (Without two-pointers)
27 Valid Palindrome
28 Count Vowel Substrings of a String
29 Repeated Substring Pattern
30 Defanging an IP Address
31 Determine Color of a Chessboard Square
32 Add Digits
33 Jewels and Stones
34 Roman to Integer
2D Array
35 Richest Customer Wealth
36 Flipping an Image
37 Lucky Numbers in a Matrix
38 Shift 2D Grid
39 Available Captures for Rook
Hash Table
40 Jewels and Stones
41 Decode the Message
42 Unique Morse Code Words
43 Check if the Sentence is Pangram
44 First Letter to Appear Twice
45 Sum of Unique Elements
46 Merge Similar Items
47 Divide Array into Equal Pairs
48 Destination City
49 Number of Good Pairs
https://leetcode.com/problems/split-a-string-in-balanced-strings/description/
https://leetcode.com/problems/cells-in-a-range-on-an-excel-sheet/description/
https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/description/
https://leetcode.com/problems/decode-the-message/description/
https://leetcode.com/problems/sorting-the-sentence/description/
https://leetcode.com/problems/remove-one-element-to-make-the-array-strictly-increasing/description/

https://leetcode.com/problems/reverse-only-letters/description/
https://leetcode.com/problems/greatest-common-divisor-of-strings/description/
https://leetcode.com/problems/check-if-the-number-is-fascinating/description/
https://leetcode.com/problems/remove-trailing-zeros-from-a-string/description/
https://leetcode.com/problems/next-greater-element-i/description/
https://leetcode.com/problems/count-elements-with-maximum-frequency/description/
https://leetcode.com/problems/split-strings-by-separator/description/
https://leetcode.com/problems/capitalize-the-title/description/
https://leetcode.com/problems/detect-capital/description/
https://leetcode.com/problems/longest-common-subsequence/description/?envType=daily-question&envId=2024-01-25 Medium
https://leetcode.com/problems/design-an-ordered-stream/description/

https://leetcode.com/problems/longest-common-prefix/description/ trie

https://leetcode.com/problems/roman-to-integer/description
https://leetcode.com/problems/integer-to-roman/description/ Medium
https://leetcode.com/problems/pascals-triangle/description/
https://leetcode.com/problems/pascals-triangle-ii/description/
https://leetcode.com/problems/merge-similar-items/description/
https://leetcode.com/problems/merge-two-2d-arrays-by-summing-values/description/
https://leetcode.com/problems/check-if-numbers-are-ascending-in-a-sentence/
https://leetcode.com/problems/minimum-right-shifts-to-sort-the-array/description/
https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/description/

https://leetcode.com/problems/kth-largest-element-in-an-array/description/ Med
Linear & Binary Search

Linked List
Convert Binary Number in a Linked List to Integer - LeetCode
Reverse Linked List - LeetCode
Middle of the Linked List - LeetCode
Palindrome Linked List - LeetCode
Linked List Cycle
Intersection of Two Linked Lists - LeetCode
Insert Greatest Common Divisors in Linked List - LeetCode
Delete the Middle Node of a Linked List - LeetCode

Recursion
https://leetcode.com/problems/design-hashset/description/
https://leetcode.com/problems/design-hashmap/description/

Trie
https://leetcode.com/problems/longest-common-prefix/description/
https://leetcode.com/problems/implement-trie-prefix-tree/description/
https://leetcode.com/problems/search-suggestions-system/description/
Tree

Add One Row to Tree - LeetCode Medm


Linkedin https://www.linkedin.com/in/muhammadfarhankt/
Github https://github.com/muhammadfarhankt/
Leetcode https://leetcode.com/muhammadfarhankt/

You might also like