0% found this document useful (0 votes)
112 views15 pages

DSA Questions

The document is a compilation of various coding problems from platforms like LeetCode and GeeksforGeeks, categorized by topics such as Binary Search, Arrays, Linked Lists, and Trees. Each entry includes a problem title, a link to the problem, the person who provided it, and its difficulty level. The problems range from easy to hard, covering a wide array of algorithms and data structures.

Uploaded by

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

DSA Questions

The document is a compilation of various coding problems from platforms like LeetCode and GeeksforGeeks, categorized by topics such as Binary Search, Arrays, Linked Lists, and Trees. Each entry includes a problem title, a link to the problem, the person who provided it, and its difficulty level. The problems range from easy to hard, covering a wide array of algorithms and data structures.

Uploaded by

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

Question Link(if any) Given By Topics Level

35. Search Insert Position https://leetcode.com/problems/search-insert-position/


Yashendra Binary Search Easy
350. Intersection of Two Arrahttps://leetcode.com/problems/intersection-of-two-arrays-ii/
Yashendra Binary Search, Easy
744. Find Smallest Letter G https://leetcode.com/problems/find-smallest-letter-greater-than-target/
Arrays, Binary Easy
15.3sum 3Sum - LeetCode Yashendra Two Pointers, S Medium
162 peak element https://leetcode.com/problems/find-peak-element/
Bhupesh Binary Search Medium
167 Two sum 2 https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
Bhupesh Binary Search Easy
441 Arranging coins https://leetcode.com/problems/arranging-coins/
Bhupesh Binary Search Easy
718 Maximum length of repehttps://leetcode.com/problems/maximum-length-of-repeated-subarray/solution/
Bhupesh Binary Search Medium
Find the number of rotationshttps://www.techiedelight.com/find-number-rotations-circularly-sorted-array/
Yashendra Binary Search Easy
Division of two numbers usi https://www.techiedelight.com/division-two-numbers-using-binary-search-algorithm/
Yashendra Binary Search Medium
16. 3Sum Closest https://leetcode.com/problems/3sum-closest/
Yashendra Two Pointers, S Medium
349. Intersection of Two Arr https://leetcode.com/problems/intersection-of-two-arrays/submissions/
Yashendra Binary Search, Easy
35 Find first and last positio https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
Bhupesh Binary Search Medium
852 peak index in mountain https://leetcode.com/problems/peak-index-in-a-mountain-array/
Bhupesh Binary Search Easy
456 132pattern https://leetcode.com/problems/132-pattern/
Bhupesh Bianry Search Medium
Find Target Indices After Sohttps://leetcode.com/problems/find-target-indices-after-sorting-array/
Yashendra Binary Search Easy
Search in biotonic Array https://www.interviewbit.com/problems/search-in-bitonic-array
Bhupesh Binary Saerch Easy
33. Search in Rotated Sortehttps://leetcode.com/problems/search-in-rotated-sorted-array/
Yashendra Binary Search Medium
1331 Rank tarnsform an arr https://leetcode.com/problems/rank-transform-of-an-array/
Bhupesh sorting,hashtabl Easy
540 singel element in sortedhttps://leetcode.com/problems/single-element-in-a-sorted-array/
Bhupesh Binary search Medium
2099 find subsequnce of leng Bhupesh Sorting,hashtab Easy
https://leetcode.com/problems/find-subsequence-of-length-k-with-the-largest-sum/
4 median of two sorted arra https://leetcode.com/problems/median-of-two-sorted-arrays/
Bhupesh sorting,binaryse Hard
Find the power of a number using binary search Yashendra Binary Search Easy
400. Nth Digit https://leetcode.com/problems/nth-digit/
Yashendra Binary Search Medium
Majority Element Yashendra Binary Search Medium
Find the number of numbers greater than given nu Yashendra Binary Search Easy
Find Primes Yashendra Math Medium
279. Perfect Squares Yashendra Math, Dynamic P
https://leetcode.com/problems/perfect-squares/ Medium

Find all the prime numbers of length n Yashendra Math, Dynamic Hard
Is Subsequence Yashendra String, Dynamic
https://leetcode.com/problems/is-subsequence/ Easy
234. Palindrome Linked List https://leetcode.com/problems/palindrome-linked-list/
Yashendra Linked List, Two Easy
2.Add Two Numbers Yashendra Linked List, Mat
https://leetcode.com/problems/add-two-numbers/ Medium
Find the Union and Intersection Yashendra Array Easy
https://practice.geeksforgeeks.org/problems/union-of-two-arrays/0
of the two sorted arrays.
Rotate Array https://leetcode.com/problems/rotate-array/
Yashendra Array, Maths, T Medium
283. Move Zeroes https://leetcode.com/problems/move-zeroes/
Yashendra Array, Two Poin Easy
876. Middle of the Linked Lishttps://leetcode.com/problems/middle-of-the-linked-list/
Yashendra Linked List, Two Easy
2095. Delete the Middle Node https://leetcode.com/problems/delete-the-middle-node-of-a-linked-list/
Yashendra Linked List, Two Medium
19. Remove Nth Node Fromhttps://leetcode.com/problems/remove-nth-node-from-end-of-list/
E Yashendra Linked List, Two Medium
1721. Swapping Nodes in a https://leetcode.com/problems/swapping-nodes-in-a-linked-list/
Yashendra Linked List, Two Medium
567. Permutation In String https://leetcode.com/problems/permutation-in-string/
Yashendra Two Pointers, S Medium
3. Longest Substring Withouhttps://leetcode.com/problems/longest-substring-without-repeating-characters/
Yashendra Sliding Window, Medium
733. Flood Fill Yashendra
https://leetcode.com/problems/flood-fill/ Depth-First-Sear Easy
695. Max Area of Island Yashendra Depth-First-Sear Medium
https://leetcode.com/problems/max-area-of-island/
116. Populating Next Right https://leetcode.com/problems/populating-next-right-pointers-in-each-node/
Yashendra Depth-First-Sea Medium
617. Merge Two Binary Tre https://leetcode.com/problems/merge-two-binary-trees/
Yashendra Depth-First-Search, Breadth-First-Search, Tree, Bi
21. Merge Two Sorted Lists https://leetcode.com/problems/merge-two-sorted-lists/
Yashendra Linked List, Rec Easy
206. Reverse Linked List https://leetcode.com/problems/reverse-linked-list/
Yashendra Linked List, Rec Easy
tower of hanoi https://www.hackerearth.com/practice/algorithms/dynamic-programming/introduction-to-dynamic-pr
Bhupesh recursion
77. Combinations https://leetcode.com/problems/combinations/submissions/
Yashendra Array, Backtrac Medium
46. Permutations https://leetcode.com/problems/permutations/
Yashendra Array, Backtrac Medium
31. Next Permutation https://leetcode.com/problems/next-permutation/
Yashendra Array, Two Poin Medium
78. Subsets Yashendra
https://leetcode.com/problems/subsets/ Array, Backtrack Medium
198. House Robber Yashendra Array, Dynamic
https://leetcode.com/problems/house-robber/ Medium
516. Longest Palindromic https://leetcode.com/problems/longest-palindromic-subsequence/
Yashendra String, Dynami Medium
Find Kth missing element in https://leetcode.com/discuss/interview-experience/1046277/paytm-intern-fte-dec-2020
Yashendra Array Medium
1302. Deepest Leaves Sumhttps://leetcode.com/problems/deepest-leaves-sum/
Yashendra Tree, Binary-Tre Medium
Rat In a Maze https://practice.geeksforgeeks.org/problems/rat-in-a-maze-problem/1
Yashendra Recursion, Back Hard
Letter Combinations of a P https://leetcode.com/problems/letter-combinations-of-a-phone-number/
Yashendra Recursion, Back Medium
Remove Linked List Elemenhttps://leetcode.com/problems/remove-linked-list-elements
Yashendra LinkedList Easy
Delete Node in a Linked Listhttps://leetcode.com/problems/delete-node-in-a-linked-list/
Yashendra LinkedList Easy
141. Linked List Cycle https://leetcode.com/problems/linked-list-cycle/
Yashendra LinkedList Easy
Linked List Cycle II https://leetcode.com/problems/linked-list-cycle-ii
Yashendra LinkedList Medium
Binary Tree Right Side Viewhttps://leetcode.com/problems/binary-tree-right-side-view/
Yashendra Tree, Binary-Tre Medium
404. Sum of Left Leaves Yashendra Tree, Binary-Tre
https://leetcode.com/problems/sum-of-left-leaves/ Easy
513. Find Bottom Left Tree https://leetcode.com/problems/find-bottom-left-tree-value
Yashendra Tree, Binary-Tre Medium
Top View Of the Binary Treehttps://practice.geeksforgeeks.org/problems/top-view-of-binary-tree/1
Yashendra Tree, Binary-Tre Medium
103. Binary Tree Zigzag Levhttps://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
Yashendra Tree, Binary-Tre Medium
547. Number of Provinces https://leetcode.com/problems/number-of-provinces/
Yashendra Depth-First-Sea Medium
994. Rotting Oranges https://leetcode.com/problems/rotting-oranges
Yashendra Breadth-First-Se Medium
1008. Construct Binary Searhttps://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/
Yashendra Array, Stack, T Medium
72. Edit Distance https://leetcode.com/problems/edit-distance/
Yashendra String, Dynami Hard
One Edit Distance https://www.lintcode.com/en/old/problem/one-edit-distance/
Yashendra String, Dynami Hard
209. Minimum Size Subarra https://leetcode.com/problems/minimum-size-subarray-sum/
Yashendra Array, Binary S Medium
maximum-size-subarray-sumhttps://leetcode.com/problems/maximum-size-subarray-sum-equals-k/
Yashendra Array,Sliding W Medium
Amazon | OA 2019 | Substring Yashendra Sliding Window,
https://leetcode.com/discuss/interview-question/370157 Hard
Count of Substrings with at- https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/
Yashendra Sliding Window, Medium
992. Subarrays with K Differhttps://leetcode.com/problems/subarrays-with-k-different-integers/submissions/
Yashendra Array, Hash Tab Hard
1343. Number of Sub-arrayshttps://leetcode.com/problems/number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-t
Yashendra Array, Sliding Medium
2090. K Radius Subarray A https://leetcode.com/problems/k-radius-subarray-averages/
Yashendra Array, Sliding Medium
904. Fruit Into Baskets https://leetcode.com/problems/fruit-into-baskets/
Yashendra Array, Sliding Medium
1358. Number of Substringshttps://leetcode.com/problems/number-of-substrings-containing-all-three-characters/
Yashendra Hash Table, Str Medium
2063. Vowels of All Substrinhttps://leetcode.com/problems/vowels-of-all-substrings/
Yashendra Math, String, D Medium
424. Longest Repeating Ch https://leetcode.com/problems/longest-repeating-character-replacement/
Hash Table, Str Medium
1493. Longest Subarray of 1https://leetcode.com/problems/longest-subarray-of-1s-after-deleting-one-element/
Yashendra Math, Sliding Medium
239. Sliding Window Maxim https://leetcode.com/problems/sliding-window-maximum/
Yashendra Array, Queue, H Hard
76. Minimum Window Substrhttps://leetcode.com/problems/minimum-window-substring/
Yashendra Hash Table, Str Hard
120. Triangle Yashendra
https://leetcode.com/problems/triangle/ Array, Dynamic Medium
74. Search a 2D Matrix https://leetcode.com/problems/search-a-2d-matrix/
Yashendra Array, Binary Se Medium
81. Search in Rotated Sorted https://leetcode.com/problems/search-in-rotated-sorted-array-ii/
Yashendra Array, Binary S Medium
240. Search a 2D Matrix II https://leetcode.com/problems/search-a-2d-matrix-ii/
Yashendra Array, Binary S Medium
153. Find Minimum in Rotat https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/
Yashendra Array, Binary S Medium
154. Find Minimum in Rotatehttps://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/
Yashendra Array, Binary S Hard
82. Remove Duplicates fromhttps://leetcode.com/problems/remove-duplicates-from-sorted-list-ii
Yashendra Linked List, Two Medium
438. Find All Anagrams in a https://leetcode.com/problems/find-all-anagrams-in-a-string/
Yashendra Hash Table, Str Medium
Jump Game Yashendra
https://leetcode.com/problems/jump-game/ Dynamic Progra Medium
45. Jump Game II Yashendra Array, Greedy,
https://leetcode.com/problems/jump-game-ii/ Medium
240. Search a 2D Matrix II https://leetcode.com/problems/search-a-2d-matrix-ii/
Yashendra Array, Binary S Medium
First negative integer in eve https://practice.geeksforgeeks.org/problems/first-negative-integer-in-every-window-of-size-k3345/1
Yashendra Arrays, Queue, Easy
1823. Find the Winner of th https://leetcode.com/problems/find-the-winner-of-the-circular-game/
Yashendra Arrays, Math, r Medium
K Largest Element K largest elements | Practice | GeeksforGeeks
Yashendra Arrays, Heaps Medium
Kth Element in Matrix Kth element in Matrix | Practice
Yashendra | GeeksforGeeks
Arrays, Heaps Medium
Merge K sorted arrays Kth element in Matrix | Practice
Yashendra | GeeksforGeeks
Arrays, Heaps Medium
Smallest range in k lists Smallest range in K listsYashendra
| Practice | GeeksforGeeks
Arrays, Hepas Hard
Minimum cost of ropes Minimum Cost of ropes Yashendra
| Practice | GeeksforGeeks
Arrays, Heaps Medium
Nearly sorted Nearly Sorted AlgorithmYashendra Arrays, Heaps
| Practice | GeeksforGeeks Medium
Median in Running Stream Find median in a streamYashendra Arrays, Heaps
| Practice | GeeksforGeeks Hard
Container with Most Water Container With Most Water Yashendra
| Practice | GeeksforGeeks
Arrays Hard
Union of two sorted arrays Loading Question... - LeetCode
Yashendra Arrays, Two Poi Easy
Intersection of two sorted ar Intersection of Two Arrays
Yashendra
- LeetCode Arrays Easy
Kadane's Algorithm Yashendra
Maximum Subarray - LeetCode Arrays, Dynami Easy
Replace all zeroes with 5 Replace all 0's with 5 | Practice
Yashendra Number Theory,
| GeeksforGeeks Easy
Maximum Sum in the configu Yashendra
Max sum in the configuration | Practice |Arrays
GeeksforGeeks Medium
797. All Paths From Source https://leetcode.com/problems/all-paths-from-source-to-target
Yashendra Depth-First-Sea Medium
1976. Number of Ways to Arr https://leetcode.com/problems/number-of-ways-to-arrive-at-destination/
Yashendra Dynamic Program Medium
Find a pair with given target https://practice.geeksforgeeks.org/problems/find-a-pair-with-given-target-in-bst/1
Yashendra Binary Search T Medium
Lowest Common Ancestor inhttps://practice.geeksforgeeks.org/problems/lowest-common-ancestor-in-a-bst/1
Yashendra Binary Search T Easy
All Nodes Distance K in Bin https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/submissions/
Yashendra Tree, Binary-Tre Medium
Nodes at given distance in bhttps://practice.geeksforgeeks.org/problems/nodes-at-given-distance-in-binary-tree/1/#
Yashendra Tree Hard
Insert into a Binary Search https://leetcode.com/problems/insert-into-a-binary-search-tree/submissions/
Yashendra Tree, Binary-Tr Medium
Burning Tree Yashendra Tree, Breadth-F
https://practice.geeksforgeeks.org/problems/burning-tree/1/# Hard
Single Number III Yashendra Array, Bit Manip
https://leetcode.com/problems/single-number-iii/ Medium
Serialize and Deserialize B https://leetcode.com/problems/serialize-and-deserialize-bst/
Yashendra String, Tree, De Medium
Search in a Binary Search Thttps://leetcode.com/problems/search-in-a-binary-search-tree/
Yashendra Tree, Binary Se Easy
Ceil in BST https://practice.geeksforgeeks.org/problems/implementing-ceil-in-bst/0/?category[]=Binary%20Sear
Yashendra Tree, Binary Se Medium
Next Greater Element II https://leetcode.com/problems/next-greater-element-ii/
Yashendra Array, Stack, M Medium
Merge Intervals I https://leetcode.com/problems/merge-intervals
Yashendra Array, Sorting Medium
49. Group Anagrams https://leetcode.com/problems/group-anagrams/
Yashendra Array, Hash Tabl Medium
134. Gas Station https://leetcode.com/problems/gas-station/
Yashendra Array, Greedy Medium
1291. Sequential Digits https://leetcode.com/problems/sequential-digits/
Yashendra Enumeration Medium
Minimum Platforms https://practice.geeksforgeeks.org/problems/minimum-platforms-1587115620/1
Yashendra Arrays, Greedy, Medium
1047. Remove All Adjacent D Yashendra String, Stack Medium
https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string/
1209. Remove All Adjacent Du Yashendra String, Stack Medium
https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/
572. Subtree of Another Trehttps://leetcode.com/problems/subtree-of-another-tree/
Yashendra Tree, Depth-Fir Easy
Meeting Room Yashendra Merge Intervals Medium
https://www.educative.io/courses/algorithms-ds-interview/B6708W4N5nX
207. Course Schedule https://leetcode.com/problems/course-schedule/
Yashendra Depth-First-Sear Medium
https://leetcode.com/problems/course-schedule-ii/
Yashendra Depth-First-Sear Medium
Course Schedule III https://leetcode.com/problems/course-schedule-iii/
Yashendra Array, Greedy, Hard
1038. Binary Search Tree t https://leetcode.com/problems/binary-search-tree-to-greater-sum-tree/
Yashendra Tree, Binary Se Medium
All Tasks Scheduling Ordershttps://www.educative.io/courses/grokking-the-coding-interview/q2YmVjQMMr3
Yashendra Topological Sor Hard
310. Minimum Height Trees Minimum Height Trees -Yashendra
LeetCode Depth-First-Sear Medium
480. Sliding Window Medianhttps://leetcode.com/problems/sliding-window-median
Yashendra Array, Hash Tab Hard
Minimum Height Tree Yashendra Depth-First-Sear Medium
https://leetcode.com/problems/minimum-height-trees/
236. Lowest Common Ancesto Yashendra Tree, Depth-Fir Medium
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
105. Construct Binary Tree https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
Yashendra Array, Hash Tab Medium
121. Best Time to Buy and Shttps://leetcode.com/problems/best-time-to-buy-and-sell-stock/
Yashendra Array, Dynamic Easy
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
122. Best Time to Buy and Se Yashendra Array, Dynamic Medium
123. BestKTime
692. Top to BuyWords
Frequent and Se
https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/
Yashendra Array, Dynamic Hard
https://leetcode.com/problems/top-k-frequent-words/
Yashendra Hash Table, Stri Medium
LRU Cache https://leetcode.com/problems/lru-cache/
Yashendra Hash Table, Dou Medium
Solved/Understood the
Solution?
Bhupesh Yash Description Picture
Yes Yes
No Yes
Yes Yes
Yes Yes
Yes No
Yes Yes
yes Yes Look for bigger ints, declare mid as long
No
yes Yes This question is similar to Find Pivot of an array
yes Yes Similar to finding squareroot of a number using binary search
No
No Yes
yes Yes
yes Yes
no
yes partially(202/216), yes by linear search
yes Yes
yes No
no
Yes(with xor)
given a sorted array of n elements, find the
Partially(10/49)
majority element. A element is said to be majority
yes element if it occurs more than n/2 times.
Yes Ex = [1, 2, 3, 3, 3,3, 4] 3 occures 4 times which
is greater than 7/2.

Given a sorted array. FInd the the number of elements


Yes greater than target.
Find the number of primes in the inclusive rane of
two number and y

Find all the prime number of length n formed by using


the digits 2, 3, 5, 7
Yes
Yes
Yes

Yes
Yes
Yes
Yes
Yes

Yes
Yes
Yes
No
Breadth-First-Search, Tree, Bi No
Yes
Yes

Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes Important
Yes

Yes
Yes
Yes
Yes
Yes

Yes
Yes
Yes
Yes
Yes
Yes
Yes atmostk - atmostk-1
Yes

Yes similar to length of subarray with at most 2 distinct elements


Yes similar to 992. Subarrays with K Different Integers with k = 3

Yes
Yes
Yes
Yes
Yes
Yes

Yes

Yes
Yes
Yes
Yes
Yes

Yes
Yes
Maxim sum contiguous subarray

Yes

Yes 2 sum in bst


Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
create a 'map' which stores list of strings which have characters with sam
Yes 6/17/2022 Iterate over String[] and create Map<Character, Integer> freq for each st
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
Yes
Yes
Yes
Yes
Yes
Yes create a map of words with their frequency as value.
create a minHeap<Object[]> and keep offering to heap while iterating the
if at any point size of heap increses from k, poll from it,
Yes get remaining values from heap and add to the list and return list after re
Yes
strings which have characters with same frequency
p<Character, Integer> freq for each string. If freq already occurs in 'map' add current string to map for given freqMap

equency as value.
eep offering to heap while iterating the map
s from k, poll from it,
nd add to the list and return list after reversing it
Question Frequency Link
Lowest Common Ancestor of a Binary 19 https://leetcode.com/problems/lowest-common-ancestor-of
Construct Binary Tree from Preorder a 19 https://leetcode.com/problems/construct-binary-tree-from-p
Minimum Window Substring 18 https://leetcode.com/problems/minimum-window-substring
Valid Parentheses 17 https://leetcode.com/problems/valid-parentheses/
Concatenated Words 17 https://leetcode.com/problems/concatenated-words/
Decode String 17 https://leetcode.com/problems/decode-string/
Search a 2D Matrix 16 https://leetcode.com/problems/search-a-2d-matrix/
Maximum Subarray 16 https://leetcode.com/problems/maximum-subarray/
Permutations 16 https://leetcode.com/problems/permutations/
Search in Rotated Sorted Array 16 https://leetcode.com/problems/search-in-rotated-sorted-arr
Best Time to Buy and Sell Stock III 15 https://leetcode.com/problems/best-time-to-buy-and-sell-sto
Top K Frequent Elements 15 https://leetcode.com/problems/top-k-frequent-elements/
Design Tic-Tac-Toe 15 https://leetcode.com/problems/design-tic-tac-toe/
Reverse Linked List 14 https://leetcode.com/problems/reverse-linked-list/
Reorganize String 14 https://leetcode.com/problems/reorganize-string/
Integer to English Words 14 https://leetcode.com/problems/integer-to-english-words/
Number of Islands 145 https://leetcode.com/problems/number-of-islands/
Partition Labels 144 https://leetcode.com/problems/partition-labels/
Two Sum 100 https://leetcode.com/problems/two-sum/
Reorder Data in Log Files 89 https://leetcode.com/problems/reorder-data-in-log-files/
LRU Cache 81 https://leetcode.com/problems/lru-cache/
Minimum Difficulty of a Job Schedule 71 https://leetcode.com/problems/minimum-difficulty-of-a-job-
Critical Connections in a Network 70 https://leetcode.com/problems/critical-connections-in-a-netw
Pairs of Songs With Total Durations Div 58 https://leetcode.com/problems/pairs-of-songs-with-total-dur
K Closest Points to Origin 57 https://leetcode.com/problems/k-closest-points-to-origin/
Merge Two Sorted Lists 56 https://leetcode.com/problems/merge-two-sorted-lists/
Top K Frequent Words 55 https://leetcode.com/problems/top-k-frequent-words/
Copy List with Random Pointer 54 https://leetcode.com/problems/copy-list-with-random-point
Most Common Word 49 https://leetcode.com/problems/most-common-word/
Merge k Sorted Lists 44 https://leetcode.com/problems/merge-k-sorted-lists/
Longest Palindromic Substring 43 https://leetcode.com/problems/longest-palindromic-substrin
Subtree of Another Tree 41 https://leetcode.com/problems/subtree-of-another-tree/
Trapping Rain Water 40 https://leetcode.com/problems/trapping-rain-water/
Word Ladder 36 https://leetcode.com/problems/word-ladder/
Maximal Square 35 https://leetcode.com/problems/maximal-square/
Friend Circles 34 https://leetcode.com/problems/longest-substring-without-rep
Longest Substring Without Repeating Ch 34 https://leetcode.com/problems/longest-substring-without-re
Add Two Numbers 33 https://leetcode.com/problems/add-two-number
Merge Intervals 32 https://leetcode.com/problems/merge-intervals/
Analyze User Website Visit Pattern 31 https://leetcode.com/problems/analyze-user-website-visit-pa
Prison Cells After N Days 31 https://leetcode.com/problems/prison-cells-after-n-days/
Meeting Rooms II 30 https://leetcode.com/problems/meeting-rooms-ii/
Group Anagrams 29 https://leetcode.com/problems/group-anagrams/
Sliding Window Maximum 28 https://leetcode.com/problems/sliding-window-maximum/
Median of Two Sorted Arrays 28 https://leetcode.com/problems/median-of-two-sorted-arrays
Best Time to Buy and Sell Stock 28 https://leetcode.com/problems/best-time-to-buy-and-sell-sto
Product of Array Except Self 27 https://leetcode.com/problems/product-of-array-except-self/
yes
Course Schedule II 27 https://leetcode.com/problems/course-schedule-ii/
Letter Combinations of a Phone Number 27 https://leetcode.com/problems/letter-combinations-of-a-pho
3 Sum 26 https://leetcode.com/problems/3sum/
yes
Find Median from Data Stream 26 https://leetcode.com/problems/find-median-from-data-strea
yes
Rotting Oranges 26 https://leetcode.com/problems/rotting-oranges/
Search a 2D Matrix II 25 https://leetcode.com/problems/search-a-2d-matrix-ii/
Word Search II 24 https://leetcode.com/problems/word-search-ii/
Binary Tree Zigzag Level Order Traversal 24 https://leetcode.com/problems/binary-tree-zigzag-level-orde
Insert Delete GetRandom O(1) 23 https://leetcode.com/problems/insert-delete-getrandom-o1/
All Nodes Distance K in Binary Tree 22 https://leetcode.com/problems/all-nodes-distance-k-in-binar
Baseball Game 22 https://leetcode.com/problems/baseball-game/
Word Break II 22 https://leetcode.com/problems/word-break-ii/
Word Break 22 https://leetcode.com/problems/word-break/
Word Search 19 https://leetcode.com/problems/word-search/
Solved?
west-common-ancestor-of-a-binary-tree/ Done
nstruct-binary-tree-from-preorder-and-inorder-traversal/
Done
nimum-window-substring
id-parentheses/
ncatenated-words/
code-string/
arch-a-2d-matrix/ Done
aximum-subarray/
rmutations/
arch-in-rotated-sorted-array/
st-time-to-buy-and-sell-stock-iii/
p-k-frequent-elements/ Done
sign-tic-tac-toe/
verse-linked-list/ Done
organize-string/
eger-to-english-words/
mber-of-islands/ Done
rtition-labels/

order-data-in-log-files/
Done
nimum-difficulty-of-a-job-schedule/
tical-connections-in-a-network/
irs-of-songs-with-total-durations-divisible-by-60/ create a dummy node temp with value -1 and make a node t = t
losest-points-to-origin/ iterate over both the lists while any one of them becomes null,
Done
at the end add the remaining lists to t
erge-two-sorted-lists/ Done return t.next
p-k-frequent-words/ Done
py-list-with-random-pointer/
ost-common-word/
erge-k-sorted-lists/
ngest-palindromic-substring/ Done
btree-of-another-tree/
pping-rain-water/ Done

aximal-square/
gest-substring-without-repeating-characters/
ngest-substring-without-repeating-characters/
Done
d-two-number
erge-intervals/ Done
alyze-user-website-visit-pattern/
son-cells-after-n-days/
eeting-rooms-ii/
oup-anagrams/ Done
ding-window-maximum/ Done
edian-of-two-sorted-arrays/
st-time-to-buy-and-sell-stock/ Done
Done
urse-schedule-ii/ Done
tter-combinations-of-a-phone-number/
Done
Done
tting-oranges/ Done
arch-a-2d-matrix-ii/
ord-search-ii/
nary-tree-zigzag-level-order-traversal/ Done
ert-delete-getrandom-o1/
-nodes-distance-k-in-binary-tree/ Done
seball-game/
ord-break-ii/
ue -1 and make a node t = temp
one of them becomes null,
ot
https://leetcode.com/discuss/interview-experience/561225/amazon-sde-2-bangalore-india-march-2020
Amazon SDE2

You might also like