| Sliding Window Maximum LeetCode Solution | Adobe Amazon American Express Apple ByteDance Citadel Google Intel LinkedIn Mathworks Microsoft Oracle PayPal Salesforce Splunk Tesla Twilio Twitter Two Sigma Uber VMware Yelp | stack |
| Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | Amazon Apple BlackRock Cisco Citadel DE Shaw DocuSign Expedia Infosys Mathworks Oracle PayPal Salesforce ServiceNow Twilio Visa VMware | array |
Medium | Range Sum Query 2D – Immutable Leetcode Solution | Amazon Bloomberg Facebook Google lyft Microsoft Nvidia Samsung | matrix |
| Minimum swaps to make sequences increasing | | array |
| Sum of nearest smaller and greater number | | array |
Medium | Iterative Inorder Traversal of a Binary Tree | | tree |
Medium | Morris Inorder Traversal | | tree |
Hard | Sqrt (or Square Root) Decomposition Technique | Cadence India PayPal Qualtrics Roblox Twilio | |
Medium | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | Accenture Adobe Amazon Factset Zoho | array |
Medium | Armstrong Number | Oracle VMware | |
Medium | Scramble String | Amazon Fanatics Samsung | string |
Easy | Valid Anagrams | Amazon Goldman Sachs Google Microsoft Nagarro | string |
Medium | Contiguous Array | Amazon MakeMyTrip Morgan Stanley Paytm | array |
Medium | Convex Hull Algorithm | Geometric Morgan Stanley Samsung | algorithm |
Medium | Group Anagrams | Amazon Facebook Google Microsoft | string |
Hard | Integer to English words | Amazon Facebook Microsoft Oracle | string |
Medium | Unique Paths II | Amazon VMware | matrix |
Medium | Maximum Length of Repeated Subarray | Indeed Karat Roblox | array |
Easy | Count pair with Given Sum | Accolite Amazon Factset Hike | array |
Easy | Minimum Delete Operations to make all Elements of Array Same | Adobe Factset | hashing |
Medium | Maximum Distance Between two Occurrences of Same Element in Array | Delhivery Factset Fanatics Fourkites | hashing |
Easy | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | Accolite Adobe Amazon Delhivery Fourkites | hashing |
Medium | Union and Intersection of two Linked Lists | 24*7 Innovation Labs Accolite Amazon Flipkart Komli Media Microsoft Taxi4Sure VMware Walmart Labs | linked-list |
Medium | Maximum difference between frequency of two elements such that element having greater frequency is also greater | Accenture Accolite Amazon VMware | array |
Hard | Smallest Subarray with k Distinct Numbers | Amazon Google | hashing |
Medium | All Unique Triplets that Sum up to a Given Value | Accolite Amazon Fanatics | array |
Easy | Longest Subarray Having Count of 1s One More than Count of 0s | Accenture Amazon DE Shaw Samsung | array |
Medium | Maximum Array from Two given Arrays Keeping Order Same | Accenture Amazon Delhivery Factset Fourkites OYO Rooms Publicis Sapient Zoho | array |
Medium | Round Robin Scheduling | Amazon Facebook Google Microsoft | |
Easy | Count Subarrays with Same Even and Odd Elements | Accenture Factset Fanatics | array |
Hard | Find Smallest Range Containing Elements from k Lists | Amazon Apple Google Uber | dynamic-programming |
Medium | Guess Number Higher or Lower II | Amazon Google Microsoft | dynamic-programming |
Easy | Rearrange an Array Such that arr[i] is equal to i | Accenture Adobe Amazon Fanatics Fourkites Zoho | array |
Easy | Segregate 0s and 1s in an Array | Accolite Amazon Fab MakeMyTrip PayPal Paytm Zoho | array |
Medium | Find Largest d in Array such that a + b + c = d | Accolite Amazon Delhivery Fanatics Fourkites FreeCharge | hashing |
Medium | Maximum Number of Chocolates to be Distributed Equally Among k Students | Accenture Adobe Amazon Facebook Fourkites | array |
Easy | Maximum Consecutive Numbers Present in an Array | Accolite Adobe Amazon Fourkites MAQ | array |
Easy | Move all negative elements to one side of array | Capgemini Hike MAQ o9 solutions TCS | array |
Hard | Queries for Number of Distinct Elements in a Subarray | Amazon Google Microsoft Oracle Uber | array |
Hard | Queries on Probability of Even or Odd Number in given Ranges | Google Honeywell Uber | array |
Medium | Total Numbers With no Repeated Digits in a Range | Accolite Factset MAQ | array |
Hard | Range Minimum Query (Square Root Decomposition and Sparse Table) | Amazon Apple Google | array |
Medium | Range Sum Query using Sparse Table | Amazon Publicis Sapient Zoho | array |
Hard | Count and Toggle Queries on a Binary Array | Amazon Facebook Google Uber | array |
Medium | Queries for Decimal Values of Subarrays of a Binary Array | Amazon Google | array |
Medium | Maximize Elements Using Another Array | Amazon Fanatics Fourkites | array |
Easy | Find whether an array is subset of another array | Accolite GE Healthcare Qualcomm | array |
Easy | Minimum swaps required to bring all elements less than or equal to k together | Amazon AppDynamics Factset Fourkites Microsoft | hashing |
Easy | Maximum sum of pairs with specific difference | Accolite Coursera Delhivery Fourkites Snapdeal | dynamic-programming |
Hard | Smallest Good Base | Google | string |
Easy | Find top three repeated in array | MAQ o9 solutions Wipro | hashing |
Medium | Maximum sum of a path in a Right Number Triangle | Citrix DE Shaw Directi Expedia | dynamic-programming |
Medium | Sorting using trivial hash function | Cadence India Capgemini Factset MAQ UHG Optum | hashing |
Medium | Maximum number of segments of lengths a, b and c | Amazon BlackRock ByteDance Citrix Google Teradata Uber | dynamic-programming |
Medium | Maximum subsequence sum such that no three are consecutive | 24*7 Innovation Labs Accenture Amazon Delhivery PayPal PayU | dynamic-programming |
Easy | Count all subsequences having product less than K | ByteDance Capital One CodeNation Databricks Expedia Yandex | dynamic-programming |
Easy | Find duplicates in a given array when elements are not limited to a range | Adobe Amazon Factset MAQ UHG Optum | hashing |
Medium | Minimum insertions to form a palindrome with permutations allowed | Amazon CodeNation Directi Google Indeed Intuit | string |
Hard | LCS (Longest Common Subsequence) of three strings | Amazon CodeNation Expedia Google Uber Zoho | dynamic-programming |
Medium | Check if Array Contains Contiguous Integers With Duplicates Allowed | Accenture Amazon Directi Facebook Intuit | hashing |
Easy | Sum of f(a[i], a[j]) over all pairs in an array of n integers | Cisco Facebook Hike Publicis Sapient | hashing |
Medium | Longest Repeated Subsequence | Amazon Arcesium Avalara ByteDance Capital One Facebook MetLife | dynamic-programming |
Easy | Count of index pairs with equal elements in an array | Amazon Atlassian Citadel Facebook Intuit Snapdeal Square Yandex | hashing |
Easy | Find Sum of all unique sub-array sum for a given array | Amazon Facebook GreyOrange Intuit Microsoft Nagarro | hashing |
Easy | Sequences of given length where every element is more than or equal to twice of previous | Accenture Amazon CodeNation Facebook Google PayPal Qualcomm | dynamic-programming |
Hard | Find maximum length Snake sequence | Amazon CodeNation Expedia Yandex | dynamic-programming |
Medium | Print all triplets in sorted array that form AP | Accenture Accolite Cadence India Google InfoEdge Intuit Pinterest | array |
Hard | Minimum sum of multiplications of n numbers | Accenture BlackRock GE Healthcare JP Morgan PayPal | dynamic-programming |
Medium | Find number of pairs in an array such that their XOR is 0 | Cadence India CouponDunia Honeywell Indeed InfoEdge Moonfrog Labs Pinterest | array |
Easy | Count ways to reach the nth stair using step 1, 2 or 3 | Amazon CodeNation GE Healthcare Microsoft Moonfrog Labs PayPal Uber | dynamic-programming |
Medium | Minimum Sum Path in a Triangle | Amazon Apple Bloomberg | dynamic-programming |
Medium | Longest subarray not having more than K distinct elements | Amazon Citadel Delhivery Facebook Microsoft Samsung Yandex | hashing |
Medium | Morris Traversal | Amazon Facebook Fourkites Google Microsoft | tree |
Hard | Kth ancestor of a node in binary tree | Amazon Google | tree |
Hard | Maximum possible difference of two subsets of an array | Atlassian Cadence India Directi FreeCharge Opera PayU Snapchat Times Internet Xome | hashing |
Medium | Find postorder traversal of BST from preorder traversal | Amazon Fourkites PayU | tree |
Hard | Inorder Successor of a node in Binary Tree | Amazon Expedia Morgan Stanley OYO Rooms Snapchat | tree |
Easy | Given an Array of Pairs Find all Symmetric Pairs in it | Amazon Capgemini Cisco FreeCharge Moonfrog Labs Opera Xome | array |
Easy | Minimum operation to make all elements equal in array | Amazon BlackRock Citadel Directi Flipkart Indeed Yandex | hashing |
Easy | Check if a given array can represent Preorder Traversal of Binary Search Tree | Adobe Amazon LinkedIn | tree |
Medium | Construct Binary Tree from given Parent Array representation | Amazon Microsoft Snapdeal | tree |
Medium | Given a binary tree, how do you remove all the half nodes? | Accolite Amazon Microsoft PayU Snapdeal Synopsys Yahoo | tree |
Easy | Iterative Preorder Traversal | Amazon Google JP Morgan Microsoft Morgan Stanley Uber | tree |
Medium | Find subarray with given sum (Handles Negative Numbers) | Amazon CouponDunia Delhivery GE Healthcare InfoEdge Moonfrog Labs | hashing |
Medium | Length of the largest subarray with contiguous elements | Adobe Amazon Bloomberg Cisco Karat Monotype Solutions Paytm PayU Publicis Sapient SAP Labs | hashing |
Easy | Find distance between two nodes of a Binary Tree | Amazon LinkedIn MakeMyTrip Netflix Samsung | tree |
Medium | Count number of triplets with product equal to given number | Accolite Amazon Cisco Flipkart Kuliza Publicis Sapient | hashing |
Medium | Maximum difference between first and last indexes of an element in array | Accolite Amazon Hike MakeMyTrip Ola Cabs SAP Labs | hashing |
Easy | Write Code to Determine if Two Trees are Identical | Amazon Factset Fanatics GE Healthcare Microsoft PayPal | tree |
Hard | Find any one of the multiple repeating elements in read only array | Capital One Facebook Google Indeed Microsoft Pinterest | hashing |
Easy | Find elements which are present in first array and not in second | Accolite Delhivery Factset Fanatics Snapdeal Zoho | hashing |
Medium | Boundary Traversal of binary tree | Accolite Amazon Hike Kritikal Solutions Microsoft Morgan Stanley PayU Snapdeal | tree |
Hard | Check for Palindrome after every character replacement Query | Amazon Facebook Flipkart Google Netflix | hashing |
Easy | Difference between highest and least frequencies in an array | Citadel Fab Fourkites Roblox Tesla | hashing |
Medium | Diagonal Traversal of Binary Tree | Amazon Factset Fanatics Fourkites Oracle PayU | tree |
Easy | Bottom View of a Binary Tree | Accolite Amazon CouponDunia Flipkart Paytm Walmart Labs | tree |
Medium | Letter Combinations of a Phone Number | Amazon Apple Atlassian Capital One Databricks eBay Facebook Google Microsoft Morgan Stanley Oracle Qualtrics Twilio Uber VMware Walmart Labs | queue |
Hard | Find four elements that sum to a given value (Hashmap) | Amazon Google Microsoft | hashing |
Medium | Count even length binary sequences with same sum of first and second half bits | 24*7 Innovation Labs Amazon Dell GE Healthcare | dynamic-programming |
Easy | Longest subsequence such that difference between adjacents is one | Amazon Avalara Factset Fourkites Microsoft | dynamic-programming |
Medium | Find all triplets with zero sum | Amazon GE Healthcare Google Hike | array |
Easy | k-th missing element in increasing sequence which is not present in a given sequence | Citadel Expedia Fab Factset IBM SAP Labs | hashing |
Easy | How to check if two given sets are disjoint? | Factset Hike Kuliza Nagarro Opera Snapdeal | hashing |
Easy | Check if a given array contains duplicate elements within k distance from each other | Amazon Avalara Citadel FreeCharge HackerRank Snapchat Snapdeal | hashing |
Easy | Print Right View of a Binary Tree | Accolite Adobe Amazon MakeMyTrip Snapdeal | tree |
Medium | Check if two arrays are equal or not | Accenture Goldman Sachs MAQ o9 solutions Taxi4Sure Twilio | hashing |
Medium | Pair with given product | 24*7 Innovation Labs Amazon Avalara Roblox | hashing |
Medium | Maximum path sum in a triangle | Arcesium CodeNation GE Healthcare PayU Uber Zoho | dynamic-programming |
Easy | Path with maximum average value | Cisco Epic Systems GreyOrange SAP Labs Times Internet | dynamic-programming |
Easy | Maximum Distance in Array | Adobe Amazon Google Oracle | matrix |
Medium | Subarray with 0 sum | Citrix DE Shaw Goldman Sachs Indeed MakeMyTrip OYO Rooms Paytm TCS | hashing |
Easy | Find missing elements of a range | Delhivery GreyOrange LinkedIn Nagarro Opera Synopsys | hashing |
Easy | First element occurring k times in an array | Amazon Hike PayU SAP Labs Teradata Wipro Yatra Zoho | hashing |
Easy | Maximum product of an increasing subsequence | Accolite GE Healthcare HackerRank IBM Snapchat Yahoo | dynamic-programming |
Hard | Print all subarrays with 0 sum | Amazon FreeCharge Indeed Info Edge Microsoft OYO Rooms | hashing |
Easy | Contains Duplicate | Adobe Amazon Apple | hashing |
Medium | Print Maximum Length Chain of Pairs | Amazon | dynamic-programming |
Easy | Print n terms of Newman-Conway Sequence | Amazon Citadel Factset Fanatics JP Morgan | dynamic-programming |
Hard | Count Substrings with equal number of 0s, 1s and 2s | Citrix FreeCharge Goldman Sachs OYO Rooms Times Internet Twilio | hashing |
Medium | Remove Duplicates from Sorted List II | Amazon | linked-list |
Medium | Form minimum number from given sequence | Accolite Amazon Fanatics Goldman Sachs Info Edge Snapchat | string |
Medium | Print modified array after executing the commands of addition and subtraction | ByteDance Cisco Citrix FreeCharge HackerRank Nagarro Opera Teradata | dynamic-programming |
Easy | Write a function to get the intersection point of two Linked Lists | Accolite Amazon DE Shaw Factset Goldman Sachs MakeMyTrip MAQ Microsoft Qualcomm Snapdeal Visa Zopper | linked-list |
Easy | Newman-Conway Sequence | Amazon Honeywell | dynamic-programming |
Medium | Generate all possible sorted arrays from alternate elements of two given sorted arrays | Directi Karat PayPal Twilio Yandex | array |
Medium | Moser-de Bruijn Sequence | FreeCharge Snapdeal Times Internet | dynamic-programming |
Hard | Range Queries for Longest Correct Bracket Subsequence | Amazon CodeNation Google PayPal Uber | dynamic-programming |
Hard | Print modified array after multiple array range increment operations | Expedia FreeCharge Google Indeed Moonfrog Labs Ola Cabs Qualtrics | dynamic-programming |
Medium | Number of indexes with equal elements in given range | GreyOrange Indeed Opera Pinterest Snapdeal Yahoo | dynamic-programming |
Hard | Longest Bitonic Subsequence | CodeNation DE Shaw Google JP Morgan Microsoft | dynamic-programming |
Easy | Golomb sequence | Cadence India Indeed Times Internet Yatra | dynamic-programming |
Hard | Array Queries for multiply replacements and product | Cadence India DE Shaw Expedia Google | array |
Easy | NewmanโShanksโWilliams prime | HackerRank | dynamic-programming |
Hard | Difference Array | Range update query in O(1) | Arcesium CodeNation Directi Expedia Google Qualcomm | dynamic-programming |
Hard | Painting Fence Algorithm | CodeNation Facebook Google Intuit JP Morgan Morgan Stanley | dynamic-programming |
Easy | Check in binary array the number represented by a subarray is odd or even | Cisco Fab IBM Microsoft PayU Snapchat Snapdeal Teradata | array |
Medium | Largest subarray with equal number of 0s and 1s | Amazon Coursera GreyOrange MakeMyTrip Morgan Stanley Paytm Synopsys Times Internet | hashing |
Medium | Binary array after M range toggle operations | Amazon Coursera Goldman Sachs Google GreyOrange Snapchat | dynamic-programming |
Easy | Constant time range add operation on an array | CodeNation DE Shaw Directi Expedia Google | dynamic-programming |
Medium | Delete Nth node from the end of the given linked list | Adobe Amazon Arcesium Factset Intuit Zoho | linked-list |
Easy | Delete a Node from linked list without head pointer | GE Healthcare MAQ | linked-list |
Medium | Count Primes in Ranges | Google Hike Kuliza Sieve Snapchat Yahoo | dynamic-programming |
Easy | Print the Fibonacci numbers in reverse order | Accenture MAQ o9 solutions UHG Optum | dynamic-programming |
Easy | Print Fibonacci sequence using 2 variables | Amazon Delhivery Factset Fourkites Hike MAQ o9 solutions PayU | dynamic-programming |
Easy | Non-overlapping sum of two sets | Accolite Amazon Hike Kuliza Pinterest Snapdeal Synopsys Teradata | hashing |
Hard | Find all pairs (a, b) in an array such that a % b = k | Amazon Arcesium Citadel Directi FreeCharge Yahoo | hashing |
Hard | Range LCM Queries | Amazon Directi Google Indeed PayPal Snapdeal Uber | tree |
Medium | Queries on XOR of greatest odd divisor of the range | 24*7 Innovation Labs Citadel Directi Expedia Google Indeed Snapdeal | dynamic-programming |
Easy | Compute nCr % p | Accenture Cadence India Komli Media Ola Cabs Square | dynamic-programming |
Easy | Cutting a Rod | Amazon Directi Flipkart Google JP Morgan Microsoft | dynamic-programming |
Hard | Queries for counts of array elements with values in given range | Coursera DE Shaw Google PayU Snapdeal Times Internet Yahoo | array |
Hard | Number of elements less than or equal to a given number in a given subarray | CodeNation DE Shaw Google Opera PayPal Pinterest | tree |
Medium | Largest divisible pairs subset | Amazon Google | dynamic-programming |
Hard | GCDs of given index ranges in an array | DE Shaw PayPal Snapchat Snapdeal Times Internet Xome | tree |
Hard | Queries for GCD of all numbers of an array except elements in a given range | Amazon Capital One DE Shaw Google PayPal Teradata | dynamic-programming |
Hard | Find whether a subarray is in form of a mountain or not | Amazon BlackRock Cisco Citrix Factset Honeywell Tesla Yandex | dynamic-programming |
Medium | Mean of range in array | Cadence India Expedia FreeCharge GreyOrange Roblox Snapchat Snapdeal Times Internet Yandex | dynamic-programming |
Hard | Subset with sum divisible by m | Arcesium Cisco DE Shaw Directi Expedia Myntra PayU | dynamic-programming |
Medium | Check if any two intervals overlap among a given set of intervals | Amazon Arcesium Cisco Directi JP Morgan Microsoft Qualcomm Yandex | dynamic-programming |
Easy | Range sum queries without updates | BlackRock GE Healthcare Moonfrog Labs Synopsys Taxi4Sure Twilio | dynamic-programming |
Easy | Max stack | Apple lyft Uber | stack |
Medium | Subset Sum Problem in O(sum) space | Adobe Amazon Drishti-Soft | dynamic-programming |
Easy | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | Adobe Amazon Flipkart Oracle OYO Rooms Snapdeal Walmart Labs Yatra | stack |
Hard | Products of ranges in an array | Accolite DE Shaw FreeCharge Google SAP Labs Snapdeal Times Internet | array |
Easy | Friends Pairing Problem | Amazon Expedia GE Healthcare Google Honeywell JP Morgan | dynamic-programming |
Easy | Happy Number | Adobe Amazon Apple JP Morgan | |
Easy | Palindrome Permutation | Facebook Microsoft | array |
Medium | Gold Mine Problem | Amazon Flipkart Google Microsoft PayU Uber | dynamic-programming |
Easy | Palindrome Number | Adobe Amazon Bloomberg DBOI Google MAQ Microsoft o9 solutions | |
Easy | Design a stack that supports getMin() in O(1) time and O(1) extra space | Adobe Amazon Factset Flipkart Goldman Sachs GreyOrange Kuliza Microsoft Paytm Publicis Sapient SAP Snapdeal VMware | stack |
Medium | Find Maximum Level sum in Binary Tree | Amazon | tree |
Easy | Tiling Problem | 24*7 Innovation Labs Amazon DE Shaw Delhivery PayPal | dynamic-programming |
Medium | Permutation Coefficient | BankBazaar Xome | dynamic-programming |
Easy | Sort a stack using recursion | Amazon Goldman Sachs IBM Kuliza Yahoo | stack |
Easy | Longest Increasing Consecutive Subsequence | Amazon Google Microsoft | dynamic-programming |
Hard | Red-Black Tree Introduction | Amazon CodeNation Facebook Google Uber | tree |
Easy | Delete middle element of a stack | Amazon | stack |
Medium | Sorting array using Stacks | Amazon Goldman Sachs IBM Kuliza Yahoo | stack |
Medium | Binomial Coefficient | Directi Expedia HackerRank Xome | dynamic-programming |
Hard | Binary Search Tree Delete Operation | Accolite Amazon Qualcomm Samsung | tree |
Easy | Best Time to Buy and Sell Stock | Adobe Amazon Apple Bloomberg ByteDance Cisco DE Shaw eBay Expedia Facebook Goldman Sachs Google JP Morgan Microsoft Morgan Stanley Oracle PayPal Qualtrics Samsung VMware | dynamic-programming |
Medium | Implementation of Deque using Doubly Linked List | Adobe Alation Amazon American Express DE Shaw Factset Fourkites GE Healthcare Google Oxigen Wallet Qualcomm Spotify Sprinklr UHG Optum Wooker Xome ZScaler | linked-list |
Medium | Delete consecutive same words in a sequence | Factset | string |
Medium | Iterative Method to find Height of Binary Tree | Accolite Adobe Amazon Fanatics Fourkites Hike Snapdeal Yatra | tree |
Medium | Sort a stack using a temporary stack | Amazon Goldman Sachs IBM Kuliza Yahoo | stack |
Easy | Reverse a stack without using extra space in O(n) | Factset Infosys MAQ | stack |
Hard | Clone a Binary Tree with Random Pointers | Accolite Amazon Cisco Factset Fanatics Google Microsoft Opera Snapchat | tree |
Medium | Top K Frequent Elements | Amazon Apple Bloomberg ByteDance Capital One eBay Facebook Google Microsoft Oracle Pocket Gems | queue |
Medium | Level order traversal using two Queues | Amazon Hike Microsoft Morgan Stanley | queue |
Easy | Bubble sort using two Stacks | Amazon Capgemini Delhivery MAQ | stack |
Easy | Reverse individual words | Amazon | string |
Medium | Count subarrays where second highest lie before highest | HackerRank | stack |
Medium | Find the smallest binary digit multiple of given number | Amazon Fourkites LinkedIn Microsoft Snapdeal | graph |
Medium | Minimum Operations to convert X to Y | Amazon Factset Fanatics Fourkites JP Morgan Myntra Samsung Spotify Square | graph |
Easy | Find maximum difference between nearest left and right smaller elements | Fourkites | stack |
Medium | Remove brackets from an algebraic string containing + and โ operators | Adobe Amazon Fourkites | stack |
Easy | Implement a stack using single queue | Amazon Fourkites Google Infosys MAQ Microsoft | stack |
Hard | Find the First Circular Tour that visits all the Petrol Pumps | Amazon Factset Microsoft Morgan Stanley Zoho | queue |
Easy | Sort an array according to the order defined by another array | Amazon Microsoft SAP Labs Snapchat Yahoo Zoho | array |
Medium | Rearrange a binary string as alternate x and y occurrences | Accolite Cisco Citrix Hike IBM Info Edge Pinterest Roblox Tesla | string |
Medium | Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space | Adobe DE Shaw Expedia Fanatics Indeed PayU | array |
Easy | Distinct adjacent elements in an array | Coursera DE Shaw Hike IBM Kuliza Nagarro Opera OYO Rooms Zoho | array |
Hard | Construction of Longest Increasing Subsequence (N log N) | Amazon BankBazaar Paytm Samsung | array |
Easy | Maximize sum of consecutive differences in a circular array | Cadence India eBay GE Healthcare Karat SAP Labs Square | array |
Easy | Three way partitioning of an array around a given range | BankBazaar BlackRock Capital One Citadel Fab Moonfrog Labs Synopsys Twilio Yahoo | array |
| Minimum time required to rot all oranges | Adobe Amazon Bloomberg Microsoft | graph |
Medium | Check if X can give change to every person in the Queue | Amazon | array |
Medium | Check if two nodes are on the same path in a Tree | Amazon Factset Fourkites Samsung | graph |
Hard | Check if all levels of two Binary Tree are anagrams or not | Adobe Amazon Facebook Fanatics Fourkites GreyOrange | tree |
Medium | Minimum sum of squares of character counts in a given string after removing k characters | Amazon | queue |
Easy | Rearrange an array such that โarr[j]โ becomes โiโ if โarr[i]โ is โjโ | Amazon Delhivery Kuliza Nagarro Opera Times Internet Yatra | array |
Medium | Maximum length subsequence with difference between adjacent elements as either 0 or 1 | Cisco Expedia Qualtrics SAP Labs Teradata | array |
Easy | Replace two consecutive equal values with one greater | Accenture Citadel FreeCharge PayPal Square Teradata | array |
Medium | Find a sorted subsequence of size 3 in linear time | Avalara Capital One Citadel Citrix eBay Fab Synopsys | array |
Medium | Maximum Product Subarray | Amazon Cisco Microsoft Morgan Stanley Myntra PayU Times Internet Zoho | array |
Easy | Convert array into Zig-Zag fashion | Accenture Amazon Fourkites Teradata Xome | array |
Medium | First negative integer in every window of size k | Accolite Amazon PayPal Soroco | queue |
Medium | Queue based approach for first non-repeating character in a stream | Amazon Flipkart Microsoft PayU Yahoo | queue |
Hard | Distance of nearest cell having 1 in a binary matrix | Accenture Amazon Honeywell HSBC Hulu Twitter | queue |
Hard | Sum of minimum and maximum elements of all subarrays of size k | ByteDance Capital One CouponDunia Databricks Google Twilio Yandex | queue |
Medium | An Interesting Method to generate Binary Numbers from 1 to n | Amazon Belzabar Mahindra Comviva ServiceNow Wooker | tree |
Hard | Find the largest multiple of 3 | Amazon | queue |
| Transpose Graph | Accenture Amazon JP Morgan Microsoft Zycus | graph |
Easy | Check if the given array can represent Level Order Traversal of Binary Search Tree | Amazon Citrix IBM Indeed Info Edge OYO Rooms Teradata | tree |
Hard | Number of siblings of a given Node in n-ary Tree | Amazon Bloomberg CodeNation Google | tree |
Hard | Check whether a given Binary Tree is Complete or not | Alation American Express Databricks Oxigen Wallet Spotify | tree |
Easy | Count the number of nodes at given level in a tree using BFS | Alation BankBazaar JP Morgan Square Taxi4Sure | tree |
Easy | BFS for Disconnected Graph | Amazon Hulu Karat Microsoft Salesforce | graph |
Medium | Page Replacement Algorithms in Operating Systems | Amazon Cognizant Factset Microsoft PayPal | algorithm |
Medium | Check if a queue can be sorted into another queue using a stack | Amazon American Express MAQ | queue |
Medium | Priority Queue using doubly linked list | Amazon Citadel MAQ Wooker | queue |
Easy | Implement Stack and Queue using Deque | Fanatics GE Healthcare MAQ Myntra Qualcomm | queue |
Medium | Form Minimum Number From Given Sequence | Amazon Goldman Sachs | stack |
Medium | Minimum number of distinct elements after removing m items | BlackRock ByteDance Expedia Ola Cabs Oracle PayU SAP Labs Yandex | tree |
Hard | Convert BST into a Min-Heap without using array | Amazon Cisco Microsoft SAP Labs | tree |
Medium | Pattern Occurrences using Stack | | stack |
Medium | Number Of Longest Increasing Subsequence | Amazon Samsung Zoho | dynamic-programming |
Hard | Merge two BSTs with limited extra space | Amazon Google Microsoft PayU Uber | tree |
Easy | Count subarrays with equal number of 1โs and 0โs | Cisco CouponDunia Coursera Databricks Karat SAP Labs Tesla | hashing |
Easy | Iterative Postorder Traversal Using Two Stacks | Adobe Amazon Factset Fourkites Paytm | stack |
Medium | Stack Permutations (Check if an array is stack permutation of other) | Amazon Fourkites | stack |
Hard | Palindrome Substring Queries | Amazon ByteDance eBay Expedia Google Intuit Microsoft PayPal Pinterest Synopsys | hashing |
Easy | Rearrange array such that even index elements are smaller and odd index elements are greater | Avalara Epic Systems Fourkites Roblox Tesla | array |
Easy | Segregate even and odd numbers | Accolite LinkedIn MakeMyTrip Paytm | array |
Hard | Minimum Steps to reach target by a Knight | Amazon LinkedIn MakeMyTrip | graph |
Medium | Binary Tree to Binary Search Tree Conversion using STL set | Amazon Coursera Google Indeed Microsoft OYO Rooms | tree |
Medium | Growable array based stack | MAQ Walmart Labs | stack |
Easy | Find Minimum In Rotated Sorted Array | Adobe Amazon Microsoft Morgan Stanley Samsung Snapdeal Times Internet | array |
Medium | Implementation of Deque using circular array | Amazon GE Healthcare Google Microsoft | queue |
Easy | Move all negative elements to end in order with extra space allowed | Capital One Citrix IBM SAP Labs Taxi4Sure Twilio | array |
Hard | Kโth Largest element in BST using constant extra space | Amazon Expedia FreeCharge Microsoft Snapdeal Yahoo Yandex | tree |
Medium | Rearrange an array in order โ smallest, largest, 2nd smallest, 2nd largest | Amazon Citadel Expedia GE Healthcare Qualcomm Qualtrics Twilio Yatra | sorting |
Easy | Rearrange array such that even positioned are greater than odd | Amazon LinkedIn OYO Rooms Times Internet Zoho | array |
Medium | Double the first element and move zero to end | Microsoft Zoho | array |
Easy | Arrange given numbers to form the biggest number | Amazon MakeMyTrip Paytm Zoho | string |
Medium | Kโth Largest Element in BST when modification to BST is not allowed | Amazon Cisco Google UHG Optum | tree |
Easy | Tracking current Maximum Element in a Stack | Factset Fourkites Infosys | stack |
Medium | Iterative method to find ancestors of a given binary tree | Adobe Amazon Fourkites Google InfoEdge Morgan Stanley Paytm Samsung | stack |
Easy | Check if stack elements are pairwise consecutive | Delhivery Factset Fourkites | stack |
Easy | Remove duplicates from sorted array | Amazon Facebook Morgan Stanley Wipro Xome Zoho | array |
Easy | Check if each internal node of a BST has exactly one child | Accenture Amazon Monotype Solutions PayPal Synopsys | tree |
Medium | Elements to be added so that all elements of a range are present in array | GreyOrange Kuliza Snapdeal Synopsys Teradata Times Internet | hashing |
Medium | Count subarrays having total distinct elements same as original array | Amazon Databricks Fab Honeywell PayU Square Teradata Yandex | hashing |
Easy | Product of array except self | Accolite Amazon DE Shaw Morgan Stanley Opera | array |
Medium | Height of a generic tree from parent array | Google PayU Qualcomm Sprinklr Uber | tree |
Medium | Find k-th smallest element in BST (Order Statistics in BST) | Accolite Amazon Google | tree |
Easy | Linked List Cycle | Accolite Amazon MAQ Samsung | linked-list |
Medium | Vertical sum in a given binary tree | Amazon Microsoft | tree |
Easy | A program to check if a binary tree is BST or not | Accolite Adobe Amazon Boomerang Commerce Factset GreyOrange MakeMyTrip Microsoft Oracle OYO Rooms Qualcomm Snapdeal VMware Walmart Labs Wooker | tree |
Medium | Check for Identical BSTs without building the trees | Fanatics Fourkites | tree |
Easy | Maximum Depth Of Binary Tree | Amazon Cadence India CouponDunia Factset FreeCharge MakeMyTrip Monotype Solutions Snapdeal Synopsys Teradata VMware Zoho | tree |
Medium | Palindrome Partitioning | Amazon Facebook Google Microsoft | dynamic-programming |
Hard | First missing positive | Accolite Amazon Factset Samsung Snapdeal | array |
Easy | Reverse Integer | MakeMyTrip MAQ | string |
Easy | Reverse words in a string | Accolite Adobe Amazon Cisco Goldman Sachs MakeMyTrip MAQ Microsoft Morgan Stanley Paytm PayU SAP Labs Wipro Zoho | string |
Easy | Reverse a String | Infosys MAQ o9 solutions TCS | string |
Easy | Seconds to Days | MAQ | |
Hard | Program for Bridge and Torch problem | Accolite eBay Snapdeal Teradata Times Internet | dynamic-programming |
Hard | Cuckoo sequence program | Epic Systems Flipkart Google Microsoft Netflix Tesla | hashing |
Medium | Subarrays with distinct elements | Cisco FreeCharge Times Internet Zoho | hashing |
Easy | Find the minimum distance between two numbers | CouponDunia Coursera Delhivery Moonfrog Labs PayPal Paytm Snapchat | array |
Hard | Boolean Parenthesization Problem | Amazon LinkedIn Microsoft | dynamic-programming |
Hard | K maximum sums of overlapping contiguous sub-arrays | CodeNation Dell Facebook GE Healthcare Google Qualcomm | dynamic-programming |
Medium | Count quadruples from four sorted arrays whose sum is equal to a given value x | Accolite Fanatics Moonfrog Labs Synopsys | hashing |
Medium | Count pairs from two linked lists whose sum is equal to a given value | Adobe Amazon Avalara Expedia Fanatics Google Indeed Microsoft PayPal Tesla | hashing |
Easy | Find sum of non-repeating elements (distinct) elements in an array | Oxigen Wallet | hashing |
Hard | Find distinct elements common to all rows of a matrix | BlackRock Expedia JP Morgan Qualcomm Snapdeal Yatra Zoho | hashing |
Easy | Numbers with prime frequencies greater than or equal to k | Accolite Amazon Factset Fourkites GreyOrange Pinterest Xome | hashing |
Medium | Convert an array to reduced form | LinkedIn Snapchat Xome Yahoo | hashing |
Medium | Find pairs with given sum such that elements of pair are in different rows | Amazon DE Shaw Directi GreyOrange Indeed Pinterest Teradata | hashing |
Medium | Common elements in all rows of a given matrix | Amazon Cisco DE Shaw Opera SAP Labs Zoho | hashing |
Easy | Count pairs from two sorted arrays whose sum is equal to a given value x | BankBazaar Cisco Citadel Honeywell PayU Roblox Taxi4Sure Yandex | array |
Medium | Find all permuted rows of a given row in a matrix | 24*7 Innovation Labs Accenture Expedia IBM JP Morgan | hashing |
Medium | How to print maximum number of Aโs using given four keys | Amazon Facebook Google PayPal Paytm | dynamic-programming |
Medium | Collect maximum points in a grid using two traversals | Amazon Fab Goldman Sachs Google Honeywell LinkedIn Pinterest Yahoo | dynamic-programming |
Easy | Given two unsorted arrays find all pairs whose sum is x | Amazon Facebook | hashing |
Hard | Convert BST to Min Heap | Amazon BlackRock ByteDance GE Healthcare Honeywell | tree |
Easy | Sort elements by frequency | Amazon Oracle Zoho Zycus | hashing |
Easy | Convert String To Int | MAQ | string |
Easy | Find the first repeating element in an array of integers | Amazon Fanatics MAQ Microsoft Oracle | hashing |
Medium | Maximum weight transformation of a given string | Amazon BlackRock ByteDance CodeNation DE Shaw Expedia JP Morgan Ola Cabs | dynamic-programming |
Hard | Word Wrap Problem | Arcesium Factset GreyOrange Microsoft Myntra Ola Cabs PayU | dynamic-programming |
Hard | The Painterโs Partition Problem | CodeNation Google | dynamic-programming |
| Maximum Subarray Sum Excluding Certain Elements | Accolite CodeNation Directi JP Morgan Qualcomm | dynamic-programming |
Hard | Merge Two Balanced Binary Search Trees | Amazon GE Healthcare Google Microsoft Salesforce Spotify | tree |
Easy | Binary Search Tree Search and Insertion | Amazon DBOI Fanatics GE Healthcare MAQ Microsoft UHG Optum | tree |
Easy | Count items common to both the lists but with different prices | Amazon Factset GE Healthcare Honeywell TCS Tesla | hashing |
Hard | Mobile Numeric Keypad Problem | Amazon MAQ Microsoft Sprinklr | dynamic-programming |
Easy | Find the subarray with least average | Amazon Capital One Moonfrog Labs | array |
Easy | Find the smallest positive integer value that cannot be represented as sum of any subset of a given array | Databricks Fab Taxi4Sure UHG Optum | array |
Easy | Minimum number of subsets with distinct elements | Capital One GE Healthcare IBM Moonfrog Labs Yandex | hashing |
Medium | Maximum sum bitonic subarray | Cisco DE Shaw Dell Fourkites Goldman Sachs Grofers IBM PayU Yahoo | dynamic-programming |
Easy | Find minimum number of merge operations to make an array palindrome | Accolite Adobe Amazon Fourkites | array |
Medium | Minimize the maximum difference between the heights | Adobe Cisco Fanatics Yandex | array |
Medium | Longest Span with same Sum in two Binary arrays | Accenture Cisco Indeed Kuliza SAP Labs Yandex | hashing |
Medium | Convert a normal BST to Balanced BST | American Express ByteDance Capital One Grofers Intel Splunk Zoho | tree |
Hard | Largest area rectangular sub-matrix with equal number of 1โs and 0โs | Accenture Indeed Info Edge Monotype Solutions PayPal Pinterest Synopsys Times Internet UHG Optum | dynamic-programming |
Medium | A Space Optimized DP solution for 0-1 Knapsack Problem | Amazon BlackRock ByteDance CodeNation JP Morgan Netskope Ola Cabs Qualcomm | dynamic-programming |
Easy | Check given array of size n can represent BST of n levels or not | Amazon Hulu Intel Juniper Networks Microsoft Robinhood Yelp | tree |
Easy | Find maximum average subarray of k length | Amazon | array |
Hard | Printing brackets in Matrix Chain Multiplication Problem | Amazon Avalara Citadel Databricks Directi JP Morgan Paytm Twilio | dynamic-programming |
Easy | Size of The Subarray With Maximum Sum | Coursera GreyOrange UHG Optum Xome | dynamic-programming |
Easy | Find minimum difference between any two elements | Amazon | array |
Easy | Minimum number of jumps to reach end | Adobe Amazon Housing.com Moonfrog Labs Morgan Stanley OYO Rooms SAP Labs Walmart Labs | dynamic-programming |
Hard | Number of palindromic paths in a matrix | Apple CodeNation Facebook Fanatics Google | dynamic-programming |
Hard | Largest rectangular sub-matrix whose sum is 0 | Amazon CodeNation Directi Expedia Facebook Google IBM Microsoft PayPal Uber | dynamic-programming |
Medium | Maximum sum rectangle in a 2D matrix | Accolite Amazon Factset Samsung | dynamic-programming |
Medium | Count minimum steps to get the given desired array | Capital One Citrix Coursera Synopsys Zycus | array |
Easy | Maximum Sum Increasing Subsequence | Amazon Fanatics Microsoft Morgan Stanley | dynamic-programming |
Easy | Largest Sum Contiguous Subarray | 24*7 Innovation Labs Accolite Amazon DE Shaw Factset Flipkart Hike Housing.com MakeMyTrip MetLife Microsoft Morgan Stanley Ola Cabs Oracle OYO Rooms PayU Samsung Snapdeal Teradata Visa VMware Walmart Labs Zoho | dynamic-programming |
Medium | Matrix Chain Multiplication | Amazon CodeNation DE Shaw Google Microsoft Uber | dynamic-programming |
Easy | Binary Tree to Binary Search Tree Conversion | Adobe Amazon Apple Bloomberg Google Microsoft VMware | tree |
Medium | Sorted Linked List to Balanced BST | Amazon Facebook | tree |
Easy | Sorted Array to Balanced BST | Adobe Amazon Apple Bloomberg Google Microsoft VMware | tree |
Medium | Transform a BST to Greater sum Tree | Amazon Bloomberg Facebook | tree |
Medium | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | Facebook | tree |
Easy | Advantages of BST over Hash Table | Amazon GE Healthcare Qualcomm | tree |
Easy | Construct BST from its given Level Order Traversal | Amazon Apple GE Healthcare MetLife Microsoft UHG Optum Yelp | tree |
Easy | Construct BST from given Preorder Traversal | Amazon | tree |
| BST to a Tree with Sum of all Smaller Keys | Bloomberg Drishti-Soft Microsoft ServiceNow Twitter Zopper | tree |
Medium | Find the node with minimum value in a Binary Search Tree | Amazon Bloomberg Microsoft | tree |
Easy | Single Number | Amazon | algorithm |
Hard | Shortest Palindrome | Amazon Delhivery Factset | string |
Medium | Shuffle an Array | Amazon Facebook Google Microsoft Oracle | algorithm |
Medium | Maximal Square | Adobe Amazon AppDynamics Apple Facebook Google IBM PayPal Twitter | matrix |
Medium | Super Ugly Number | Google | dynamic-programming |
Easy | Dividing Array into Pairs With Sum Divisible by K | Amazon Microsoft | array |
Easy | Find Number of Employees Under every Employee | Accolite GE Healthcare Microsoft Myntra Qualcomm Synopsys Teradata | hashing |
Medium | Count Distinct Elements in Every Window of Size K | Accolite Amazon Microsoft | array |
Easy | Count Subsets Having Distinct Even Numbers | Cisco Expedia Myntra SAP Labs Taxi4Sure | array |
Medium | Find Three Element From Different Three Arrays Such That a + b + c = sum | Amazon Databricks Directi JP Morgan Taxi4Sure Twilio Zoho | array |
Easy | Special Number | Jio MAQ o9 solutions TCS | algorithm |
Medium | Divisible Pairs Counting | Mahindra Comviva Oracle | dynamic-programming |
Medium | Word Search | Amazon Apple Bloomberg ByteDance Cisco Facebook Intuit Microsoft Oracle ServiceNow Snapchat | matrix |
Hard | K Empty Slots | Amazon Google | algorithm |
Medium | The Knapsack Problem | MakeMyTrip Snapdeal Visa Zoho | dynamic-programming |
Medium | Bellman Ford Algorithm | Facebook Qualtrics | algorithm |
Medium | Huffman Coding | Amazon Bloomberg Google Morgan Stanley Samsung UHG Optum | algorithm |
Medium | Data Structure Designing | Amazon DBOI Facebook Fanatics Fourkites | |
Medium | Longest Increasing Subsequence | Adobe Amazon Citrix CodeNation Facebook Google Microsoft Samsung Zoho | array |
Easy | Reverse Bits | Apple Google Samsung | string |
Medium | Construct Binary Tree from Given Inorder and Preorder Traversals | Amazon Apple Bloomberg ByteDance Citadel Facebook Google Microsoft Oracle | tree |
Medium | Smallest Element Repeated Exactly K Times | Belzabar Komli Media Netskope Nvidia Opera ServiceNow UHG Optum | hashing |
Medium | K-th Distinct Element in an Array | Adobe Amazon Apple ByteDance eBay Expedia Facebook Google LinkedIn Microsoft Oracle Salesforce Spotify Walmart Labs | hashing |
Easy | Cumulative Frequency of Count of Each Element in an Unsorted Array | Cadence India Fanatics LinkedIn Moonfrog Labs Pinterest | hashing |
Medium | Group Words With Same Set of Characters | BlackRock Citrix IBM JP Morgan SAP Labs Xome | hashing |
Easy | First non Repeating Element | Belzabar Komli Media MetLife Snapdeal Sprinklr Wooker | hashing |
Easy | Second Most Repeated Word in a Sequence | Amazon GE Healthcare Goldman Sachs Paytm Snapdeal UHG Optum | hashing |
Easy | Count Pairs Whose Products Exist in Array | Accolite Amazon BlackRock Moonfrog Labs Ola Cabs Snapchat Xome | array |
Easy | Print All Distinct Elements of a Given Integer Array | Amazon MakeMyTrip Zoho | hashing |
Easy | Pair of Positive Negative Values in an Array | Amazon Belzabar Honeywell Hulu Nvidia Robinhood Yelp | hashing |
Easy | Remove Minimum Number of Elements Such That no Common Element Exist in both Array | Alation MetLife Oxigen Wallet ServiceNow Spotify | hashing |
Easy | Maximum occurring character in a string | Amazon Morgan Stanley PayU Zoho | hashing |
Easy | Count Pairs With Given Sum | Accolite Amazon Factset Hike | hashing |
Medium | Insert Delete GetRandom | Affirm Amazon AppDynamics Apple Bloomberg Citadel Facebook Google Microsoft Nvidia Oracle Twitter Two Sigma Yandex Zillow | algorithm |
Medium | Merge Overlapping Intervals | Adobe Amazon Apple Bloomberg Cisco eBay Facebook Goldman Sachs Google IXL Microsoft Oracle Palantir Technologies PayPal Splunk Square Twitter Uber VMware Yandex | array |
Medium | Decode Ways | Adobe Amazon Cisco Databricks Facebook Goldman Sachs Google JP Morgan Microsoft Morgan Stanley Oracle Square | dynamic-programming |
Hard | Median of Two Sorted Arrays | Adobe Amazon Apple Bloomberg ByteDance Facebook Goldman Sachs Google Microsoft | array |
Hard | Edit Distance | Amazon ByteDance Facebook Google Microsoft Palantir Technologies Square | string |
Medium | Maximum Product Subarray | Amazon Apple Bloomberg Facebook Google Microsoft | array |
Hard | Substring With Concatenation Of All Words | Amazon DE Shaw | string |
Medium | Top K Frequent Words | Accolite Fourkites Infosys | string |
Medium | Reverse a Path in BST using Queue | Bloomberg Google Grofers HSBC Microsoft | tree |
Medium | Print Ancestors of a Given Binary Tree Node Without Recursion | Accolite Amazon Fourkites | tree |
Medium | Find Maximum of Minimum for Every Window Size in a Given Array | Amazon Directi Flipkart SAP Labs Zoho | array |
Medium | Identify and Mark Unmatched Parenthesis in an Expression | TCS | stack |
Easy | Iterative Depth First Traversal of Graph | Amazon Avalara Factset Fanatics Google Oracle | graph |
Medium | Minimum Bracket Reversals | Amazon Fanatics | stack |
Medium | Expression Contains Redundant Bracket or Not | Amazon Paytm | string |
Easy | Reverse a Number Using Stack | MAQ Nokia o9 solutions | stack |
Medium | Swap Nodes In Pairs | Amazon Microsoft Moonfrog Labs | linked-list |
Medium | Zigzag Conversion | PayPal | string |
Easy | Valid Palindrome | Infosys MAQ Nokia o9 solutions | string |
Medium | Check if Two Expressions With Brackets are Same | Amazon Hike Oracle Snapdeal Walmart Labs Wipro Yatra Zoho | stack |
Medium | Priority Queue Using Singly Linked List | BrowserStack Hulu Mahindra Comviva Pocket Gems Soroco | queue |
Easy | Reversing the First K elements of a Queue | BlackRock JP Morgan Robinhood Sprinklr Wooker ZScaler | queue |
Easy | Sorting a Queue without Extra Space | Belzabar GE Healthcare Mahindra Comviva MAQ Nvidia Qualcomm ServiceNow | queue |
Medium | Longest Common Prefix Using Word by Word Matching | VMware | array |
Medium | Minimum Size Subarray Sum | Amazon Facebook Goldman Sachs Google Microsoft | array |
Easy | Intersection of Two Arrays | Amazon ByteDance Facebook | array |
Medium | Level order Traversal in Spiral Form | Adobe Amazon Apple Bloomberg Flipkart Microsoft Qualtrics ServiceNow | tree |
Medium | Kth Smallest Element in a BST | Amazon Apple Bloomberg Facebook Google Oracle | tree |
Medium | Search an Element in Sorted Rotated Array | Adobe Amazon Apple Bloomberg ByteDance eBay Expedia Facebook Google Microsoft Nvidia Oracle PayPal Paytm VMware Walmart Labs Zillow | array |
Medium | Valid Parenthesis String | Amazon Facebook Oracle | string |
Medium | Maximum Product Subarray | Amazon Apple Bloomberg Facebook Google Microsoft | array |
Easy | Toeplitz Matrix | Facebook | matrix |
Easy | Balanced Binary Tree | Amazon Bloomberg Google Microsoft | tree |
Easy | Min Stack | Amazon Bloomberg Capital One DBOI Deutsche Bank Goldman Sachs Google Microsoft Oracle Walmart Labs | stack |
Easy | Implement Stack using Queues | PayPal | stack |
Medium | Interval Tree | Amazon Google Intuit Oracle Qualtrics | tree |
Medium | Set Matrix Zeroes | Amazon Apple Facebook Microsoft Oracle Paytm | matrix |
Medium | Smallest Multiple of a Given Number | Alation American Express GE Healthcare Qualcomm Spotify | |
Medium | Construct Complete Binary Tree from its Linked List Representation | Amazon | tree |
Medium | Lowest Common Ancestor | Adobe Amazon Apple Bloomberg Facebook Google LinkedIn Microsoft Oracle Pony.ai Zillow | tree |
Easy | Reversing a Queue using Recursion | | queue |
Medium | 3 Sum | Adobe Amazon Apple Bloomberg Facebook Google Microsoft Oracle Qualtrics Tesla VMware | array |
Easy | Averages of Levels in Binary Tree | Facebook | tree |
Easy | Queue using Stacks | Accolite Adobe Amazon DE Shaw Flipkart Goldman Sachs InfoEdge InMobi MakeMyTrip MAQ Microsoft Morgan Stanley Oracle Walmart Labs | queue |
Medium | Longest Palindromic Subsequence | Amazon Facebook Microsoft | dynamic-programming |
Medium | Find The Duplicate Number | Amazon Apple Bloomberg Google Microsoft | array |
Hard | Maximum Sum of 3 Non-Overlapping Subarrays | Facebook | array |
Easy | Minimum Index Sum of Two Lists | Oracle Yelp | array |
Medium | Reservoir Sampling | Amazon Facebook | algorithm |
Easy | Reversing a Queue | Accolite Coursera Delhivery Factset GreyOrange Zoho | queue |
Medium | Split Array Into Consecutive Subsequences | Google | array |
Easy | Lowest Common Ancestor in Binary Search Tree | Amazon Facebook LinkedIn Oracle | tree |
Hard | KMP Algorithm | Accolite Amazon Google MakeMyTrip MAQ Microsoft Oracle PayU | algorithm |
Easy | Most Frequent Element in an Array | Adobe Amazon Factset Fourkites Infosys MAQ | hashing |
Medium | Evaluate Division | Amazon Bloomberg Facebook Google Microsoft Uber | algorithm |
Medium | Prim’s Algorithm | Amazon Cisco Samsung | algorithm |
Hard | Sudoku Solver | Amazon Apple DoorDash Google Intuit JP Morgan Microsoft Oracle | matrix |
Hard | Segment Tree | Amazon CodeNation Google Microsoft Uber | tree |
Medium | Minimum Path Sum | Amazon Bloomberg Facebook Goldman Sachs Google Microsoft | matrix |
Easy | Find Pair with Greatest Product in Array | Samsung | hashing |
Hard | Minimum Cost to Hire K Workers | Google | algorithm |
Medium | Find the Duplicate Element | Apple Bloomberg Google Microsoft | array |
Easy | Fizz Buzz | Bloomberg Microsoft | algorithm |
Medium | Arithmetic Expression Evaluation | Amazon Oracle | stack |
Medium | Maximum Product of Indexes of Next Greater on Left and Right | Factset Fourkites InfoEdge | stack |
Easy | Check for Balanced Parentheses in an Expression | Amazon Hike Oracle Snapdeal Walmart Labs Wipro Yatra Zoho | stack |
Medium | Evaluation of Postfix Expression | Amazon Oracle | stack |
Easy | Reverse a Stack Using Recursion | Factset Fourkites | stack |
Easy | Find if an Expression has Duplicate Parenthesis or Not | Amazon Factset Oracle | stack |
Medium | How to Implement Stack Using Priority Queue or Heap? | Amazon Fanatics Fourkites | stack |
Medium | Iterative Tower of Hanoi | MAQ | stack |
Medium | How to Efficiently Implement k Stacks in a Single Array? | Amazon Fourkites | stack |
Medium | Find Maximum Depth of Nested Parenthesis in a String | Amazon Facebook | stack |
Medium | Expression Evaluation | Amazon Oracle | stack |
Medium | How to Create Mergable Stack? | Amazon Factset Fanatics | stack |
Medium | The Stock Span Problem | Amazon Delhivery MAQ | stack |
Medium | Find Maximum Sum Possible Equal Sum of Three Stacks | Amazon Fanatics Fourkites | stack |
Medium | Print Next Greater Number of Q queries | Amazon Factset Fanatics | stack |
Medium | Check if an Array is Stack Sortable | Accenture Accolite Amazon | stack |
Medium | Smallest Subarray With all Occurrences of a Most Frequent Element | Citrix Coursera OYO Rooms Qualtrics Synopsys Taxi4Sure | hashing |
Medium | Find Top K (or Most Frequent) Numbers in a Stream | Accolite Amazon | hashing |
Easy | Find the Only Repetitive Element Between 1 to N-1 | CouponDunia Delhivery GreyOrange Info Edge LinkedIn Nagarro SAP Labs | array |
Easy | Reverse a String using Stack | Accolite Capgemini Delhivery Fanatics Fourkites | stack |
Medium | Next Greater Frequency Element | Accenture Capgemini Microsoft UHG Optum | hashing |
Easy | Number of NGEs to the Right | Accolite Fanatics Fourkites | stack |
Medium | Balanced Expression with Replacement | Amazon Hike Oracle Snapchat Snapdeal Walmart Labs Wipro Yatra Zoho | stack |
Easy | Tower Of Hanoi | Factset Fourkites MAQ | algorithm |
Easy | Sliding Window Technique | Amazon Fanatics | algorithm |
Easy | GCD Of Two Numbers | SAP SAP Labs TCS | algorithm |
Easy | MiniMax Algorithm | Amazon Fanatics Game Theory | algorithm |
Medium | Target Sum | Amazon Bloomberg Facebook | dynamic-programming |
Medium | Counting Bits | Amazon Apple | |
Hard | Merge K Sorted Linked Lists | Adobe Amazon Apple Bloomberg ByteDance Databricks eBay Facebook Goldman Sachs Microsoft Oracle Palantir Technologies Twitter Uber | linked-list |
Medium | Wiggle Sort | PayPal | sorting |
Medium | Decode String | Amazon Apple Bloomberg ByteDance Cisco eBay Facebook Google Hulu Microsoft Oracle | stack |
Medium | Print a Binary Tree in Vertical Order | Accolite Amazon BrowserStack Dell Flipkart Grofers MakeMyTrip Netskope Walmart Labs | tree |
Medium | Finding K closest element | Amazon | array |
Easy | Priority Queue in C++ | Amazon Fourkites Infosys Microsoft Oracle | queue |
Easy | Priority Queue | Amazon Avalara CodeNation Goldman Sachs Google Microsoft | queue |
Easy | Change the Array into Permutation of Numbers From 1 to N | Capgemini Delhivery Fourkites MAQ o9 solutions Publicis Sapient | hashing |
Medium | Jump Game | Adobe Amazon Bloomberg Facebook Microsoft | array |
Easy | Recursion | Amazon Infosys MAQ | stack |
Easy | Binary Search Tree | Amazon DBOI Fourkites Infosys Microsoft | tree |
Medium | Prefix to Infix Conversion | Amazon Avalara Fanatics | stack |
Easy | Postfix to Infix Conversion | Amazon Factset Microsoft | stack |
Medium | Prefix to Postfix Conversion | Amazon Factset Fanatics Oracle | stack |
Medium | Postfix to Prefix Conversion | Amazon Factset Fanatics Oracle | stack |
Medium | Maximum Binary Tree | Amazon Google Microsoft Uber | tree |
Medium | Nth Catalan Number | Amazon | algorithm |
Medium | Combination Sum | Adobe Amazon Apple Bloomberg eBay Facebook Microsoft | array |
Medium | Next Permutation | Adobe Amazon Apple Bloomberg ByteDance Facebook Factset Flipkart Google Microsoft Morgan Stanley Salesforce Uber | string |
Medium | Longest Common Subsequence | Amazon eBay Facebook Morgan Stanley | dynamic-programming |
Medium | Max Area of Island | Amazon Bloomberg DoorDash Facebook Google Oracle Palantir Technologies | graph |
Medium | Search in Sorted Rotated Array | Adobe Amazon Apple Bloomberg ByteDance eBay Expedia Facebook Goldman Sachs Google Microsoft Nvidia Oracle PayPal VMware Walmart Labs | array |
Medium | Binary Tree zigzag level order Traversal | Adobe Amazon Apple Bloomberg eBay Flipkart Microsoft Qualtrics ServiceNow | tree |
Hard | Recover Binary Search Tree | Amazon ByteDance Microsoft Oracle Uber | tree |
Medium | Populating Next Right Pointers in Each Node | Amazon Bloomberg Facebook Microsoft | tree |
Medium | Top View of Binary Tree | Amazon Paytm Samsung Walmart Labs | tree |
Medium | Unique Paths | Amazon Bloomberg Facebook Goldman Sachs Google Microsoft Qualtrics | matrix |
Easy | Merge Two Sorted Linked Lists | Adobe Amazon Apple Bloomberg Capital One Facebook Google IBM Microsoft Oracle | linked-list |
Easy | Repeated Substring Pattern | Amazon Google | string |
Medium | Letter Case Permutation | Amazon Bloomberg Spotify | string |
Hard | Find Median from data Stream | Amazon Apple ByteDance Facebook Goldman Sachs Google Microsoft Nvidia Oracle Salesforce Twitter VMware | algorithm |
Medium | Level of Each node in a Tree from source node | Amazon Microsoft | tree |
Easy | Longest Common Prefix using Sorting | Adobe Amazon Apple Bloomberg eBay Facebook Google Microsoft | string |
Medium | House Robber | Amazon Apple Cisco Expedia Google Microsoft Oracle | dynamic-programming |
Easy | Maximum Subarray | Adobe Amazon Apple Bloomberg ByteDance Cisco Facebook Goldman Sachs Google JP Morgan JPMorgan LinkedIn Microsoft Oracle PayPal Paytm Uber | array |
Medium | Sliding Window Maximum | Akuna Capital Amazon ByteDance Citadel Databricks Dropbox Expedia Facebook Google IBM Uber | array |
Medium | Delete And Earn | Pocket Gems | array |
Medium | Length of Longest Fibonacci Subsequence | Amazon | array |
| Rainbow Table | | |
Medium | Merging Intervals | Adobe Amazon Apple Bloomberg Cisco eBay Facebook Goldman Sachs Google IXL Microsoft Oracle Palantir Technologies PayPal Splunk Square Twitter Uber VMware Walmart Labs Yahoo Yandex | array |
Easy | Backspace String Compare | Amazon CodeNation Facebook Google Microsoft Oracle | stack |
Medium | Graph Cloning | Amazon Apple Bloomberg Facebook Google Microsoft Qualcomm Qualtrics Twitter Uber | graph |
Easy | Hamming Distance | Amazon Facebook | algorithm |
Easy | First Bad Version | Amazon Cisco Facebook Google | array |
Easy | Word Pattern | Amazon Capital One | string |
Easy | Peak Index in a Mountain Array | Microsoft | array |
Hard | Regular Expression Matching | Adobe Amazon Apple Bloomberg Coursera eBay Facebook Goldman Sachs Google Microsoft | string |
Medium | Reorganize String | Amazon eBay Facebook Google Microsoft Qualtrics | string |
Medium | Find Duplicate Subtrees | Amazon Google | tree |
Medium | String Compression | Amazon Apple Citrix Expedia Facebook Goldman Sachs IBM Microsoft Yandex | string |
Medium | 4Sum | Adobe Amazon Apple Goldman Sachs | array |
Hard | Create Maximum Number | Apple | array |
Easy | Degree of an array | VMware Walmart Labs | array |
Medium | Queue Reconstruction by Height | Amazon Apple ByteDance Facebook Google | array |
Easy | Search Insert Position | Adobe | array |
Medium | Find Peak Element | Adobe Amazon Apple Bloomberg ByteDance Facebook Google Visa | array |
Easy | Symmetric Tree | Adobe Amazon Apple Capital One eBay Facebook Fanatics Google MAQ Oracle | tree |
Medium | K-th Smallest Element in a Sorted Matrix | Amazon Facebook Google | matrix |
Medium | Minimum Height Trees | Facebook | tree |
Hard | Longest Common Prefix using Trie | Adobe Amazon Apple Bloomberg eBay Facebook Google Microsoft | string |
Hard | Valid Number | Amazon Facebook LinkedIn Oracle | string |
Easy | Trim a Binary Search Tree | Samsung | tree |
Medium | Valid Triangle Number | Bloomberg Robinhood | array |
Medium | Convert Sorted List to Binary Search Tree | Amazon Facebook | tree |
Hard | Kruskal Algorithm | Amazon | graph |
Easy | Number Of 1 bits | Adobe Box Cisco Facebook Qualcomm | algorithm |
Easy | Power of Two | Apple | array |
Medium | Validate Binary Search Tree | Amazon Apple Asana Atlassian Bloomberg ByteDance Citadel Facebook Microsoft Oracle Qualtrics VMware Yahoo | tree |
Hard | Reverse Nodes in K-Group | Adobe Amazon Apple ByteDance Facebook Microsoft | linked-list |
Medium | Maximum size subarray sum equals k | Facebook Microsoft | array |
Easy | Path Sum | Amazon Apple Facebook Microsoft Oracle | tree |
Hard | Find the Closest Palindrome number | Amazon Apple | string |
Easy | Count and Say | Amazon Apple Bloomberg Facebook Google Microsoft VMware | string |
Medium | Level Order Traversal of Binary Tree | Amazon Apple Bloomberg Cisco Facebook Microsoft | tree |
Easy | Tree Traversal (Preorder, Inorder & Postorder) | Adobe Amazon MAQ Oracle Snapdeal | tree |
Medium | LRU Cache Implementation | Adobe Amazon Apple Bloomberg ByteDance Capital One Cisco Citadel Cohesity Cruise Automation Dropbox eBay Expedia Facebook Goldman Sachs Google Microsoft Nutanix Oracle PayPal Pinterest Salesforce Snapchat Tesla Twilio Uber VMware Walmart Labs Zillow | algorithm |
Medium | Merge Sort | Amazon Apple Boomerang Commerce Goldman Sachs Grofers Microsoft Oracle Paytm Qualcomm Snapdeal | sorting |
Easy | Find unique character in a string | Amazon Apple Bloomberg Facebook Goldman Sachs Google Microsoft Oracle Zillow | string |
Medium | Integer to Roman | Amazon Apple Bloomberg Microsoft Oracle | string |
Medium | Valid Sudoku | Amazon Apple Facebook Google Microsoft Oracle Pinterest Roblox Uber | matrix |
Medium | Palindrome Partitioning | Amazon Facebook Google | dynamic-programming |
Medium | Add two numbers | Amazon Apple Bloomberg DocuSign Facebook Google Microsoft Uber VMware Walmart Labs Yahoo | linked-list |
Easy | Next greater element | Amazon Bloomberg | array |
Medium | Deletion in a Binary Tree | Amazon Bloomberg Microsoft | tree |
Medium | Unique Binary Search Trees | Amazon Bloomberg Google | tree |
Medium | Floyd Warshall Algorithm | Samsung | graph |
Medium | Bipartite Graph | Samsung | graph |
Medium | Sieve of Eratosthenes | Amazon Apple Capital One GE Healthcare Google MAQ Microsoft Qualcomm VMware | algorithm |
Medium | Strongly Connected Component | Visa | graph |
Hard | N queen problem | Accolite Amazon Amdocs Apple ByteDance Facebook MAQ Microsoft Twitter Visa | matrix |
Hard | Rabin Karp Algorithm | Accolite Amazon MakeMyTrip MAQ Oracle PayU | string |
Hard | Guess The Word | Amazon Google | array |
Medium | Decision Tree | | tree |
Medium | New 21 Game | Apple Google | dynamic-programming |
Medium | Verify Preorder Serialization of a Binary Tree | Google | tree |
Easy | Missing Number | Amazon Apple Capital One Cisco Facebook Microsoft | array |
Easy | Merge Sorted Array | Amazon Amdocs Apple Bloomberg Brocade Facebook Goldman Sachs IBM Juniper Networks LinkedIn Microsoft Quikr Snapdeal Synopsys Visa Zoho | array |
Medium | Partition Equal Subset Sum | Amazon Facebook Google | array |
Easy | Last Stone Weight | Amazon | array |
Medium | Sort Colors | Amazon eBay Expedia Facebook Goldman Sachs Nvidia Oracle | array |
Medium | Rotate Array | Amazon Apple MakeMyTrip MAQ Microsoft Oracle SAP SAP Labs Wipro | array |
Medium | Applications of Breadth First Search and Depth First Search | | graph |
Medium | Container with Most Water | Adobe Amazon Apple Bloomberg Facebook Flipkart Walmart Labs | algorithm |
Hard | Distinct Subsequences | Amazon Bloomberg Mathworks | dynamic-programming |
Hard | Matrix Chain Multiplication using Dynamic Programming | Amazon Microsoft | matrix |
Medium | Subarray Sum Equals k | Adobe Amazon American Express Bloomberg eBay Facebook Goldman Sachs Google Microsoft Twilio Yahoo | array |
Hard | Infix to Postfix | Amazon Paytm Samsung VMware | array |
Easy | Isomorphic Strings | Amazon Apple Facebook Intel | string |
Easy | Binary Tree Data Structure | DBOI Factset Infosys MAQ Oracle | tree |
Easy | Climbing stairs | Adobe Amazon Apple Bloomberg Expedia Goldman Sachs | dynamic-programming |
Medium | Topological Sorting | Accolite Amazon Flipkart Microsoft Moonfrog Labs Morgan Stanley OYO Rooms Samsung | sorting |
Medium | Insertion Sort | Accenture Cisco Dell Grofers Juniper Networks MAQ Veritas | sorting |
Easy | Self Dividing Numbers | Adobe Epic Systems Tesla | |
Medium | Quick Sort | Adobe Goldman Sachs HSBC Qualcomm Samsung SAP SAP Labs | sorting |
Easy | Types of Binary Tree | Delhivery Infosys MAQ | tree |
Easy | Insertion in a Binary Tree | Delhivery Factset FreeCharge GE Healthcare InfoEdge | tree |
Easy | BFS vs DFS for Binary Tree | Amazon Infosys MAQ TCS | graph |
Easy | Depth First Search (DFS) for a Graph | GE Healthcare Infosys MAQ o9 solutions UHG Optum | graph |
Easy | Breadth First Search (BFS) for a Graph | Amazon Cadence India GE Healthcare Housing.com Pocket Gems UHG Optum | graph |
Easy | String comparison containing wildcards | Accenture Amazon Ola Cabs | string |
Hard | Serialize and Deserialize Binary Tree | Amazon Bloomberg Citadel eBay Facebook Google Microsoft Oracle Qualtrics Square Uber Walmart Labs | tree |
Easy | Fibonacci numbers | Apple DBOI Google Infosys JP Morgan MAQ o9 solutions SAP Labs | algorithm |
Medium | Graph and its representation | Delhivery Factset Infosys MAQ o9 solutions | graph |
Easy | Reverse a linked list | Accolite Adobe Amazon MakeMyTrip Microsoft Qualcomm Samsung SAP SAP Labs Snapdeal Zoho | linked-list |
Easy | Subset sum problem | Adobe Amazon Ameyo | dynamic-programming |
Easy | Circular Queue | Infosys MAQ o9 solutions Oracle | array |
Medium | Heap Sort | 24*7 Innovation Labs Amazon Apple Belzabar Intuit Oracle Samsung SAP SAP Labs Visa | |
Easy | Ugly Numbers | Delhivery Goldman Sachs Paytm | dynamic-programming |
Easy | Dynamic Programming Basics | Infosys MAQ | dynamic-programming |
Medium | Dijkstra Algorithm | Accolite Adobe Amazon Cisco Interactive Solutions Morgan Stanley Samsung Vizury | algorithm |
Medium | Coin Change Problem | Amazon Apple BlackRock Bloomberg ByteDance Capital One Facebook Goldman Sachs Google Oracle Walmart Labs | dynamic-programming |
Easy | Multiplication of Two Matrices | Amazon Apple Facebook | matrix |
Easy | Subtraction of Two Matrices | Capgemini MAQ o9 solutions | matrix |
Easy | Check if Two given Matrices are Identical | Affirm Ameyo DiDi Pony.ai | matrix |
Easy | Addition of Two Matrices | Alation Asana | matrix |
Easy | Transpose of a Matrix | ServiceNow Veritas | matrix |
Medium | Check whether Strings are K Distance Apart or Not | Amazon Deutsche Bank Facebook GE Healthcare Microsoft | string |
Easy | Program to Toggle all Characters in a String | Capgemini InfoEdge MAQ Oxigen Wallet | string |
Easy | Check length of a String is Equal to the Number Appended at its Last | CodeNation Fourkites Microsoft UHG Optum | string |
Easy | Generate all Binary Strings Without Consecutive 1’s | Amazon GE Healthcare Snapdeal | string |
Medium | Check if all Rows of a Matrix are Circular Rotations of Each Other | Accenture Cadence India Citadel FreeCharge Microsoft Pinterest | string |
Easy | Sort a String According to Another String | Accenture Accolite Adobe Amazon FreeCharge InfoEdge Microsoft Salesforce | string |
Medium | Check if String can Become Empty by Recursively Deleting given Substring | Adobe Delhivery GE Healthcare MakeMyTrip ServiceNow Spotify UHG Optum | string |
Easy | Smallest Palindrome after Replacement | Adobe Arcesium Flipkart GE Healthcare ZScaler | string |
Medium | Check if String Follows Order of Characters by a Pattern or not | Adobe Amazon GreyOrange InfoEdge Microsoft | string |
Easy | Split Four Distinct Strings | Accenture Adobe GoDaddy Grofers Honeywell Splunk | string |
Easy | Even Substring Count | Coursera Deutsche Bank OYO Rooms Yahoo Yandex Zoho | string |
Medium | Reverse String Without Temporary Variable | Adobe Amazon Google Hulu Microsoft Moonfrog Labs | string |
Easy | Palindrome using Recursion | Capgemini Factset Infosys MAQ o9 solutions Oracle Square | string |
Easy | Minimum Characters to be Removed to Make a Binary String Alternate | Coursera Fourkites Hike MAQ o9 solutions Pocket Gems Taxi4Sure | string |
Medium | Print all Palindromic Partitions of a String | Amazon Facebook Google | string |
Easy | Count the Pairs at Same Distance as in English Alphabets | Adobe Amazon Dropbox GE Healthcare OYO Rooms | string |
Medium | Minimum Characters to be Added at Front to Make String Palindrome | Amazon Factset Google Microsoft SAP SAP Labs | string |
Medium | Convert a String that is Repetition of a Substring of Length K | Accenture Adobe American Express Databricks FreeCharge | string |
Medium | Nth Character in Concatenated Decimal String | Adobe Oracle | string |
Easy | Kth Non-repeating Character | Amazon Apple Bloomberg Facebook Goldman Sachs Google Microsoft Oracle Zillow | string |
Easy | Compare Two Version Numbers | Adobe Delhivery GE Healthcare GreyOrange MakeMyTrip Wooker Zoho | string |
Easy | Remove Minimum Characters so that Two Strings Become Anagrams | Amazon FreeCharge | string |
Medium | Generate all Binary Strings from Given Pattern | Amazon Google Microsoft | string |
Hard | Print all Possible Ways to Break a String in Bracket Form | Amazon Bloomberg GE Healthcare Juniper Networks | string |
Easy | Caesar Cipher | Amazon GE Healthcare Grofers UHG Optum | string |
Easy | Longest Common Subsequence with Permutations | Adobe Honeywell Hulu JP Morgan Oracle Zoho | string |
Easy | Perfect Reversible String | MakeMyTrip MAQ Walmart Labs Zoho | string |
Easy | Longest Palindrome can be Formed by Removing or Rearranging Characters | Adobe Amazon Delhivery InfoEdge UHG Optum | string |
Hard | Longest Common Prefix Word by Word Matching | Adobe Amazon Apple Bloomberg eBay Facebook Google Microsoft VMware Yahoo | string |
Hard | Longest Common Prefix using Character by Character Matching | Adobe Amazon Apple Bloomberg eBay Facebook Google Microsoft VMware Yahoo | string |
Medium | Permutations of a Given String Using STL | Amazon Apple ByteDance eBay Facebook Google Microsoft Oracle | string |
Easy | Sum of numbers in String | Adobe Fanatics MAQ | string |
Hard | Longest Common Prefix using Divide and Conquer | Accenture Accolite Amazon Fanatics Google | string |
Easy | Lower Case To Upper Case | Adobe Apple Google | string |
Hard | Longest Common Prefix Using Binary Search II | Adobe Amazon Apple Bloomberg eBay Facebook Google Microsoft VMware Yahoo | string |
Easy | Print Shortest Path to Print a String on Screen | Accolite | string |
Easy | Remove Extra Spaces from a String | Capgemini Infosys MAQ o9 solutions TCS | string |
Easy | Change Gender of a given String | Adobe Factset | string |
Medium | Count Number of Substrings with K Distinct Character’s | LinkedIn Zoho | string |
Easy | Removing Spaces from a String using stringstream | Capgemini Hulu o9 solutions TCS | string |
Easy | Pangram Checking | Factset o9 solutions Pocket Gems Zoho | string |
Medium | Repeated Subsequence of Length Two or More | Adobe | string |
Hard | Palindrome Permutations of a String | Amazon Facebook | string |
| Split a string | | string |
| 1`s and 2`s complement of binary number | | string |
| Longest Common Extension | | string |
| Convert string1 to string2 in one edit | | string |
| Find First non-repeating character in a string | | string |
| Remove recurring digits in a given number | | string |
| Recursively print all the sentences that can be formed from list of word lists | | string |
Medium | Online Algorithm for Checking Palindrome in a Stream | Accolite Adobe | string |
Easy | Check if Two given Strings are Isomorphic to each other | Accolite Adobe Amazon GE Healthcare Goldman Sachs InfoEdge Oracle UHG Optum | string |
Hard | Length of Longest valid Substring | Adobe Amazon Apple Bloomberg ByteDance Citadel eBay Facebook Google Microsoft Oracle Uber VMware Yahoo | string |
| Program to add two binary digits | | string |
| Recursive Implementation of atoi() | | string |
| Reverse a string without affecting special characters | | string |
| Recursive function to do substring search | | string |
| Print Longest common subsequence | | string |
| Rotate string to get lexicographically minimum string | | string |
| Number of sub-strings which recursively add up to 9 | | string |
| Palindrome string (number) | | string |
| Print all possible words from phone digits | | string |
| Shortest Superstring Problem | | string |
| Transform one string to another using minimum number of given operations | | string |
| Print string of odd length in ‘X’ format | | string |
| Minimum insertions to form a shortest palindrome | | string |
| print all palindromic partitions | | string |
| Check rearranged string can form a palindrome | | string |
| Palindromes in a given range | | string |
| String(represents an integer) to value | | string |
| Count the number of words | | string |
| Print all anagrams together in a sequence of words | | string |
| Lexicographic rank of string | | string |
| Remove spaces from a string | | string |
| Find, second, frequent, character | | string |
| Find the second most frequent character | | string |
| Check if a given string is a rotation of a palindrome | | string |
| Sort an array of strings | | string |
| Recursively remove all adjacent duplicates | | string |
| Remove ‘b’ and ‘ac’ from a given string | | string |
| wildcard character matching | | string |
| Longest Palindromic Substring | | string |
| Given string is interleaving of two other strings or not | | string |
| Print all permutations with repetition | | string |
| Run length encoding | | string |
| List items containing all characters of a given word | | string |
| Write a program to print all permutations of a given string | | string |
| Check whether two strings are anagram of each other | | string |
| Print all interleavings of given two strings | | string |
| Print all duplicates in the input string | | string |
| A Program to check if strings are rotations of each other or not | | string |
| Given a string find its first non-repeating character | | string |
| Reverse words in a given string | | string |
Hard | Smallest window in a string containing all characters of another string | Adobe Amazon ByteDance Facebook Flipkart Google LinkedIn lyft Snapchat | string |
| Divide a string in N equal parts | | string |
| Print Reverse of a string (Recursion) | | string |
| Remove characters from first string which are in second | | string |
| Sorting the array of strings | | string |
| Remove duplicates from a string | | string |
| Concatenation of two strings | | string |
| Reverse a String | | string |
| Most repeating character in a string | | string |
| Given a sorted array and a number x, find the pair in array whose sum is closest to x | | array |
| Find the subarray whose sum is equal to a given number X | | array |
| Basic SQL Interview Questions | | sql-interview-questions |
| Aggregate Functions in SQL | | sql-interview-questions |
| DB Locks in SQL | | sql-interview-questions |
| SQL indexes Interview Questions | | sql-interview-questions |
| Joins in SQL Interview Questions | | sql-interview-questions |
| Keys in SQL | | sql-interview-questions |
| Optimization in SQL | | sql-interview-questions |
| Oracle in SQL | | sql-interview-questions |
| Parameterized Query in SQL | | sql-interview-questions |
| Privileges and Roles in SQL | | sql-interview-questions |
| SQL Query Interview Questions | | sql-interview-questions |
| SQL Server Interview Questions | | sql-interview-questions |
| Arrange Even and Odd number such that Odd comes after Even | | array |
Easy | Minimum number of Merge Operations to make an Array Palindrome | Amazon | array |
Easy | Form Minimum Number from Given Sequence of D’s and I’s | Amazon Goldman Sachs | array |
Medium | Longest Span with same Sum in two Binary Arrays II | Accenture Cisco Indeed Kuliza SAP Labs Yandex | array |
Easy | Find the Subarray of given length with Least Average | Accenture Accolite Amazon Factset Fourkites Paytm Zoho | array |
Easy | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | Accolite Amazon GE Healthcare Info Edge Zoho | array |
Medium | Merge K Sorted Arrays and Print Sorted Output | Amazon GE Healthcare Google Microsoft | array |
Medium | Find the Minimum Element in a Sorted and Rotated Array | Amazon Bloomberg Facebook Goldman Sachs Microsoft Oracle | array |
Medium | Find the point where a monotonically increasing function becomes positive first time | American Express | array |
Medium | Print all Possible Combinations of R Elements in a given Array of size N | GreyOrange Oxigen Wallet | array |
Medium | Sort Elements by Frequency II | Amazon Oracle Zoho Zycus | array |
Easy | Stock Buy Sell to Maximize Profit | Amazon Apple Facebook Microsoft Morgan Stanley PayPal Qualtrics TCS Uber | array |
Medium | Merge Overlapping Intervals II | Adobe Amazon Apple Bloomberg Cisco eBay Facebook Goldman Sachs Google IXL Microsoft Oracle Palantir Technologies PayPal Qualtrics Salesforce Splunk Twitter Uber VMware Walmart Labs Yahoo Yandex | array |
Medium | Maximum Subarray Sum using Divide and Conquer | Adobe Amazon Apple Bloomberg ByteDance Cisco Facebook Goldman Sachs Google JPMorgan LinkedIn Microsoft Oracle PayPal Paytm Uber | array |
Hard | Pancake Sorting Problem | Amazon Facebook Microsoft Square Uber | array |
Medium | Pancake Sorting | Amazon Facebook Microsoft Square Uber | array |
Medium | Arrange given Numbers to Form the Biggest Number II | Adobe Amazon Apple ByteDance Facebook Google MakeMyTrip Microsoft Nvidia Oracle Paytm VMware Zoho | array |
Medium | Iterative Implementation of Quick Sort | Amazon Apple Bloomberg | array |
Easy | Shuffle a given Array | Amazon Apple Bloomberg Facebook Google Microsoft Oracle Two Sigma Yahoo | array |
Medium | Find the Row with Maximum Number of 1’s | 24*7 Innovation Labs Amazon Microsoft Paytm | array |
Easy | Sorting a K Sorted Array | Amazon Apple Bloomberg | array |
Medium | Maximum Product Subarray II | Amazon Apple Bloomberg Facebook Google LinkedIn Microsoft | array |
Medium | Largest Subarray with Equal Number of 0’s and 1’s | Adobe Amazon Apple Facebook Google Robinhood | array |
Easy | Find the two Numbers with Odd Occurrences in an Unsorted Array | Accolite Factset Google Oracle | array |
Medium | Maximum Sum Increasing Subsequence | Adobe Amazon Apple Atlassian Bloomberg ByteDance Citrix CodeNation eBay Facebook Google IBM Microsoft Nagarro Oracle Uber Yahoo | array |
Medium | Implement Two Stacks in an Array | 24*7 Innovation Labs Accolite Google Microsoft Samsung Snapdeal | array |
Medium | Number of Smaller Elements on Right Side | Adobe Amazon Apple Bloomberg Google Microsoft Oracle Uber | array |
Easy | Increasing Subsequence of Length three with Maximum Product | Amazon Apple Cisco Citadel Facebook Intuit Uber | array |
Medium | Elements Appear more than N/K times in Array | Adobe Amazon Apple Bloomberg Facebook Google Microsoft | array |
Medium | Find the Peak Element from an Array | Amazon Apple Bloomberg ByteDance DE Shaw Facebook Google Microsoft Uber Walmart Labs | array |
Easy | Rearrange Positive and Negative Numbers Alternatively in Array | Amazon Apple Bloomberg Capital One Cisco Facebook Google Morgan Stanley Oracle VMware | array |
Easy | Find the Maximum Repeating Number in Array | Adobe Amazon Apple Bloomberg Citadel eBay Facebook Goldman Sachs Google Intuit Microsoft Nutanix PayPal Salesforce VMware Yahoo | array |
Medium | Tug of War | Accolite Amazon | array |
Medium | First Circular Tour to Visit all the Petrol Bunks | Amazon Factset Microsoft Morgan Stanley Zoho | array |
Medium | Count Possible Triangles | Amazon LinkedIn Wipro | array |
Medium | Maximum Circular Subarray Sum | Amazon Facebook LinkedIn Two Sigma Uber | array |
Medium | Four Elements that Sum to Given | Adobe Amazon Apple Bloomberg Goldman Sachs Google Microsoft Yahoo | array |
Medium | Maximum Length of Chain Pairs | Amazon Bloomberg Uber | array |
Easy | Find Pair with Given Difference | Amazon Bloomberg Citrix Expedia Goldman Sachs Microsoft Nvidia Oracle Salesforce Twilio Twitter Visa VMware | array |
Medium | Partition Problem | Accolite Adobe Amazon Apple Bloomberg ByteDance eBay Facebook Goldman Sachs Google Microsoft VMware Yahoo | array |
Medium | The Celebrity Problem | Amazon Apple Fab Facebook Flipkart Google LinkedIn Microsoft Nvidia Palantir Technologies Pinterest Snapchat Uber UHG Optum VMware Zoho | array |
Medium | Find a Sorted Subsequence of size 3 | Amazon Bloomberg Facebook Factset Google Oracle Uber Yahoo | array |
Medium | Subarray with Given Sum | Adobe Amazon American Express Apple Bloomberg ByteDance eBay Facebook Goldman Sachs Google LinkedIn Microsoft Oracle Twilio Uber Yahoo Yandex | array |
Medium | Maximum Element in an Array which is Increasing and then Decreasing | Adobe Amazon Goldman Sachs Microsoft Paytm | array |
Easy | Count Minimum Steps to Get the given Array | Amazon Fanatics Oracle | array |
Easy | Find the Lost Element From a Duplicated Array | Accolite Adobe Amazon Apple Bloomberg Capital One Cisco eBay Facebook Goldman Sachs Google IBM JP Morgan Microsoft Nvidia Oracle PayPal ServiceNow Yandex | array |
Easy | Rearrange given Array in Maximum Minimum Form | Amazon Apple Bloomberg Capital One Cisco Facebook Google Morgan Stanley Oracle VMware | array |
Medium | Subarray and Subsequence | Amazon Apple Facebook Google Microsoft | array |
Medium | Merge Two Sorted Arrays | Adobe Amazon Apple Bloomberg ByteDance Cisco eBay Facebook Goldman Sachs Google IBM LinkedIn lyft Microsoft Oracle Uber VMware Walmart Labs Yahoo Yandex | array |
Medium | Count of Triplets With Sum Less than Given Value | Adobe Amazon Apple Bloomberg ByteDance Cisco Citadel Citrix DoorDash eBay Facebook Goldman Sachs Google Hulu IBM Infosys Mathworks Microsoft Oracle PayPal Qualtrics Samsung ServiceNow Splunk Square Tencent Tesla Uber Visa VMware Walmart Labs Yahoo Zoho | array |
Easy | Reorder Array Using Given Indexes | Google | array |
Easy | Next Greater Element in an Array | Amazon Apple Bloomberg CouponDunia Facebook Google Microsoft Oracle PayU Samsung Snapdeal Twitter Zoho | array |
Easy | Merging Two Sorted Arrays | Adobe Amazon Apple Bloomberg ByteDance Cisco eBay Facebook Goldman Sachs Google IBM LinkedIn lyft Microsoft Oracle Uber VMware Walmart Labs Yahoo Yandex | array |
Easy | Reorder an Array According to the Given Indexes | Google | array |
Easy | Find a Fixed Point in a Given Array | Amazon Factset Hike Uber | array |
Easy | Find Element Using Binary Search in Sorted Array | Amazon Apple Bloomberg Facebook Google Microsoft PayPal | array |
Medium | Find Triplet in Array With a Given Sum | Accolite Adobe Amazon Apple Bloomberg ByteDance Cisco Citadel Citrix DoorDash eBay Facebook Goldman Sachs Google Hulu IBM Infosys Mathworks Microsoft Morgan Stanley Oracle PayPal Qualtrics Samsung ServiceNow Splunk Square Tencent Tesla Uber Visa VMware Walmart Labs Yahoo Zoho | array |
Easy | Check if the Elements of an Array are Consecutive | Google Uber | array |
Easy | Find Duplicates in an Array in Most Efficient Way | Amazon Apple Bloomberg Facebook Google lyft Microsoft Paytm Pocket Gems Qualcomm Zoho | array |
Easy | Sort 0s 1s and 2s in an Array | Adobe Amazon Hike MakeMyTrip MAQ Microsoft Morgan Stanley Ola Cabs Paytm Qualcomm SAP Labs Snapdeal Walmart Labs Yatra | array |
Easy | Find Leaders in an Array | Amazon Goldman Sachs PayU | array |
Hard | Smallest Positive Number Missing in an Unsorted Array | Accolite Adobe Amazon Apple Bloomberg ByteDance Databricks eBay Facebook Factset Goldman Sachs Google JP Morgan Microsoft Morgan Stanley Oracle Salesforce Samsung Snapdeal Tencent Tesla Twitch Uber Walmart Labs | array |
Easy | Find K Length Subarray of Maximum Average | Amazon Google | array |
Medium | Find Pythagorean Triplets from Array | Amazon LinkedIn MakeMyTrip Myntra Oracle | array |
Easy | Move All the Zeros to the End of the Given Array | Adobe Amazon Apple Bloomberg ByteDance Capital One Cisco Dell eBay Facebook Goldman Sachs Google IBM LinkedIn Microsoft Nutanix Oracle PayPal Paytm Qualcomm Samsung SAP Labs ServiceNow Splunk Tesla Uber Walmart Labs Yahoo Yandex Zillow | array |
Medium | Find Minimum Distance Between Two Numbers in an Array | Amazon Paytm Uber | array |
| Rotate Image by 90 degrees | | array |
Easy | Count Number of Occurrences in a Sorted Array | Airbnb Amazon Apple Bloomberg ByteDance Facebook Flipkart Google LinkedIn MakeMyTrip Microsoft Netflix Oracle Twitter Uber Yandex | array |
Medium | Maximum Sum of Non Consecutive Elements | Accolite Amazon American Express Facebook Google Oxigen Wallet OYO Rooms Paytm Snapchat Walmart Labs Yahoo | array |
Easy | Find Smallest Missing Number in a Sorted Array | Adobe Amazon Apple Bloomberg Capital One Cisco eBay Facebook Goldman Sachs Google IBM JP Morgan Microsoft Nvidia Oracle PayPal ServiceNow Yandex | array |
Easy | First Repeating Element | Adobe Amazon Apple Bloomberg Citadel eBay Facebook Goldman Sachs Google Intuit Microsoft Nutanix Oracle PayPal Salesforce Yahoo | array |
Easy | Multiplication of Previous and Next | Accenture Accolite Adobe Factset UHG Optum | array |
Medium | A Product Array Puzzle | Accolite Adobe Amazon Apple Asana BlackRock Bloomberg ByteDance Citadel DE Shaw eBay Evernote Expedia Facebook Goldman Sachs Google Intel LinkedIn lyft Microsoft Morgan Stanley Nutanix Opera Oracle PayPal Paytm Qualtrics Salesforce SAP ServiceNow Snapchat Splunk Twitter Uber Visa VMware Walmart Labs Yahoo Yandex | array |
Easy | Find All Pairs With a Given Difference | Amazon Bloomberg Citrix Expedia Goldman Sachs Microsoft Nvidia Oracle Salesforce Twilio Twitter Visa VMware | array |
Easy | Find all Common Elements in Given Three Sorted Arrays | MAQ | array |
Easy | Find the first Repeating Number in a Given Array | Adobe Amazon Apple Bloomberg Citadel eBay Facebook Goldman Sachs Google Intuit Microsoft Nutanix Oracle PayPal Salesforce Yahoo | array |
Easy | Print All Distinct Elements of the Array | Adobe Factset MAQ o9 solutions TCS | array |
Easy | Maximum difference between two elements such as larger element comes after smaller | Amazon Hike MakeMyTrip Ola Cabs SAP Labs | array |
Easy | Majority Element | Adobe Amazon Apple Atlassian Bloomberg ByteDance Facebook GoDaddy Google Microsoft Oracle Snapchat Splunk Yahoo | array |
Easy | Find the First and Second Smallest Elements | Amazon MAQ o9 solutions TCS | array |
Easy | Find the Number Occurring Odd Number of Times in an Array | Amazon o9 solutions Snapdeal TCS | array |
Medium | Sort Elements by Frequency of Occurrences | Amazon Oracle Zoho Zycus | array |
Easy | Find the Missing Number | Adobe Amazon Apple Bloomberg Capital One Cisco eBay Facebook Goldman Sachs Google IBM Microsoft Nvidia Oracle PayPal ServiceNow Yandex | array |
| Find Nearest Greater and Smaller Element | | array |
Easy | Insert Node in the Sorted Linked List | Apple Microsoft | linked-list |
Easy | Detect a loop in the Linked List | Amazon Apple Facebook Goldman Sachs Google Microsoft | linked-list |
Easy | Find Nth Node | Accolite Adobe Amazon Epic Systems Factset Hike MAQ Monotype Solutions Qualcomm Snapdeal | linked-list |
Easy | Swap Kth Node from beginning with Kth Node from End | Amazon BlackRock Morgan Stanley | linked-list |
| Swap nodes in the linked list | | linked-list |
Easy | Delete Last Occurrence | Adobe Factset Oracle | linked-list |
Easy | Check if a Linked list of Strings form a Palindrome | Adobe Amazon Apple Bloomberg Capital One Cisco Facebook Google IXL Microsoft Nutanix Oracle Paytm Snapchat Uber Yandex | linked-list |
| Merge two sorted linked lists such that merged list is in reverse order | | linked-list |
| Rearrange a given linked list in-place | | linked-list |
| Clone a Linked List with next and random pointer | | linked-list |
| Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodes | | linked-list |
| Quick Sort on SIngly Linked List | | linked-list |
| Flatten a multilevel linked list | | linked-list |
| Rotate a Linked List | | linked-list |
| Union and Intersection of Two Linked Lists | | linked-list |
| Sort linked which is sorted on absolute values | | linked-list |
| Binary Tree to Doubly linked list | | linked-list |
| Rearrange a linked list in Zig-Zag | | linked-list |
| Clone a linked list with next and random pointer (Hashing) | | linked-list |
| Flattening a linked list | | linked-list |
| Segregate even and odd nodes in a linked list | | linked-list |
| Delete a node of a linked list at given position | | linked-list |
| Compare two strings(linked lists) | | linked-list |
| Merge sort better than quick sort for linked lists | | linked-list |
| Sort a linked list that is sorted alternating ascending and descending | | linked-list |
| Remove middle points in a linked list of line segments | | linked-list |
| Can we reverse a linked list in less than O(n) time ? | | linked-list |
| Merge a linked list into another at alternate positions | | linked-list |
| Delete N nodes after M | | linked-list |
| Sort a linked list with 0s, 1s and 2s | | linked-list |
| Triplet from three linked lists with given sum | | linked-list |
| Delete a node under given conditions | | linked-list |
| Reverse a Linked List in groups | | linked-list |
| Reverse a singly linked list recursively | | linked-list |
| Reverse a Singly Linked List (Iterative/Non-Recursive) | | linked-list |
| Remove all duplicates in an unsorted linked list | | linked-list |
| Remove all duplicates in a sorted linked list | | linked-list |
| Check if the linked list is palindrome | | linked-list |
| Total number of occurrences of a given item in the linked list | | linked-list |
| Find nth node of the Linked list from the end | | linked-list |
| Find middle of the Linked List | | linked-list |
| Insert nodes in a linked list in a sorted way (Ascending Order) | | linked-list |
| Check if two linked lists are identical | | linked-list |
| Move last element of the Linked List at first place | | linked-list |
| Delete a node in doubly linked list | | linked-list |
| How to Delete a Linked List | | linked-list |
| Split linked list using alternate nodes | | linked-list |
| Create a Doubly Linked List | | linked-list |
| Delete a Tree | | tree |
| Binary Tree | | tree |
| Searching a node in a Binary Search Tree | | tree |
| Binary Tree Level order traversal in Java | | tree |
| Java program to find the number of Nodes in a Binary Tree | | tree |
| Largest Sum Contiguous Subarray | | array |
| Reverse an Array | | array |
| Find a Triplet That Sum to a Given Value | | array |
| Find elements pair from array whose sum equal to number | | array |