Dsa 375
Dsa 375
1 Strings 1 Valid Palindrome Amazon Cisco D-E-Shaw Facebook FactSet Morgan Stanley Paytm Zoho
2 Strings 1 Valid Anagram Nagarro Media.net Directi Google Adobe Flipkart
3 Strings 1 Valid parentheses Google Interview Qs use Stacks (if possible)
4 Strings 1 Remove Consecutive Characters Samsung + Adobe
5 Strings 1 Longest Common Prefix Adobe + Grofers + Dunzo Interview Qs
6 Strings 1 Convert a Sentence into its Equivalent Mobile Numeric Keypad Sequence Adobe
7 Strings 1 Print all the Duplicates in the Input String Ola + Amdocs IQ
8 Strings 1 Longest Substring without Repeating Characters Morgan Stanley + Amazon IQ
9 Strings 1 Longest Repeating Character Replacement Amazon Google
10 Strings 1 Group Anagrams Samsung + Adobe + Amazon Interview Qs
11 Strings 1 Longest Palindromic Substring Microsoft + Google + Samsung + Visa IQ
12 Strings 1 Palindromic Substrings Microsoft IQ
13 Strings Repeated 1 Next Permutation Adobe + Goldman Sachs + Uber
14 Strings Count Palindromic Subsequences Myntra Interview Qs
15 Strings Smallest Window in a String Containing all the Characters of Another String Microsoft + Amazon IQ
16 Strings Wildcard String Matching Microsoft + Amazon + Ola IQ
17 Strings Longest Prefix Suffix Flipkart + Swiggy IQ
18 Strings Rabin-Karp Algorithm for Pattern Searching Microsoft
19 Strings Transform One String to Another using Minimum Number of Given Operation Directi
20 Strings Minimum Window Substring Amazon Google MakeMyTrip Streamoid Technologies Microsoft Media.net Atlassian Flipkart
21 Strings Boyer Moore Algorithm for Pattern Searching Amdocs
22 Strings Word Wrap Microsoft use Dynaming Programming
1 Searching & Sorting 1 Permute Two Arrays such that Sum of Every Pair is Greater or Equal to K Samsung
2 Searching & Sorting 1 counting sort Samsung+ Morgan Stanley+ Snapdeal + EPAM Systems
3 Searching & Sorting 1 find common elements three sorted arrays MAQ Software Microsoft VMWare
4 Searching & Sorting 1 Searching in an array where adjacent differ by at most k TCS Amazon
5 Searching & Sorting 1 ceiling in a sorted array TCS
6 Searching & Sorting 1 Piar with given difference Amazon Visa
7 Searching & Sorting 1 majority element Amazon+ Google
8 Searching & Sorting 1 count triplets with sum smaller that a given value Amazon SAP Labs
9 Searching & Sorting Maximum Sum Subsequence with no adjacent elements Amazon FactSet Oxigen Wallet OYO Rooms Paytm Walmart Yahoo Adobe Flipkart
10 Searching & Sorting 1 Merge Sorted Arrays using O(1) Space Amdocs Brocade Goldman Sachs Juniper Networks Linkedin Microsoft Quikr Snapdeal Synopsys Zoho Adobe
11 Searching & Sorting 1 Inversion of Array Adobe Amazon BankBazaar Flipkart Microsoft Myntra MakeMyTrip
12 Searching & Sorting 1 Find Duplicates in O(n) Time and O(1) Extra Space Amazon D-E-Shaw Flipkart Paytm Qualcomm Zoho
13 Searching & Sorting Radix Sort Amazon+ Microsoft
14 Searching & Sorting Product of Array except itself Accolite Amazon D-E-Shaw Intuit Morgan Stanley Opera Microsoft Flipkart
15 Searching & Sorting Make all Array Elements Equal Amazon
16 Searching & Sorting Check if Reversing a Sub Array Make the Array Sorted Amazon
17 Searching & Sorting Find Four Elements that Sum to a Given Value Adobe Amazon Google Microsoft OYO Rooms
18 Searching & Sorting Median of Two Sorted Array with Different Size Amazon Samsung Microsoft Google
19 Searching & Sorting Median of Stream of Integers Running Integers Amazon + Google
20 Searching & Sorting Print Subarrays with 0 Sum Paytm Adobe
21 Searching & Sorting Aggressive Cows Adobe
22 Searching & Sorting Allocate Minimum number of Pages Google Infosys Codenation Amazon Microsoft
23 Searching & Sorting Minimum Swaps to Sort Amazon + Google
1 Stacks & Queues 1 Implement two stacks in an Array 24*7 Innovation Labs Microsoft Samsung Snapdeal
2 Stacks & Queues 1 Evaluation of Postfix Expression Amazon + Google + Facebook
3 Stacks & Queues 1 Implement Stack using Queues Facebook
4 Stacks & Queues 1 Queue Reversal Amazon + Morgain Stanley
5 Stacks & Queues 1 Implement Stack Queue using Deque Microsoft +Atlassian
6 Stacks & Queues 1 Reverse first k elements of queue Microsoft + Amdocs
7 Stacks & Queues Design Stack with Middle Operation MaQ Software
8 Stacks & Queues 1 Infix to Postfix Amazon + Samsung + Paytm + Vmware inc
9 Stacks & Queues Design and Implement Special stack Amazon Google Microsoft Visa Goldman Sachs
10 Stacks & Queues 1 Longest Valid String Google Microsoft
11 Stacks & Queues Find if an expression has duplicate parenthesis or not Flipkart Oracle OYO Rooms Snapdeal Walmart Yatra.com Microsoft Google
12 Stacks & Queues Stack permutations check if an array is stack permutation of other Visa
13 Stacks & Queues Count natural numbers whose permutation greater number Amazon
14 Stacks & Queues Sort a stack using Recursion Amazon Goldman Sachs IBM Intuit Kuliza Yahoo Microsoft
15 Stacks & Queues Queue based approach for first non repeating character in a stream Microsoft Flipkart
16 Stacks & Queues The Celebrity Problem Google + Visa + Apple
17 Stacks & Queues 1 Next larger Element Visa
18 Stacks & Queues Distance of nearest cell Flipkar + Facebook
19 Stacks & Queues Rotten-oranges Facebook
20 Stacks & Queues 1 Next smaller element Codenation
21 Stacks & Queues Circular-tour Codenation Flipkart
22 Stacks & Queues Efficiently implement k-stacks single array Flipkart
23 Stacks & Queues The celebrity problem Google + Visa + Apple
24 Stacks & Queues Iterative tower of hanoi Microsoft Flipkart
25 Stacks & Queues Find the maximum of minimums for every window size in a given array Amazon Microsoft Flipkart
26 Stacks & Queues lru cache implementation Microsoft + Uber + Alibaba
27 Stacks & Queues Find a tour that visits all stations Uber
1 Greedy Activity selection problem greedy algo Facebook Morgan Stanley Flipkart
2 Greedy Greedy algorithm to find minimum number of coins Accolite Amazon Morgan Stanley Oracle Paytm Samsung Snapdeal Synopsys Visa Microsoft Google
3 Greedy Minimum sum two numbers formed digits array-2 Google
4 Greedy Minimum sum absolute difference pairs two arrays Amazon
5 Greedy Find maximum height pyramid from the given array of objects Flipkart Amazon
6 Greedy Minimum cost for acquiring all coins with k extra coins allowed with every coin
7 Greedy Find maximum equal sum of every three stacks Microsoft Amazon Flipkart
8 Greedy Job sequencing problem Microsoft + Acolite
9 Greedy Greedy algorithm egyptian fraction
10 Greedy Fractional knapsack problem Microsoft
11 Greedy Maximum length chain of pairs Amazon Microsoft
12 Greedy Find smallest number with given number of digits and digit sum MAQ Software OYO Rooms
13 Greedy Maximize sum of consecutive differences circular-array Maccafe
14 Greedy paper-cut minimum number squares Google
15 Greedy Lexicographically smallest array-k consecutive swaps Amazon
16 Greedy Problems-CHOCOLA Flipkart
17 Greedy Find minimum time to finish all jobs with given constraints
18 Greedy Job sequencing using disjoint set union Samsung
19 Greedy Rearrange characters string such that no two adjacent are same Amazon Microsoft
20 Greedy Minimum edges to reverse to make path from a source to a destination
21 Greedy Minimize Cash Flow among a given set of friends who have borrowed money from each other
22 Greedy Minimum Cost to cut a board into squares Maccafe
1 Binary Trees Maximum Depth of Binary Tree Amazon Cadence India CouponDunia D-E-Shaw FactSet FreeCharge MakeMyTrip
2 Binary Trees Reverse Level Order Traversal Amazon + Microsoft + flipkart + Adobe
3 Binary Trees Subtree of Another Tree Amazon + Microsoft + Facebook
4 Binary Trees Invert Binary Tree Amazon Hike
5 Binary Trees Binary Tree Level Order Traversal Accolite Adobe Amazon Cisco D-E-Shaw Flipkart
6 Binary Trees Left View of Binary Tree Microsoft + Adobe + Cisco Networking Academy
7 Binary Trees Right View of Binary Tree Amdocs
8 Binary Trees ZigZag Tree Traversal Amazon Cisco FactSet Hike Snapdeal Walmart Microsoft Flipkart
9 Binary Trees Create a mirror tree from the given binary tree Accolite Adobe Amazon Belzabar EBay Goldman Sachs Microsoft Morgan Stanley Myntra Ola Cabs Paytm
10 Binary Trees Leaf at same level Amazon
11 Binary Trees Check for Balanced Tree Amazon Walmart Microsoft
12 Binary Trees Transform to Sum Tree Amazon FactSet Microsoft Samsung Walmart
13 Binary Trees Check if Tree is Isomorphic Amazon Microsoft
14 Binary Trees Same Tree Amazon Microsoft Flipkart
15 Binary Trees Construct Binary Tree from Preorder and Inorder Traversal Accolite Amazon Microsoft
16 Binary Trees Height of Binary Tree Amazon Cadence India CouponDunia D-E-Shaw FactSet FreeCharge MakeMyTrip
17 Binary Trees Diameter of a Binary Tree Amazon Microsoft OYO Rooms
18 Binary Trees Top View of Binary Tree Microsoft + Adobe + Expedia Group
19 Binary Trees Bottom View of Binary Tree DE Shaw India
20 Binary Trees Diagonal Traversal of Binary Tree Amazon Microsoft
21 Binary Trees Boundary Traversal of binary tree Accolite Amazon FactSet Hike Kritikal Solutions
22 Binary Trees Construct Binary Tree from String with Brackets Microsoft Morgan Stanley OYO Rooms Payu Samsung Snapdeal Flipkart
23 Binary Trees Minimum swap required to convert binary tree to binary search tree Adobe Amazon
24 Binary Trees Duplicate subtree in Binary Tree Google
25 Binary Trees Check if a given graph is tree or not Microsoft Amazon
26 Binary Trees Lowest Common Ancestor in a Binary Tree Accolite Amazon American Express Cisco Expedia Flipkart MakeMyTrip Microsoft OYO Room
27 Binary Trees Min distance between two given nodes of a Binary Tree Amazon Linkedin MakeMyTrip Ola Cabs Qualcomm Samsung
28 Binary Trees Duplicate Subtrees Ola
29 Binary Trees Kth ancestor of a node in binary tree Josh Technology Group
30 Binary Trees Binary Tree Maximum Path Sum Samsung + Facebook
31 Binary Trees Serialize and Deserialize Binary Tree Flipkart InMobi Linkedin MAQ Software Microsoft Paytm Quikr Yahoo
32 Binary Trees Binary Tree to DLL Accolite Amazon Goldman Sachs Microsoft Morgan Stanley Salesforce Snapdeal
33 Binary Trees Print all k-sum paths in a binary tree Accolite Amazon Goldman Sachs
1 Binary Search Trees Lowest Common Ancestor of a Binary Search Tree Accolite Amazon Flipkart MAQ Software Microsoft Samsung Synopsys
2 Binary Search Trees Binary Search Tree | Set 1 (Search and Insertion) Accolite Amazon Microsoft Paytm Samsung
3 Binary Search Trees Minimum element in BST Microsoft
4 Binary Search Trees Predecessor and Successor Google + Adobe + Goladman Sachs + Direct
5 Binary Search Trees Check whether BST contains Dead End Walmart
6 Binary Search Trees Binary Tree to BST HSBC
7 Binary Search Trees Kth largest element in BST Accolite Amazon Samsung SAP Labs Microsoft
8 Binary Search Trees Validate Binary Search Tree OYO Rooms Qualcomm Samsung Snapdeal VMWare Walmart Wooker Amazon Facebook
9 Binary Search Trees Kth Smallest Element in a BST Accolite Amazon Google
10 Binary Search Trees Delete Node in a BST Adobe Barclays
11 Binary Search Trees Flatten BST to sorted list Microsoft
12 Binary Search Trees Preorder to Postorder Amazon Linkedin Flipkart
13 Binary Search Trees Count BST nodes that lie in a given range D-E-Shaw Google
14 Binary Search Trees Populate Inorder Successor for all Nodes Sap labs
15 Binary Search Trees Convert Normal BST to Balanced BST Paytm
16 Binary Search Trees Merge two BSTs DE Shaw India
17 Binary Search Trees Given n appointments, find all conflicting appointments Samsung
18 Binary Search Trees Replace every element Samsung
19 Binary Search Trees Construct BST from given preorder traversal Adobe Morgan Stanley Microsoft
20 Binary Search Trees Find median of BST in O(n) time and O(1) space Amazon
21 Binary Search Trees Largest BST in a Binary Tree Amazon D-E-Shaw Samsung Microsoft Flipkart Important
1 Heaps & Hashing Choose k array elements such that difference of maximum and minimum is minimized
2 Heaps & Hashing Heap Sort Adobe
3 Heaps & Hashing Top K Frequent Elements Amazon Microsoft
4 Heaps & Hashing k largest elements in an array Amazon Microsoft Walmart Adobe
5 Heaps & Hashing Next Greater Element Amazon + Microsoft + Flipkart + Adobe
6 Heaps & Hashing K’th Smallest/Largest Element in Unsorted Array ABCO Accolite Amazon Cisco Hike Microsoft Snapdeal VMWare Google Adobe
7 Heaps & Hashing Find the maximum repeating number in O(n) time and O(1) extra space Accolite Amazon
8 Heaps & Hashing K-th smallest element after removing some integers from natural numbers ABCO Accolite Amazon Cisco Hike Microsoft Snapdeal VMWare Google Adobe
9 Heaps & Hashing Find k closest elements to a given value Amazon OYO Rooms
10 Heaps & Hashing K’th largest element in a stream Amazon Cisco Hike OYO Rooms Walmart Microsoft Flipkart
11 Heaps & Hashing Connect Ropes Amazoon + Oyo + Goldman Sachs
12 Heaps & Hashing Cuckoo Hashing Amaxon
13 Heaps & Hashing Itinerary from a List of Tickets Microsoft + Ola + eBay
14 Heaps & Hashing Largest Subarray with 0 Sum Amazon MakeMyTrip Microsoft
15 Heaps & Hashing Count distinct elements in every window of size k Accolite Amazon Microsoft
16 Heaps & Hashing Group Shifted Strings Oracle
17 Heaps & Hashing Merge K Sorted lists Microsoft + Ola + eBay
18 Heaps & Hashing Find Median from Data Stream Adobe Amazon Apple Belzabar D-E-Shaw Facebook Flipkart Google Intuit Microsoft Morgan Stanley Ola Cabs Oracle Samsung SAP Labs Yahoo
19 Heaps & Hashing Sliding Window Maximum Amazon Directi Flipkart Microsoft Google
20 Heaps & Hashing Find the smallest positive number Accolite Amazon Samsung Snapdeal
21 Heaps & Hashing Find Surpasser Count of each element in array Amazon Morgan Stanley Ola Cabs SAP Labs
22 Heaps & Hashing Tournament Tree and Binary Heap Amazon Ola Cabs Samsung Synopsys Walmart Microsoft
23 Heaps & Hashing Check for palindrome Amazon Cisco D-E-Shaw Facebook FactSet Morgan Stanley Paytm Zoho
24 Heaps & Hashing Length of the largest subarray with contiguous elements Amazon Intuit Microsoft
25 Heaps & Hashing Palindrome Substring Queries Amazon Morgan Stanley Ola Cabs SAP Labs
26 Heaps & Hashing Subarray distinct elements Microsoft + Ola + eBay
27 Heaps & Hashing Find the recurring function MAQ Software
28 Heaps & Hashing K maximum sum combinations from two arrays Amazon
Topics Question
Remarks
a given Number
1 non-preemptive
wo are adjacent
is divisible by k
e to a destination