Algorithm Interview QuestionsArray Interview QuestionsDynamic Programming Interview QuestionsGraph Interview QuestionsHashing Interview QuestionsLinkedList Interview QuestionsMatrix Interview QuestionsQueue Interview QuestionsSorting Interview QuestionsSQL Interview QuestionsStack Interview QuestionsString Interview QuestionsTree Interview Questions

Instant Search Interview Questions

Search Tip If you want to search Easy questions of Amazon on Array topic then type "amazon easy array" and get the results

Difficulty Question Title Company Name Category
MediumIterative Inorder Traversal of a Binary Treetree
MediumMorris Inorder Traversaltree
HardSqrt (or Square Root) Decomposition TechniqueCadence IndiaPayPalQualtricsRobloxTwilio
MediumRearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < iAccentureAdobeAmazonFactsetZohoarray
MediumArmstrong NumberOracleVMware
MediumScramble StringAmazonFanaticsSamsungstring
EasyValid AnagramsAmazonGoldman SachsGoogleMicrosoftNagarrostring
MediumContiguous ArrayAmazonMakeMyTripMorgan StanleyPaytmarray
MediumConvex Hull AlgorithmGeometricMorgan StanleySamsungalgorithm
MediumGroup AnagramsAmazonFacebookGoogleMicrosoftstring
HardInteger to English wordsAmazonFacebookMicrosoftOraclestring
MediumUnique Paths IIAmazonVMwarematrix
MediumMaximum Length of Repeated SubarrayIndeedKaratRobloxarray
EasyCount pair with Given SumAccoliteAmazonFactsetHikearray
EasyMinimum Delete Operations to make all Elements of Array SameAdobeFactsethashing
MediumMaximum Distance Between two Occurrences of Same Element in ArrayDelhiveryFactsetFanaticsFourkiteshashing
EasyGroup Multiple Occurrence of Array Elements Ordered by first OccurrenceAccoliteAdobeAmazonDelhiveryFourkiteshashing
MediumUnion and Intersection of two Linked Lists24*7 Innovation LabsAccoliteAmazonFlipkartKomli MediaMicrosoftTaxi4SureVMwareWalmart Labslinked-list
MediumMaximum difference between frequency of two elements such that element having greater frequency is also greaterAccentureAccoliteAmazonVMwarearray
HardSmallest Subarray with k Distinct NumbersAmazonGooglehashing
MediumAll Unique Triplets that Sum up to a Given ValueAccoliteAmazonFanaticsarray
EasyLongest Subarray Having Count of 1s One More than Count of 0sAccentureAmazonDE ShawSamsungarray
MediumMaximum Array from Two given Arrays Keeping Order SameAccentureAmazonDelhiveryFactsetFourkitesOYO RoomsPublicis SapientZohoarray
MediumRound Robin SchedulingAmazonFacebookGoogleMicrosoft
EasyCount Subarrays with Same Even and Odd ElementsAccentureFactsetFanaticsarray
HardFind Smallest Range Containing Elements from k ListsAmazonAppleGoogleUberdynamic-programming
MediumGuess Number Higher or Lower IIAmazonGoogleMicrosoftdynamic-programming
EasyRearrange an Array Such that arr[i] is equal to iAccentureAdobeAmazonFanaticsFourkitesZohoarray
EasySegregate 0s and 1s in an ArrayAccoliteAmazonFabMakeMyTripPayPalPaytmZohoarray
MediumFind Largest d in Array such that a + b + c = dAccoliteAmazonDelhiveryFanaticsFourkitesFreeChargehashing
MediumMaximum Number of Chocolates to be Distributed Equally Among k StudentsAccentureAdobeAmazonFacebookFourkitesarray
EasyMaximum Consecutive Numbers Present in an ArrayAccoliteAdobeAmazonFourkitesMAQarray
EasyMove all Negative Numbers to Beginning and Positive to End with Constant Extra SpaceCapgeminiHikeMAQo9 solutionsTCSarray
HardQueries for Number of Distinct Elements in a SubarrayAmazonGoogleMicrosoftOracleUberarray
HardQueries on Probability of Even or Odd Number in given RangesGoogleHoneywellUberarray
MediumTotal Numbers With no Repeated Digits in a RangeAccoliteFactsetMAQarray
HardRange Minimum Query (Square Root Decomposition and Sparse Table)AmazonAppleGooglearray
MediumRange Sum Query using Sparse TableAmazonPublicis SapientZohoarray
HardCount and Toggle Queries on a Binary ArrayAmazonFacebookGoogleUberarray
MediumQueries for Decimal Values of Subarrays of a Binary ArrayAmazonGooglearray
MediumMaximize Elements Using Another ArrayAmazonFanaticsFourkitesarray
EasyFind whether an array is subset of another arrayAccoliteGE HealthcareQualcommarray
EasyMinimum swaps required to bring all elements less than or equal to k togetherAmazonAppDynamicsFactsetFourkitesMicrosofthashing
EasyMaximum sum of pairs with specific differenceAccoliteCourseraDelhiveryFourkitesSnapdealdynamic-programming
HardSmallest Good BaseGooglestring
EasyFind top three repeated in arrayMAQo9 solutionsWiprohashing
MediumMaximum sum of a path in a Right Number TriangleCitrixDE ShawDirectiExpediadynamic-programming
MediumSorting using trivial hash functionCadence IndiaCapgeminiFactsetMAQUHG Optumhashing
MediumMaximum number of segments of lengths a, b and cAmazonBlackRockByteDanceCitrixGoogleTeradataUberdynamic-programming
MediumMaximum subsequence sum such that no three are consecutive24*7 Innovation LabsAccentureAmazonDelhiveryPayPalPayUdynamic-programming
EasyCount all subsequences having product less than KByteDanceCapital OneCodeNationDatabricksExpediaYandexdynamic-programming
EasyFind duplicates in a given array when elements are not limited to a rangeAdobeAmazonFactsetMAQUHG Optumhashing
MediumMinimum insertions to form a palindrome with permutations allowedAmazonCodeNationDirectiGoogleIndeedIntuitstring
HardLCS (Longest Common Subsequence) of three stringsAmazonCodeNationExpediaGoogleUberZohodynamic-programming
MediumCheck if Array Contains Contiguous Integers With Duplicates AllowedAccentureAmazonDirectiFacebookIntuithashing
EasySum of f(a[i], a[j]) over all pairs in an array of n integersCiscoFacebookHikePublicis Sapienthashing
MediumLongest Repeated SubsequenceAmazonArcesiumAvalaraByteDanceCapital OneFacebookMetLifedynamic-programming
EasyCount of index pairs with equal elements in an arrayAmazonAtlassianCitadelFacebookIntuitSnapdealSquareYandexhashing
EasyFind Sum of all unique sub-array sum for a given arrayAmazonFacebookGreyOrangeIntuitMicrosoftNagarrohashing
EasySequences of given length where every element is more than or equal to twice of previousAccentureAmazonCodeNationFacebookGooglePayPalQualcommdynamic-programming
HardFind maximum length Snake sequenceAmazonCodeNationExpediaYandexdynamic-programming
MediumPrint all triplets in sorted array that form APAccentureAccoliteCadence IndiaGoogleInfoEdgeIntuitPinterestarray
HardMinimum sum of multiplications of n numbersAccentureBlackRockGE HealthcareJP MorganPayPaldynamic-programming
MediumFind number of pairs in an array such that their XOR is 0Cadence IndiaCouponDuniaHoneywellIndeedInfoEdgeMoonfrog LabsPinterestarray
EasyCount ways to reach the nth stair using step 1, 2 or 3AmazonCodeNationGE HealthcareMicrosoftMoonfrog LabsPayPalUberdynamic-programming
MediumMinimum Sum Path in a TriangleAmazonAppleBloombergdynamic-programming
MediumLongest subarray not having more than K distinct elementsAmazonCitadelDelhiveryFacebookMicrosoftSamsungYandexhashing
MediumMorris TraversalAmazonFacebookFourkitesGoogleMicrosofttree
HardKth ancestor of a node in binary treeAmazonGoogletree
HardMaximum possible difference of two subsets of an arrayAtlassianCadence IndiaDirectiFreeChargeOperaPayUSnapchatTimes InternetXomehashing
MediumFind postorder traversal of BST from preorder traversalAmazonFourkitesPayUtree
HardInorder Successor of a node in Binary TreeAmazonExpediaMorgan StanleyOYO RoomsSnapchattree
EasyGiven an Array of Pairs Find all Symmetric Pairs in itAmazonCapgeminiCiscoFreeChargeMoonfrog LabsOperaXomearray
EasyMinimum operation to make all elements equal in arrayAmazonBlackRockCitadelDirectiFlipkartIndeedYandexhashing
EasyCheck if a given array can represent Preorder Traversal of Binary Search TreeAdobeAmazonLinkedIntree
MediumConstruct Binary Tree from given Parent Array representationAmazonMicrosoftSnapdealtree
MediumGiven a binary tree, how do you remove all the half nodes?AccoliteAmazonMicrosoftPayUSnapdealSynopsysYahootree
EasyIterative Preorder TraversalAmazonGoogleJP MorganMicrosoftMorgan StanleyUbertree
MediumFind subarray with given sum (Handles Negative Numbers)AmazonCouponDuniaDelhiveryGE HealthcareInfoEdgeMoonfrog Labshashing
MediumLength of the largest subarray with contiguous elementsAdobeAmazonBloombergCiscoKaratMonotype SolutionsPaytmPayUPublicis SapientSAP Labshashing
EasyFind distance between two nodes of a Binary TreeAmazonLinkedInMakeMyTripNetflixSamsungtree
MediumCount number of triplets with product equal to given numberAccoliteAmazonCiscoFlipkartKulizaPublicis Sapienthashing
MediumMaximum difference between first and last indexes of an element in arrayAccoliteAmazonHikeMakeMyTripOla CabsSAP Labshashing
EasyWrite Code to Determine if Two Trees are IdenticalAmazonFactsetFanaticsGE HealthcareMicrosoftPayPaltree
HardFind any one of the multiple repeating elements in read only arrayCapital OneFacebookGoogleIndeedMicrosoftPinteresthashing
EasyFind elements which are present in first array and not in secondAccoliteDelhiveryFactsetFanaticsSnapdealZohohashing
MediumBoundary Traversal of binary treeAccoliteAmazonHikeKritikal SolutionsMicrosoftMorgan StanleyPayUSnapdealtree
HardCheck for Palindrome after every character replacement QueryAmazonFacebookFlipkartGoogleNetflixhashing
EasyDifference between highest and least frequencies in an arrayCitadelFabFourkitesRobloxTeslahashing
MediumDiagonal Traversal of Binary TreeAmazonFactsetFanaticsFourkitesOraclePayUtree
EasyBottom View of a Binary TreeAccoliteAmazonCouponDuniaFlipkartPaytmWalmart Labstree
MediumLetter Combinations of a Phone NumberAmazonAppleAtlassianCapital OneDatabrickseBayFacebookGoogleMicrosoftMorgan StanleyOracleQualtricsTwilioUberVMwareWalmart Labsqueue
HardFind four elements that sum to a given value (Hashmap)AmazonGoogleMicrosofthashing
MediumCount even length binary sequences with same sum of first and second half bits24*7 Innovation LabsAmazonDellGE Healthcaredynamic-programming
EasyLongest subsequence such that difference between adjacents is oneAmazonAvalaraFactsetFourkitesMicrosoftdynamic-programming
MediumFind all triplets with zero sumAmazonGE HealthcareGoogleHikearray
Easyk-th missing element in increasing sequence which is not present in a given sequenceCitadelExpediaFabFactsetIBMSAP Labshashing
EasyHow to check if two given sets are disjoint?FactsetHikeKulizaNagarroOperaSnapdealhashing
EasyCheck if a given array contains duplicate elements within k distance from each otherAmazonAvalaraCitadelFreeChargeHackerRankSnapchatSnapdealhashing
EasyPrint Right View of a Binary TreeAccoliteAdobeAmazonMakeMyTripSnapdealtree
MediumCheck if two arrays are equal or notAccentureGoldman SachsMAQo9 solutionsTaxi4SureTwiliohashing
MediumPair with given product24*7 Innovation LabsAmazonAvalaraRobloxhashing
MediumMaximum path sum in a triangleArcesiumCodeNationGE HealthcarePayUUberZohodynamic-programming
EasyPath with maximum average valueCiscoEpic SystemsGreyOrangeSAP LabsTimes Internetdynamic-programming
EasyMaximum Distance in ArrayAdobeAmazonGoogleOraclematrix
MediumFind if there is a subarray with 0 sumCitrixDE ShawGoldman SachsIndeedMakeMyTripOYO RoomsPaytmTCShashing
EasyFind missing elements of a rangeDelhiveryGreyOrangeLinkedInNagarroOperaSynopsyshashing
EasyFirst element occurring k times in an arrayAmazonHikePayUSAP LabsTeradataWiproYatraZohohashing
EasyMaximum product of an increasing subsequenceAccoliteGE HealthcareHackerRankIBMSnapchatYahoodynamic-programming
HardPrint all subarrays with 0 sumAmazonFreeChargeIndeedInfo EdgeMicrosoftOYO Roomshashing
EasyContains DuplicateAdobeAmazonApplehashing
MediumPrint Maximum Length Chain of PairsAmazondynamic-programming
EasyPrint n terms of Newman-Conway SequenceAmazonCitadelFactsetFanaticsJP Morgandynamic-programming
HardCount Substrings with equal number of 0s, 1s and 2sCitrixFreeChargeGoldman SachsOYO RoomsTimes InternetTwiliohashing
MediumLongest Substring Without Repeating CharactersAdobeAlationAmazonAppleBloombergByteDanceCiscoeBayExpediaFacebookGoldman SachsGoogleMicrosoftMorgan StanleyOracleSAPSAP LabsSpotifyUberVMwareYahoostring
MediumRemove Duplicates from Sorted List IIAmazonlinked-list
MediumForm minimum number from given sequenceAccoliteAmazonFanaticsGoldman SachsInfo EdgeSnapchatstring
MediumPrint modified array after executing the commands of addition and subtractionByteDanceCiscoCitrixFreeChargeHackerRankNagarroOperaTeradatadynamic-programming
EasyWrite a function to get the intersection point of two Linked ListsAccoliteAmazonDE ShawFactsetGoldman SachsMakeMyTripMAQMicrosoftQualcommSnapdealVisaZopperlinked-list
EasyNewman-Conway SequenceAmazonHoneywelldynamic-programming
MediumGenerate all possible sorted arrays from alternate elements of two given sorted arraysDirectiKaratPayPalTwilioYandexarray
MediumMoser-de Bruijn SequenceFreeChargeSnapdealTimes Internetdynamic-programming
HardRange Queries for Longest Correct Bracket SubsequenceAmazonCodeNationGooglePayPalUberdynamic-programming
HardPrint modified array after multiple array range increment operationsExpediaFreeChargeGoogleIndeedMoonfrog LabsOla CabsQualtricsdynamic-programming
MediumNumber of indexes with equal elements in given rangeGreyOrangeIndeedOperaPinterestSnapdealYahoodynamic-programming
HardLongest Bitonic SubsequenceCodeNationDE ShawGoogleJP MorganMicrosoftdynamic-programming
EasyGolomb sequenceCadence IndiaIndeedTimes InternetYatradynamic-programming
HardArray Queries for multiply replacements and productCadence IndiaDE ShawExpediaGooglearray
EasyNewman–Shanks–Williams primeHackerRankdynamic-programming
HardDifference Array | Range update query in O(1)ArcesiumCodeNationDirectiExpediaGoogleQualcommdynamic-programming
HardPainting Fence AlgorithmCodeNationFacebookGoogleIntuitJP MorganMorgan Stanleydynamic-programming
EasyCheck in binary array the number represented by a subarray is odd or evenCiscoFabIBMMicrosoftPayUSnapchatSnapdealTeradataarray
MediumLargest subarray with equal number of 0s and 1sAmazonCourseraGreyOrangeMakeMyTripMorgan StanleyPaytmSynopsysTimes Internethashing
MediumBinary array after M range toggle operationsAmazonCourseraGoldman SachsGoogleGreyOrangeSnapchatdynamic-programming
EasyConstant time range add operation on an arrayCodeNationDE ShawDirectiExpediaGoogledynamic-programming
MediumDelete Nth node from the end of the given linked listAdobeAmazonArcesiumFactsetIntuitZoholinked-list
EasyDelete a Node from linked list without head pointerGE HealthcareMAQlinked-list
MediumCount Primes in RangesGoogleHikeKulizaSieveSnapchatYahoodynamic-programming
EasyPrint the Fibonacci numbers in reverse orderAccentureMAQo9 solutionsUHG Optumdynamic-programming
EasyPrint Fibonacci sequence using 2 variablesAmazonDelhiveryFactsetFourkitesHikeMAQo9 solutionsPayUdynamic-programming
EasyNon-overlapping sum of two setsAccoliteAmazonHikeKulizaPinterestSnapdealSynopsysTeradatahashing
HardFind all pairs (a, b) in an array such that a % b = kAmazonArcesiumCitadelDirectiFreeChargeYahoohashing
HardRange LCM QueriesAmazonDirectiGoogleIndeedPayPalSnapdealUbertree
MediumQueries on XOR of greatest odd divisor of the range24*7 Innovation LabsCitadelDirectiExpediaGoogleIndeedSnapdealdynamic-programming
EasyCompute nCr % pAccentureCadence IndiaKomli MediaOla CabsSquaredynamic-programming
EasyCutting a RodAmazonDirectiFlipkartGoogleJP MorganMicrosoftdynamic-programming
HardQueries for counts of array elements with values in given rangeCourseraDE ShawGooglePayUSnapdealTimes InternetYahooarray
HardNumber of elements less than or equal to a given number in a given subarrayCodeNationDE ShawGoogleOperaPayPalPinteresttree
MediumLargest divisible pairs subsetAmazonGoogledynamic-programming
HardGCDs of given index ranges in an arrayDE ShawPayPalSnapchatSnapdealTimes InternetXometree
HardQueries for GCD of all numbers of an array except elements in a given rangeAmazonCapital OneDE ShawGooglePayPalTeradatadynamic-programming
HardFind whether a subarray is in form of a mountain or notAmazonBlackRockCiscoCitrixFactsetHoneywellTeslaYandexdynamic-programming
MediumMean of range in arrayCadence IndiaExpediaFreeChargeGreyOrangeRobloxSnapchatSnapdealTimes InternetYandexdynamic-programming
HardSubset with sum divisible by mArcesiumCiscoDE ShawDirectiExpediaMyntraPayUdynamic-programming
MediumCheck if any two intervals overlap among a given set of intervalsAmazonArcesiumCiscoDirectiJP MorganMicrosoftQualcommYandexdynamic-programming
EasyRange sum queries without updatesBlackRockGE HealthcareMoonfrog LabsSynopsysTaxi4SureTwiliodynamic-programming
EasyMax stackApplelyftUberstack
MediumSubset Sum Problem in O(sum) spaceAdobeAmazonDrishti-Softdynamic-programming
EasyFind Index of Closing Bracket for a Given Opening Bracket in an ExpressionAdobeAmazonFlipkartOracleOYO RoomsSnapdealWalmart LabsYatrastack
HardProducts of ranges in an arrayAccoliteDE ShawFreeChargeGoogleSAP LabsSnapdealTimes Internetarray
EasyFriends Pairing ProblemAmazonExpediaGE HealthcareGoogleHoneywellJP Morgandynamic-programming
EasyHappy NumberAdobeAmazonAppleJP Morgan
EasyPalindrome PermutationFacebookMicrosoftarray
MediumGold Mine ProblemAmazonFlipkartGoogleMicrosoftPayUUberdynamic-programming
EasyPalindrome NumberAdobeAmazonBloombergDBOIGoogleMAQMicrosofto9 solutions
EasyDesign a stack that supports getMin() in O(1) time and O(1) extra spaceAdobeAmazonFactsetFlipkartGoldman SachsGreyOrangeKulizaMicrosoftPaytmPublicis SapientSAPSnapdealVMwarestack
MediumFind Maximum Level sum in Binary TreeAmazontree
EasyTiling Problem24*7 Innovation LabsAmazonDE ShawDelhiveryPayPaldynamic-programming
MediumPermutation CoefficientBankBazaarXomedynamic-programming
EasySort a stack using recursionAmazonGoldman SachsIBMKulizaYahoostack
EasyLongest Increasing Consecutive SubsequenceAmazonGoogleMicrosoftdynamic-programming
HardRed-Black Tree IntroductionAmazonCodeNationFacebookGoogleUbertree
EasyDelete middle element of a stackAmazonstack
MediumSorting array using StacksAmazonGoldman SachsIBMKulizaYahoostack
MediumBinomial CoefficientDirectiExpediaHackerRankXomedynamic-programming
HardBinary Search Tree Delete OperationAccoliteAmazonQualcommSamsungtree
EasyBest Time to Buy and Sell StockAdobeAmazonAppleBloombergByteDanceCiscoDE ShaweBayExpediaFacebookGoldman SachsGoogleJP MorganMicrosoftMorgan StanleyOraclePayPalQualtricsSamsungVMwaredynamic-programming
MediumImplementation of Deque using Doubly Linked ListAdobeAlationAmazonAmerican ExpressDE ShawFactsetFourkitesGE HealthcareGoogleOxigen WalletQualcommSpotifySprinklrUHG OptumWookerXomeZScalerlinked-list
MediumDelete consecutive same words in a sequenceFactsetstring
MediumIterative Method to find Height of Binary TreeAccoliteAdobeAmazonFanaticsFourkitesHikeSnapdealYatratree
MediumSort a stack using a temporary stackAmazonGoldman SachsIBMKulizaYahoostack
EasyReverse a stack without using extra space in O(n)FactsetInfosysMAQstack
HardClone a Binary Tree with Random PointersAccoliteAmazonCiscoFactsetFanaticsGoogleMicrosoftOperaSnapchattree
MediumTop K Frequent ElementsAmazonAppleBloombergByteDanceCapital OneeBayFacebookGoogleMicrosoftOraclePocket Gemsqueue
MediumLevel order traversal using two QueuesAmazonHikeMicrosoftMorgan Stanleyqueue
EasyBubble sort using two StacksAmazonCapgeminiDelhiveryMAQstack
HardText JustificationAmazonCourseraGoogleIndeedLinkedInMicrosoftPinterestSnapchatstring
EasyReverse individual wordsAmazonstring
MediumCount subarrays where second highest lie before highestHackerRankstack
MediumFind the smallest binary digit multiple of given numberAmazonFourkitesLinkedInMicrosoftSnapdealgraph
MediumMinimum Operations to convert X to YAmazonFactsetFanaticsFourkitesJP MorganMyntraSamsungSpotifySquaregraph
EasyFind maximum difference between nearest left and right smaller elementsFourkitesstack
MediumRemove brackets from an algebraic string containing + and – operatorsAdobeAmazonFourkitesstack
EasyImplement a stack using single queueAmazonFourkitesGoogleInfosysMAQMicrosoftstack
HardFind the First Circular Tour that visits all the Petrol PumpsAmazonFactsetMicrosoftMorgan StanleyZohoqueue
EasySort an array according to the order defined by another arrayAmazonMicrosoftSAP LabsSnapchatYahooZohoarray
MediumRearrange a binary string as alternate x and y occurrencesAccoliteCiscoCitrixHikeIBMInfo EdgePinterestRobloxTeslastring
MediumShuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra spaceAdobeDE ShawExpediaFanaticsIndeedPayUarray
EasyDistinct adjacent elements in an arrayCourseraDE ShawHikeIBMKulizaNagarroOperaOYO RoomsZohoarray
HardConstruction of Longest Increasing Subsequence (N log N)AmazonBankBazaarPaytmSamsungarray
EasyMaximize sum of consecutive differences in a circular arrayCadence IndiaeBayGE HealthcareKaratSAP LabsSquarearray
EasyThree way partitioning of an array around a given rangeBankBazaarBlackRockCapital OneCitadelFabMoonfrog LabsSynopsysTwilioYahooarray
Minimum time required to rot all orangesAdobeAmazonBloombergMicrosoftgraph
MediumCheck if X can give change to every person in the QueueAmazonarray
MediumCheck if two nodes are on the same path in a TreeAmazonFactsetFourkitesSamsunggraph
HardCheck if all levels of two Binary Tree are anagrams or notAdobeAmazonFacebookFanaticsFourkitesGreyOrangetree
MediumMinimum sum of squares of character counts in a given string after removing k charactersAmazonqueue
EasyRearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’AmazonDelhiveryKulizaNagarroOperaTimes InternetYatraarray
MediumMaximum length subsequence with difference between adjacent elements as either 0 or 1CiscoExpediaQualtricsSAP LabsTeradataarray
EasyReplace two consecutive equal values with one greaterAccentureCitadelFreeChargePayPalSquareTeradataarray
MediumFind a sorted subsequence of size 3 in linear timeAvalaraCapital OneCitadelCitrixeBayFabSynopsysarray
MediumMaximum Product SubarrayAmazonCiscoMicrosoftMorgan StanleyMyntraPayUTimes InternetZohoarray
EasyConvert array into Zig-Zag fashionAccentureAmazonFourkitesTeradataXomearray
MediumFirst negative integer in every window of size kAccoliteAmazonPayPalSorocoqueue
MediumQueue based approach for first non-repeating character in a streamAmazonFlipkartMicrosoftPayUYahooqueue
HardDistance of nearest cell having 1 in a binary matrixAccentureAmazonHoneywellHSBCHuluTwitterqueue
HardSum of minimum and maximum elements of all subarrays of size kByteDanceCapital OneCouponDuniaDatabricksGoogleTwilioYandexqueue
MediumAn Interesting Method to generate Binary Numbers from 1 to nAmazonBelzabarMahindra ComvivaServiceNowWookertree
HardFind the largest multiple of 3Amazonqueue
Transpose GraphAccentureAmazonJP MorganMicrosoftZycusgraph
EasyCheck if the given array can represent Level Order Traversal of Binary Search TreeAmazonCitrixIBMIndeedInfo EdgeOYO RoomsTeradatatree
HardNumber of siblings of a given Node in n-ary TreeAmazonBloombergCodeNationGoogletree
HardCheck whether a given Binary Tree is Complete or notAlationAmerican ExpressDatabricksOxigen WalletSpotifytree
EasyCount the number of nodes at given level in a tree using BFSAlationBankBazaarJP MorganSquareTaxi4Suretree
EasyBFS for Disconnected GraphAmazonHuluKaratMicrosoftSalesforcegraph
MediumPage Replacement Algorithms in Operating SystemsAmazonCognizantFactsetMicrosoftPayPalalgorithm
MediumCheck if a queue can be sorted into another queue using a stackAmazonAmerican ExpressMAQqueue
MediumPriority Queue using doubly linked listAmazonCitadelMAQWookerqueue
EasyImplement Stack and Queue using DequeFanaticsGE HealthcareMAQMyntraQualcommqueue
MediumForm Minimum Number From Given SequenceAmazonGoldman Sachsstack
MediumMinimum number of distinct elements after removing m itemsBlackRockByteDanceExpediaOla CabsOraclePayUSAP LabsYandextree
HardConvert BST into a Min-Heap without using arrayAmazonCiscoMicrosoftSAP Labstree
MediumPattern Occurrences using Stackstack
MediumNumber Of Longest Increasing SubsequenceAmazonSamsungZohodynamic-programming
HardMerge two BSTs with limited extra spaceAmazonGoogleMicrosoftPayUUbertree
EasyCount subarrays with equal number of 1’s and 0’sCiscoCouponDuniaCourseraDatabricksKaratSAP LabsTeslahashing
EasyIterative Postorder Traversal Using Two StacksAdobeAmazonFactsetFourkitesPaytmstack
MediumStack Permutations (Check if an array is stack permutation of other)AmazonFourkitesstack
HardPalindrome Substring QueriesAmazonByteDanceeBayExpediaGoogleIntuitMicrosoftPayPalPinterestSynopsyshashing
EasyRearrange array such that even index elements are smaller and odd index elements are greaterAvalaraEpic SystemsFourkitesRobloxTeslaarray
EasySegregate even and odd numbersAccoliteLinkedInMakeMyTripPaytmarray
HardMinimum Steps to reach target by a KnightAmazonLinkedInMakeMyTripgraph
MediumBinary Tree to Binary Search Tree Conversion using STL setAmazonCourseraGoogleIndeedMicrosoftOYO Roomstree
MediumGrowable array based stackMAQWalmart Labsstack
EasyFind Minimum In Rotated Sorted ArrayAdobeAmazonMicrosoftMorgan StanleySamsungSnapdealTimes Internetarray
MediumImplementation of Deque using circular arrayAmazonGE HealthcareGoogleMicrosoftqueue
EasyMove all negative elements to end in order with extra space allowedCapital OneCitrixIBMSAP LabsTaxi4SureTwilioarray
HardK’th Largest element in BST using constant extra spaceAmazonExpediaFreeChargeMicrosoftSnapdealYahooYandextree
MediumRearrange an array in order – smallest, largest, 2nd smallest, 2nd largestAmazonCitadelExpediaGE HealthcareQualcommQualtricsTwilioYatrasorting
EasyRearrange array such that even positioned are greater than oddAmazonLinkedInOYO RoomsTimes InternetZohoarray
MediumDouble the first element and move zero to endMicrosoftZohoarray
EasyArrange given numbers to form the biggest numberAmazonMakeMyTripPaytmZohostring
MediumK’th Largest Element in BST when modification to BST is not allowedAmazonCiscoGoogleUHG Optumtree
EasyTracking current Maximum Element in a StackFactsetFourkitesInfosysstack
MediumIterative method to find ancestors of a given binary treeAdobeAmazonFourkitesGoogleInfoEdgeMorgan StanleyPaytmSamsungstack
EasyCheck if stack elements are pairwise consecutiveDelhiveryFactsetFourkitesstack
EasyRemove duplicates from sorted arrayAmazonFacebookMorgan StanleyWiproXomeZohoarray
EasyCheck if each internal node of a BST has exactly one childAccentureAmazonMonotype SolutionsPayPalSynopsystree
MediumElements to be added so that all elements of a range are present in arrayGreyOrangeKulizaSnapdealSynopsysTeradataTimes Internethashing
MediumCount subarrays having total distinct elements same as original arrayAmazonDatabricksFabHoneywellPayUSquareTeradataYandexhashing
EasyProduct of array except selfAccoliteAmazonDE ShawMorgan StanleyOperaarray
MediumHeight of a generic tree from parent arrayGooglePayUQualcommSprinklrUbertree
MediumFind k-th smallest element in BST (Order Statistics in BST)AccoliteAmazonGoogletree
EasyLinked List CycleAccoliteAmazonMAQSamsunglinked-list
MediumVertical sum in a given binary treeAmazonMicrosofttree
EasyA program to check if a binary tree is BST or notAccoliteAdobeAmazonBoomerang CommerceFactsetGreyOrangeMakeMyTripMicrosoftOracleOYO RoomsQualcommSnapdealVMwareWalmart LabsWookertree
MediumCheck for Identical BSTs without building the treesFanaticsFourkitestree
EasyMaximum Depth Of Binary TreeAmazonCadence IndiaCouponDuniaFactsetFreeChargeMakeMyTripMonotype SolutionsSnapdealSynopsysTeradataVMwareZohotree
MediumPalindrome PartitioningAmazonFacebookGoogleMicrosoftdynamic-programming
HardFirst missing positiveAccoliteAmazonFactsetSamsungSnapdealarray
EasyReverse IntegerMakeMyTripMAQstring
EasyReverse words in a stringAccoliteAdobeAmazonCiscoGoldman SachsMakeMyTripMAQMicrosoftMorgan StanleyPaytmPayUSAP LabsWiproZohostring
EasyReverse a StringInfosysMAQo9 solutionsTCSstring
EasySeconds to DaysMAQ
HardProgram for Bridge and Torch problemAccoliteeBaySnapdealTeradataTimes Internetdynamic-programming
HardCuckoo HashingEpic SystemsFlipkartGoogleMicrosoftNetflixTeslahashing
MediumSubarrays with distinct elementsCiscoFreeChargeTimes InternetZohohashing
EasyFind the minimum distance between two numbersCouponDuniaCourseraDelhiveryMoonfrog LabsPayPalPaytmSnapchatarray
HardBoolean Parenthesization ProblemAmazonLinkedInMicrosoftdynamic-programming
HardK maximum sums of overlapping contiguous sub-arraysCodeNationDellFacebookGE HealthcareGoogleQualcommdynamic-programming
MediumCount quadruples from four sorted arrays whose sum is equal to a given value xAccoliteFanaticsMoonfrog LabsSynopsyshashing
MediumCount pairs from two linked lists whose sum is equal to a given valueAdobeAmazonAvalaraExpediaFanaticsGoogleIndeedMicrosoftPayPalTeslahashing
EasyFind sum of non-repeating elements (distinct) elements in an arrayOxigen Wallethashing
HardFind distinct elements common to all rows of a matrixBlackRockExpediaJP MorganQualcommSnapdealYatraZohohashing
EasyNumbers with prime frequencies greater than or equal to kAccoliteAmazonFactsetFourkitesGreyOrangePinterestXomehashing
MediumConvert an array to reduced formLinkedInSnapchatXomeYahoohashing
MediumFind pairs with given sum such that elements of pair are in different rowsAmazonDE ShawDirectiGreyOrangeIndeedPinterestTeradatahashing
MediumCommon elements in all rows of a given matrixAmazonCiscoDE ShawOperaSAP LabsZohohashing
EasyCount pairs from two sorted arrays whose sum is equal to a given value xBankBazaarCiscoCitadelHoneywellPayURobloxTaxi4SureYandexarray
MediumFind all permuted rows of a given row in a matrix24*7 Innovation LabsAccentureExpediaIBMJP Morganhashing
MediumHow to print maximum number of A’s using given four keysAmazonFacebookGooglePayPalPaytmdynamic-programming
MediumCollect maximum points in a grid using two traversalsAmazonFabGoldman SachsGoogleHoneywellLinkedInPinterestYahoodynamic-programming
EasyGiven two unsorted arrays find all pairs whose sum is xAmazonFacebookhashing
HardConvert BST to Min HeapAmazonBlackRockByteDanceGE HealthcareHoneywelltree
EasySort elements by frequencyAmazonOracleZohoZycushashing
EasyConvert String To IntMAQstring
EasyFind the first repeating element in an array of integersAmazonFanaticsMAQMicrosoftOraclehashing
MediumMaximum weight transformation of a given stringAmazonBlackRockByteDanceCodeNationDE ShawExpediaJP MorganOla Cabsdynamic-programming
HardWord Wrap ProblemArcesiumFactsetGreyOrangeMicrosoftMyntraOla CabsPayUdynamic-programming
HardThe Painter’s Partition ProblemCodeNationGoogledynamic-programming
Maximum Subarray Sum Excluding Certain ElementsAccoliteCodeNationDirectiJP MorganQualcommdynamic-programming
HardMerge Two Balanced Binary Search TreesAmazonGE HealthcareGoogleMicrosoftSalesforceSpotifytree
EasyBinary Search Tree Search and InsertionAmazonDBOIFanaticsGE HealthcareMAQMicrosoftUHG Optumtree
EasyCount items common to both the lists but with different pricesAmazonFactsetGE HealthcareHoneywellTCSTeslahashing
HardMobile Numeric Keypad ProblemAmazonMAQMicrosoftSprinklrdynamic-programming
EasyFind the subarray with least averageAmazonCapital OneMoonfrog Labsarray
EasyFind the smallest positive integer value that cannot be represented as sum of any subset of a given arrayDatabricksFabTaxi4SureUHG Optumarray
EasyMinimum number of subsets with distinct elementsCapital OneGE HealthcareIBMMoonfrog LabsYandexhashing
MediumMaximum sum bitonic subarrayCiscoDE ShawDellFourkitesGoldman SachsGrofersIBMPayUYahoodynamic-programming
EasyFind minimum number of merge operations to make an array palindromeAccoliteAdobeAmazonFourkitesarray
MediumMinimize the maximum difference between the heightsAdobeCiscoFanaticsYandexarray
MediumLongest Span with same Sum in two Binary arraysAccentureCiscoIndeedKulizaSAP LabsYandexhashing
MediumConvert a normal BST to Balanced BSTAmerican ExpressByteDanceCapital OneGrofersIntelSplunkZohotree
HardLargest area rectangular sub-matrix with equal number of 1’s and 0’sAccentureIndeedInfo EdgeMonotype SolutionsPayPalPinterestSynopsysTimes InternetUHG Optumdynamic-programming
MediumA Space Optimized DP solution for 0-1 Knapsack ProblemAmazonBlackRockByteDanceCodeNationJP MorganNetskopeOla CabsQualcommdynamic-programming
EasyCheck given array of size n can represent BST of n levels or notAmazonHuluIntelJuniper NetworksMicrosoftRobinhoodYelptree
EasyFind maximum average subarray of k lengthAmazonarray
HardPrinting brackets in Matrix Chain Multiplication ProblemAmazonAvalaraCitadelDatabricksDirectiJP MorganPaytmTwiliodynamic-programming
EasySize of The Subarray With Maximum SumCourseraGreyOrangeUHG OptumXomedynamic-programming
EasyFind minimum difference between any two elementsAmazonarray
EasyMinimum number of jumps to reach endAdobeAmazonHousing.comMoonfrog LabsMorgan StanleyOYO RoomsSAP LabsWalmart Labsdynamic-programming
HardNumber of palindromic paths in a matrixAppleCodeNationFacebookFanaticsGoogledynamic-programming
HardLargest rectangular sub-matrix whose sum is 0AmazonCodeNationDirectiExpediaFacebookGoogleIBMMicrosoftPayPalUberdynamic-programming
MediumMaximum sum rectangle in a 2D matrixAccoliteAmazonFactsetSamsungdynamic-programming
MediumCount minimum steps to get the given desired arrayCapital OneCitrixCourseraSynopsysZycusarray
EasyMaximum Sum Increasing SubsequenceAmazonFanaticsMicrosoftMorgan Stanleydynamic-programming
EasyLargest Sum Contiguous Subarray24*7 Innovation LabsAccoliteAmazonDE ShawFactsetFlipkartHikeHousing.comMakeMyTripMetLifeMicrosoftMorgan StanleyOla CabsOracleOYO RoomsPayUSamsungSnapdealTeradataVisaVMwareWalmart LabsZohodynamic-programming
MediumMatrix Chain MultiplicationAmazonCodeNationDE ShawGoogleMicrosoftUberdynamic-programming
EasyBinary Tree to Binary Search Tree ConversionAdobeAmazonAppleBloombergGoogleMicrosoftVMwaretree
MediumSorted Linked List to Balanced BSTAmazonFacebooktree
EasySorted Array to Balanced BSTAdobeAmazonAppleBloombergGoogleMicrosoftVMwaretree
MediumTransform a BST to Greater sum TreeAmazonBloombergFacebooktree
MediumConvert a BST to a Binary Tree such that sum of all greater keys is added to every keyFacebooktree
EasyAdvantages of BST over Hash TableAmazonGE HealthcareQualcommtree
EasyConstruct BST from its given Level Order TraversalAmazonAppleGE HealthcareMetLifeMicrosoftUHG OptumYelptree
EasyConstruct BST from given Preorder TraversalAmazontree
BST to a Tree with Sum of all Smaller KeysBloombergDrishti-SoftMicrosoftServiceNowTwitterZoppertree
MediumFind the node with minimum value in a Binary Search TreeAmazonBloombergMicrosofttree
EasySingle NumberAmazonalgorithm
HardShortest PalindromeAmazonDelhiveryFactsetstring
MediumShuffle an ArrayAmazonFacebookGoogleMicrosoftOraclealgorithm
MediumMaximal SquareAdobeAmazonAppDynamicsAppleFacebookGoogleIBMPayPalTwittermatrix
MediumSuper Ugly NumberGoogledynamic-programming
EasyDividing Array into Pairs With Sum Divisible by KAmazonMicrosoftarray
EasyFind Number of Employees Under every EmployeeAccoliteGE HealthcareMicrosoftMyntraQualcommSynopsysTeradatahashing
MediumCount Distinct Elements in Every Window of Size KAccoliteAmazonMicrosoftarray
EasyCount Subsets Having Distinct Even NumbersCiscoExpediaMyntraSAP LabsTaxi4Surearray
MediumFind Three Element From Different Three Arrays Such That a + b + c = sumAmazonDatabricksDirectiJP MorganTaxi4SureTwilioZohoarray
EasySpecial NumberJioMAQo9 solutionsTCSalgorithm
MediumDivisible Pairs CountingMahindra ComvivaOracledynamic-programming
MediumWord SearchAmazonAppleBloombergByteDanceCiscoFacebookIntuitMicrosoftOracleServiceNowSnapchatmatrix
HardK Empty SlotsAmazonGooglealgorithm
MediumThe Knapsack ProblemMakeMyTripSnapdealVisaZohodynamic-programming
MediumBellman Ford AlgorithmFacebookQualtricsalgorithm
MediumHuffman CodingAmazonBloombergGoogleMorgan StanleySamsungUHG Optumalgorithm
MediumData Structure DesigningAmazonDBOIFacebookFanaticsFourkites
MediumLongest Increasing SubsequenceAdobeAmazonCitrixCodeNationFacebookGoogleMicrosoftSamsungZohoarray
EasyReverse BitsAppleGoogleSamsungstring
MediumConstruct Binary Tree from Given Inorder and Preorder TraversalsAmazonAppleBloombergByteDanceCitadelFacebookGoogleMicrosoftOracletree
MediumSmallest Element Repeated Exactly K TimesBelzabarKomli MediaNetskopeNvidiaOperaServiceNowUHG Optumhashing
MediumK-th Distinct Element in an ArrayAdobeAmazonAppleByteDanceeBayExpediaFacebookGoogleLinkedInMicrosoftOracleSalesforceSpotifyWalmart Labshashing
EasyCumulative Frequency of Count of Each Element in an Unsorted ArrayCadence IndiaFanaticsLinkedInMoonfrog LabsPinteresthashing
MediumGroup Words With Same Set of CharactersBlackRockCitrixIBMJP MorganSAP LabsXomehashing
EasyFirst non Repeating ElementBelzabarKomli MediaMetLifeSnapdealSprinklrWookerhashing
EasySecond Most Repeated Word in a SequenceAmazonGE HealthcareGoldman SachsPaytmSnapdealUHG Optumhashing
EasyCount Pairs Whose Products Exist in ArrayAccoliteAmazonBlackRockMoonfrog LabsOla CabsSnapchatXomearray
EasyPrint All Distinct Elements of a Given Integer ArrayAmazonMakeMyTripZohohashing
EasyPair of Positive Negative Values in an ArrayAmazonBelzabarHoneywellHuluNvidiaRobinhoodYelphashing
EasyRemove Minimum Number of Elements Such That no Common Element Exist in both ArrayAlationMetLifeOxigen WalletServiceNowSpotifyhashing
EasyMaximum Occurring CharacterAmazonMorgan StanleyPayUZohohashing
EasyCount Pairs With Given SumAccoliteAmazonFactsetHikehashing
MediumInsert Delete GetRandomAffirmAmazonAppDynamicsAppleBloombergCitadelFacebookGoogleMicrosoftNvidiaOracleTwitterTwo SigmaYandexZillowalgorithm
MediumMerge Overlapping IntervalsAdobeAmazonAppleBloombergCiscoeBayFacebookGoldman SachsGoogleIXLMicrosoftOraclePalantir TechnologiesPayPalSplunkSquareTwitterUberVMwareYandexarray
MediumDecode WaysAdobeAmazonCiscoDatabricksFacebookGoldman SachsGoogleJP MorganMicrosoftMorgan StanleyOracleSquaredynamic-programming
HardMedian of Two Sorted ArraysAdobeAmazonAppleBloombergByteDanceFacebookGoldman SachsGoogleMicrosoftarray
HardEdit DistanceAmazonByteDanceFacebookGoogleMicrosoftPalantir TechnologiesSquarestring
MediumMaximum Product SubarrayAmazonAppleBloombergFacebookGoogleMicrosoftarray
HardSubstring With Concatenation Of All WordsAmazonDE Shawstring
MediumTop K Frequent WordsAccoliteFourkitesInfosysstring
MediumReverse a Path in BST using QueueBloombergGoogleGrofersHSBCMicrosofttree
MediumPrint Ancestors of a Given Binary Tree Node Without RecursionAccoliteAmazonFourkitestree
MediumFind Maximum of Minimum for Every Window Size in a Given ArrayAmazonDirectiFlipkartSAP LabsZohoarray
MediumIdentify and Mark Unmatched Parenthesis in an ExpressionTCSstack
EasyIterative Depth First Traversal of GraphAmazonAvalaraFactsetFanaticsGoogleOraclegraph
MediumMinimum Bracket ReversalsAmazonFanaticsstack
MediumExpression Contains Redundant Bracket or NotAmazonPaytmstring
EasyReverse a Number Using StackMAQNokiao9 solutionsstack
MediumSwap Nodes In PairsAmazonMicrosoftMoonfrog Labslinked-list
MediumZigzag ConversionPayPalstring
EasyValid PalindromeInfosysMAQNokiao9 solutionsstring
MediumCheck if Two Expressions With Brackets are SameAmazonHikeOracleSnapdealWalmart LabsWiproYatraZohostack
MediumPriority Queue Using Singly Linked ListBrowserStackHuluMahindra ComvivaPocket GemsSorocoqueue
EasyReversing the First K elements of a QueueBlackRockJP MorganRobinhoodSprinklrWookerZScalerqueue
EasySorting a Queue without Extra SpaceBelzabarGE HealthcareMahindra ComvivaMAQNvidiaQualcommServiceNowqueue
MediumLongest Common Prefix Using Word by Word MatchingVMwarearray
MediumMinimum Size Subarray SumAmazonFacebookGoldman SachsGoogleMicrosoftarray
EasyIntersection of Two ArraysAmazonByteDanceFacebookarray
MediumLevel order Traversal in Spiral FormAdobeAmazonAppleBloombergFlipkartMicrosoftQualtricsServiceNowtree
MediumKth Smallest Element in a BSTAmazonAppleBloombergFacebookGoogleOracletree
MediumSearch an Element in Sorted Rotated ArrayAdobeAmazonAppleBloombergByteDanceeBayExpediaFacebookGoogleMicrosoftNvidiaOraclePayPalPaytmVMwareWalmart LabsZillowarray
MediumValid Parenthesis StringAmazonFacebookOraclestring
MediumMaximum Product SubarrayAmazonAppleBloombergFacebookGoogleMicrosoftarray
EasyToeplitz MatrixFacebookmatrix
EasyBalanced Binary TreeAmazonBloombergGoogleMicrosofttree
EasyMin StackAmazonBloombergCapital OneDBOIDeutsche BankGoldman SachsGoogleMicrosoftOracleWalmart Labsstack
EasyImplement Stack using QueuesPayPalstack
MediumInterval TreeAmazonGoogleIntuitOracleQualtricstree
MediumSet Matrix ZeroesAmazonAppleFacebookMicrosoftOraclePaytmmatrix
MediumSmallest Multiple of a Given NumberAlationAmerican ExpressGE HealthcareQualcommSpotify
MediumConstruct Complete Binary Tree from its Linked List RepresentationAmazontree
MediumLowest Common AncestorAdobeAmazonAppleBloombergFacebookGoogleLinkedInMicrosoftOraclePony.aiZillowtree
EasyReversing a Queue using Recursionqueue
Medium3 SumAdobeAmazonAppleBloombergFacebookGoogleMicrosoftOracleQualtricsTeslaVMwarearray
EasyAverages of Levels in Binary TreeFacebooktree
EasyQueue using StacksAccoliteAdobeAmazonDE ShawFlipkartGoldman SachsInfoEdgeInMobiMakeMyTripMAQMicrosoftMorgan StanleyOracleWalmart Labsqueue
MediumLongest Palindromic SubsequenceAmazonFacebookMicrosoftdynamic-programming
MediumFind The Duplicate NumberAmazonAppleBloombergGoogleMicrosoftarray
HardMaximum Sum of 3 Non-Overlapping SubarraysFacebookarray
EasyMinimum Index Sum of Two ListsOracleYelparray
MediumReservoir SamplingAmazonFacebookalgorithm
EasyReversing a QueueAccoliteCourseraDelhiveryFactsetGreyOrangeZohoqueue
MediumSplit Array Into Consecutive SubsequencesGooglearray
EasyLowest Common Ancestor in Binary Search TreeAmazonFacebookLinkedInOracletree
HardKMP AlgorithmAccoliteAmazonGoogleMakeMyTripMAQMicrosoftOraclePayUalgorithm
EasyMost Frequent Element in an ArrayAdobeAmazonFactsetFourkitesInfosysMAQhashing
MediumEvaluate DivisionAmazonBloombergFacebookGoogleMicrosoftUberalgorithm
MediumPrim’s AlgorithmAmazonCiscoSamsungalgorithm
HardSudoku SolverAmazonAppleDoorDashGoogleIntuitJP MorganMicrosoftOraclematrix
HardSegment TreeAmazonCodeNationGoogleMicrosoftUbertree
MediumMinimum Path SumAmazonBloombergFacebookGoldman SachsGoogleMicrosoftmatrix
EasyFind Pair with Greatest Product in ArraySamsunghashing
HardMinimum Cost to Hire K WorkersGooglealgorithm
MediumFind the Duplicate ElementAppleBloombergGoogleMicrosoftarray
EasyFizz BuzzBloombergMicrosoftalgorithm
MediumArithmetic Expression EvaluationAmazonOraclestack
MediumMaximum Product of Indexes of Next Greater on Left and RightFactsetFourkitesInfoEdgestack
EasyCheck for Balanced Parentheses in an ExpressionAmazonHikeOracleSnapdealWalmart LabsWiproYatraZohostack
MediumEvaluation of Postfix ExpressionAmazonOraclestack
EasyReverse a Stack Using RecursionFactsetFourkitesstack
EasyFind if an Expression has Duplicate Parenthesis or NotAmazonFactsetOraclestack
MediumHow to Implement Stack Using Priority Queue or Heap?AmazonFanaticsFourkitesstack
MediumIterative Tower of HanoiMAQstack
MediumHow to Efficiently Implement k Stacks in a Single Array?AmazonFourkitesstack
MediumFind Maximum Depth of Nested Parenthesis in a StringAmazonFacebookstack
MediumExpression EvaluationAmazonOraclestack
MediumHow to Create Mergable Stack?AmazonFactsetFanaticsstack
MediumThe Stock Span ProblemAmazonDelhiveryMAQstack
MediumFind Maximum Sum Possible Equal Sum of Three StacksAmazonFanaticsFourkitesstack
MediumPrint Next Greater Number of Q queriesAmazonFactsetFanaticsstack
MediumCheck if an Array is Stack SortableAccentureAccoliteAmazonstack
MediumSmallest Subarray With all Occurrences of a Most Frequent ElementCitrixCourseraOYO RoomsQualtricsSynopsysTaxi4Surehashing
MediumFind Top K (or Most Frequent) Numbers in a StreamAccoliteAmazonhashing
EasyFind the Only Repetitive Element Between 1 to N-1CouponDuniaDelhiveryGreyOrangeInfo EdgeLinkedInNagarroSAP Labsarray
EasyReverse a String using StackAccoliteCapgeminiDelhiveryFanaticsFourkitesstack
MediumNext Greater Frequency ElementAccentureCapgeminiMicrosoftUHG Optumhashing
EasyNumber of NGEs to the RightAccoliteFanaticsFourkitesstack
MediumBalanced Expression with ReplacementAmazonHikeOracleSnapchatSnapdealWalmart LabsWiproYatraZohostack
HardTrapping Rain WaterAdobeAmazonAppleBloombergDatabricksExpediaFacebookFlipkartGoldman SachsGoogleMicrosoftOracleQualtricsServiceNowWalmart LabsYahooarray
EasyTower Of HanoiFactsetFourkitesMAQalgorithm
EasySliding Window TechniqueAmazonFanaticsalgorithm
EasyGCD Of Two NumbersSAPSAP LabsTCSalgorithm
EasyMiniMax AlgorithmAmazonFanaticsGame Theoryalgorithm
MediumTarget SumAmazonBloombergFacebookdynamic-programming
MediumCounting BitsAmazonApple
HardMerge K Sorted Linked ListsAdobeAmazonAppleBloombergByteDanceDatabrickseBayFacebookGoldman SachsMicrosoftOraclePalantir TechnologiesTwitterUberlinked-list
MediumWiggle SortPayPalsorting
MediumDecode StringAmazonAppleBloombergByteDanceCiscoeBayFacebookGoogleHuluMicrosoftOraclestack
MediumPrint a Binary Tree in Vertical OrderAccoliteAmazonBrowserStackDellFlipkartGrofersMakeMyTripNetskopeWalmart Labstree
MediumFinding K closest elementAmazonarray
EasyPriority Queue in C++AmazonFourkitesInfosysMicrosoftOraclequeue
EasyPriority QueueAmazonAvalaraCodeNationGoldman SachsGoogleMicrosoftqueue
EasyChange the Array into Permutation of Numbers From 1 to NCapgeminiDelhiveryFourkitesMAQo9 solutionsPublicis Sapienthashing
MediumJump GameAdobeAmazonBloombergFacebookMicrosoftarray
EasyRecursionAmazonInfosysMAQstack
EasyBinary Search TreeAmazonDBOIFourkitesInfosysMicrosofttree
MediumPrefix to Infix ConversionAmazonAvalaraFanaticsstack
EasyPostfix to Infix ConversionAmazonFactsetMicrosoftstack
MediumPrefix to Postfix ConversionAmazonFactsetFanaticsOraclestack
MediumPostfix to Prefix ConversionAmazonFactsetFanaticsOraclestack
MediumMaximum Binary TreeAmazonGoogleMicrosoftUbertree
MediumNth Catalan NumberAmazonalgorithm
MediumCombination SumAdobeAmazonAppleBloombergeBayFacebookMicrosoftarray
MediumNext PermutationAdobeAmazonAppleBloombergByteDanceFacebookFactsetFlipkartGoogleMicrosoftMorgan StanleySalesforceUberstring
MediumLongest Common SubsequenceAmazoneBayFacebookMorgan Stanleydynamic-programming
MediumMax Area of IslandAmazonBloombergDoorDashFacebookGoogleOraclePalantir Technologiesgraph
MediumSearch in Sorted Rotated ArrayAdobeAmazonAppleBloombergByteDanceeBayExpediaFacebookGoldman SachsGoogleMicrosoftNvidiaOraclePayPalVMwareWalmart Labsarray
MediumBinary Tree zigzag level order TraversalAdobeAmazonAppleBloombergeBayFlipkartMicrosoftQualtricsServiceNowtree
HardRecover Binary Search TreeAmazonByteDanceMicrosoftOracleUbertree
MediumPopulating Next Right Pointers in Each NodeAmazonBloombergFacebookMicrosofttree
MediumTop View of Binary TreeAmazonPaytmSamsungWalmart Labstree
MediumUnique PathsAmazonBloombergFacebookGoldman SachsGoogleMicrosoftQualtricsmatrix
EasyMerge Two Sorted Linked ListsAdobeAmazonAppleBloombergCapital OneFacebookGoogleIBMMicrosoftOraclelinked-list
EasyRepeated Substring PatternAmazonGooglestring
MediumLetter Case PermutationAmazonBloombergSpotifystring
HardFind Median from data StreamAmazonAppleByteDanceFacebookGoldman SachsGoogleMicrosoftNvidiaOracleSalesforceTwitterVMwarealgorithm
MediumLevel of Each node in a Tree from source nodeAmazonMicrosofttree
EasyLongest Common Prefix using SortingAdobeAmazonAppleBloombergeBayFacebookGoogleMicrosoftstring
MediumHouse RobberAmazonAppleCiscoExpediaGoogleMicrosoftOracledynamic-programming
EasyMaximum SubarrayAdobeAmazonAppleBloombergByteDanceCiscoFacebookGoldman SachsGoogleJP MorganJPMorganLinkedInMicrosoftOraclePayPalPaytmUberarray
MediumSliding Window MaximumAkuna CapitalAmazonByteDanceCitadelDatabricksDropboxExpediaFacebookGoogleIBMUberarray
MediumDelete And EarnPocket Gemsarray
MediumLength of Longest Fibonacci SubsequenceAmazonarray
Rainbow Table
MediumMerging IntervalsAdobeAmazonAppleBloombergCiscoeBayFacebookGoldman SachsGoogleIXLMicrosoftOraclePalantir TechnologiesPayPalSplunkSquareTwitterUberVMwareWalmart LabsYahooYandexarray
EasyBackspace String CompareAmazonCodeNationFacebookGoogleMicrosoftOraclestack
MediumGraph CloningAmazonAppleBloombergFacebookGoogleMicrosoftQualcommQualtricsTwitterUbergraph
EasyHamming DistanceAmazonFacebookalgorithm
EasyFirst Bad VersionAmazonCiscoFacebookGooglearray
EasyWord PatternAmazonCapital Onestring
EasyPeak Index in a Mountain ArrayMicrosoftarray
HardRegular Expression MatchingAdobeAmazonAppleBloombergCourseraeBayFacebookGoldman SachsGoogleMicrosoftstring
MediumReorganize StringAmazoneBayFacebookGoogleMicrosoftQualtricsstring
MediumFind Duplicate SubtreesAmazonGoogletree
MediumString CompressionAmazonAppleCitrixExpediaFacebookGoldman SachsIBMMicrosoftYandexstring
Medium4SumAdobeAmazonAppleGoldman Sachsarray
HardCreate Maximum NumberApplearray
EasyDegree of an arrayVMwareWalmart Labsarray
MediumQueue Reconstruction by HeightAmazonAppleByteDanceFacebookGooglearray
EasyValid ParenthesesAdobeAmazonAppleBloombergByteDanceExpediaFacebookGoldman SachsGoogleIBMlyftMicrosoftOracleSpotifyZillowstring
EasySearch Insert PositionAdobearray
MediumFind Peak ElementAdobeAmazonAppleBloombergByteDanceFacebookGoogleVisaarray
EasySymmetric TreeAdobeAmazonAppleCapital OneeBayFacebookFanaticsGoogleMAQOracletree
MediumK-th Smallest Element in a Sorted MatrixAmazonFacebookGooglematrix
MediumMinimum Height TreesFacebooktree
HardLongest Common Prefix using TrieAdobeAmazonAppleBloombergeBayFacebookGoogleMicrosoftstring
HardValid NumberAmazonFacebookLinkedInOraclestring
EasyTrim a Binary Search TreeSamsungtree
MediumValid Triangle NumberBloombergRobinhoodarray
MediumConvert Sorted List to Binary Search TreeAmazonFacebooktree
HardKruskal AlgorithmAmazongraph
EasyNumber Of 1 bitsAdobeBoxCiscoFacebookQualcommalgorithm
EasyPower of TwoApplearray
MediumValidate Binary Search TreeAmazonAppleAsanaAtlassianBloombergByteDanceCitadelFacebookMicrosoftOracleQualtricsVMwareYahootree
HardReverse Nodes in K-GroupAdobeAmazonAppleByteDanceFacebookMicrosoftlinked-list
MediumMaximum size subarray sum equals kFacebookMicrosoftarray
EasyPath SumAmazonAppleFacebookMicrosoftOracletree
HardFind the Closest Palindrome numberAmazonApplestring
EasyCount and SayAmazonAppleBloombergFacebookGoogleMicrosoftVMwarestring
MediumLevel Order Traversal of Binary TreeAmazonAppleBloombergCiscoFacebookMicrosofttree
EasyTree Traversal (Preorder, Inorder & Postorder)AdobeAmazonMAQOracleSnapdealtree
MediumLRU Cache ImplementationAdobeAmazonAppleBloombergByteDanceCapital OneCiscoCitadelCohesityCruise AutomationDropboxeBayExpediaFacebookGoldman SachsGoogleMicrosoftNutanixOraclePayPalPinterestSalesforceSnapchatTeslaTwilioUberVMwareWalmart LabsZillowalgorithm
MediumMerge SortAmazonAppleBoomerang CommerceGoldman SachsGrofersMicrosoftOraclePaytmQualcommSnapdealsorting
EasyFind unique character in a stringAmazonAppleBloombergFacebookGoldman SachsGoogleMicrosoftOracleZillowstring
MediumInteger to RomanAmazonAppleBloombergMicrosoftOraclestring
MediumValid SudokuAmazonAppleFacebookGoogleMicrosoftOraclePinterestRobloxUbermatrix
MediumPalindrome PartitioningAmazonFacebookGoogledynamic-programming
MediumAdd two numbersAmazonAppleBloombergDocuSignFacebookGoogleMicrosoftUberVMwareWalmart LabsYahoolinked-list
EasyNext greater elementAmazonBloombergarray
MediumDeletion in a Binary TreeAmazonBloombergMicrosofttree
MediumUnique Binary Search TreesAmazonBloombergGoogletree
MediumFloyd Warshall AlgorithmSamsunggraph
MediumBipartite GraphSamsunggraph
MediumSieve of EratosthenesAmazonAppleCapital OneGE HealthcareGoogleMAQMicrosoftQualcommVMwarealgorithm
MediumStrongly Connected ComponentVisagraph
HardN queen problemAccoliteAmazonAmdocsAppleByteDanceFacebookMAQMicrosoftTwitterVisamatrix
HardRabin Karp AlgorithmAccoliteAmazonMakeMyTripMAQOraclePayUstring
HardGuess The WordAmazonGooglearray
MediumDecision Treetree
MediumNew 21 GameAppleGoogledynamic-programming
MediumVerify Preorder Serialization of a Binary TreeGoogletree
EasyMissing NumberAmazonAppleCapital OneCiscoFacebookMicrosoftarray
EasyMerge Sorted ArrayAmazonAmdocsAppleBloombergBrocadeFacebookGoldman SachsIBMJuniper NetworksLinkedInMicrosoftQuikrSnapdealSynopsysVisaZohoarray
MediumPartition Equal Subset SumAmazonFacebookGooglearray
EasyLast Stone WeightAmazonarray
MediumSort ColorsAmazoneBayExpediaFacebookGoldman SachsNvidiaOraclearray
MediumRotate ArrayAmazonAppleMakeMyTripMAQMicrosoftOracleSAPSAP LabsWiproarray
MediumApplications of Breadth First Search and Depth First Searchgraph
MediumContainer with Most WaterAdobeAmazonAppleBloombergFacebookFlipkartWalmart Labsalgorithm
HardDistinct SubsequencesAmazonBloombergMathworksdynamic-programming
HardMatrix Chain Multiplication using Dynamic ProgrammingAmazonMicrosoftmatrix
MediumSubarray Sum Equals kAdobeAmazonAmerican ExpressBloombergeBayFacebookGoldman SachsGoogleMicrosoftTwilioYahooarray
HardInfix to PostfixAmazonPaytmSamsungVMwarearray
EasyIsomorphic StringsAmazonAppleFacebookIntelstring
EasyBinary Tree Data StructureDBOIFactsetInfosysMAQOracletree
EasyClimbing stairsAdobeAmazonAppleBloombergExpediaGoldman Sachsdynamic-programming
MediumTopological SortingAccoliteAmazonFlipkartMicrosoftMoonfrog LabsMorgan StanleyOYO RoomsSamsungsorting
MediumInsertion SortAccentureCiscoDellGrofersJuniper NetworksMAQVeritassorting
EasySelf Dividing NumbersAdobeEpic SystemsTesla
MediumQuick SortAdobeGoldman SachsHSBCQualcommSamsungSAPSAP Labssorting
EasyTypes of Binary TreeDelhiveryInfosysMAQtree
EasyInsertion in a Binary TreeDelhiveryFactsetFreeChargeGE HealthcareInfoEdgetree
EasyBFS vs DFS for Binary TreeAmazonInfosysMAQTCSgraph
EasyDepth First Search (DFS) for a GraphGE HealthcareInfosysMAQo9 solutionsUHG Optumgraph
EasyBreadth First Search (BFS) for a GraphAmazonCadence IndiaGE HealthcareHousing.comPocket GemsUHG Optumgraph
EasyString comparison containing wildcardsAccentureAmazonOla Cabsstring
HardSerialize and Deserialize Binary TreeAmazonBloombergCitadeleBayFacebookGoogleMicrosoftOracleQualtricsSquareUberWalmart Labstree
EasyFibonacci numbersAppleDBOIGoogleInfosysJP MorganMAQo9 solutionsSAP Labsalgorithm
MediumGraph and its representationDelhiveryFactsetInfosysMAQo9 solutionsgraph
EasyReverse a linked listAccoliteAdobeAmazonMakeMyTripMicrosoftQualcommSamsungSAPSAP LabsSnapdealZoholinked-list
EasySubset sum problemAdobeAmazonAmeyodynamic-programming
EasyCircular QueueInfosysMAQo9 solutionsOraclearray
MediumHeap Sort24*7 Innovation LabsAmazonAppleBelzabarIntuitOracleSamsungSAPSAP LabsVisa
EasyUgly NumbersDelhiveryGoldman SachsPaytmdynamic-programming
EasyDynamic Programming BasicsInfosysMAQdynamic-programming
MediumDijkstra AlgorithmAccoliteAdobeAmazonCiscoInteractive SolutionsMorgan StanleySamsungVizuryalgorithm
MediumCoin Change ProblemAmazonAppleBlackRockBloombergByteDanceCapital OneFacebookGoldman SachsGoogleOracleWalmart Labsdynamic-programming
EasyMultiplication of Two MatricesAmazonAppleFacebookmatrix
EasySubtraction of Two MatricesCapgeminiMAQo9 solutionsmatrix
EasyCheck if Two given Matrices are IdenticalAffirmAmeyoDiDiPony.aimatrix
EasyAddition of Two MatricesAlationAsanamatrix
EasyTranspose of a MatrixServiceNowVeritasmatrix
MediumCheck whether Strings are K Distance Apart or NotAmazonDeutsche BankFacebookGE HealthcareMicrosoftstring
EasyProgram to Toggle all Characters in a StringCapgeminiInfoEdgeMAQOxigen Walletstring
EasyCheck length of a String is Equal to the Number Appended at its LastCodeNationFourkitesMicrosoftUHG Optumstring
EasyGenerate all Binary Strings Without Consecutive 1’sAmazonGE HealthcareSnapdealstring
MediumCheck if all Rows of a Matrix are Circular Rotations of Each OtherAccentureCadence IndiaCitadelFreeChargeMicrosoftPintereststring
EasySort a String According to Another StringAccentureAccoliteAdobeAmazonFreeChargeInfoEdgeMicrosoftSalesforcestring
MediumCheck if String can Become Empty by Recursively Deleting given SubstringAdobeDelhiveryGE HealthcareMakeMyTripServiceNowSpotifyUHG Optumstring
EasySmallest Palindrome after ReplacementAdobeArcesiumFlipkartGE HealthcareZScalerstring
MediumCheck if String Follows Order of Characters by a Pattern or notAdobeAmazonGreyOrangeInfoEdgeMicrosoftstring
EasySplit Four Distinct StringsAccentureAdobeGoDaddyGrofersHoneywellSplunkstring
EasyEven Substring CountCourseraDeutsche BankOYO RoomsYahooYandexZohostring
MediumReverse String Without Temporary VariableAdobeAmazonGoogleHuluMicrosoftMoonfrog Labsstring
EasyRecursive Palindrome CheckCapgeminiFactsetInfosysMAQo9 solutionsOracleSquarestring
EasyMinimum Characters to be Removed to Make a Binary String AlternateCourseraFourkitesHikeMAQo9 solutionsPocket GemsTaxi4Surestring
MediumPrint all Palindromic Partitions of a StringAmazonFacebookGooglestring
EasyCount the Pairs at Same Distance as in English AlphabetsAdobeAmazonDropboxGE HealthcareOYO Roomsstring
MediumMinimum Characters to be Added at Front to Make String PalindromeAmazonFactsetGoogleMicrosoftSAPSAP Labsstring
MediumConvert a String that is Repetition of a Substring of Length KAccentureAdobeAmerican ExpressDatabricksFreeChargestring
MediumNth Character in Concatenated Decimal StringAdobeOraclestring
EasyKth Non-repeating CharacterAmazonAppleBloombergFacebookGoldman SachsGoogleMicrosoftOracleZillowstring
EasyCompare Two Version NumbersAdobeDelhiveryGE HealthcareGreyOrangeMakeMyTripWookerZohostring
EasyRemove Minimum Characters so that Two Strings Become AnagramsAmazonFreeChargestring
MediumGenerate all Binary Strings from Given PatternAmazonGoogleMicrosoftstring
HardPrint all Possible Ways to Break a String in Bracket FormAmazonBloombergGE HealthcareJuniper Networksstring
EasyCaesar CipherAmazonGE HealthcareGrofersUHG Optumstring
EasyLongest Common Subsequence with PermutationsAdobeHoneywellHuluJP MorganOracleZohostring
EasyPerfect Reversible StringMakeMyTripMAQWalmart LabsZohostring
EasyLongest Palindrome can be Formed by Removing or Rearranging CharactersAdobeAmazonDelhiveryInfoEdgeUHG Optumstring
HardLongest Common Prefix Word by Word MatchingAdobeAmazonAppleBloombergeBayFacebookGoogleMicrosoftVMwareYahoostring
HardLongest Common Prefix using Character by Character MatchingAdobeAmazonAppleBloombergeBayFacebookGoogleMicrosoftVMwareYahoostring
MediumPermutations of a Given String Using STLAmazonAppleByteDanceeBayFacebookGoogleMicrosoftOraclestring
EasyCalculate Sum of all Numbers Present in a StringAdobeFanaticsMAQstring
HardLongest Common Prefix using Divide and ConquerAccentureAccoliteAmazonFanaticsGooglestring
EasyLower Case To Upper CaseAdobeAppleGooglestring
HardLongest Common Prefix Using Binary Search IIAdobeAmazonAppleBloombergeBayFacebookGoogleMicrosoftVMwareYahoostring
EasyPrint Shortest Path to Print a String on ScreenAccolitestring
EasyRemove Extra Spaces from a StringCapgeminiInfosysMAQo9 solutionsTCSstring
EasyChange Gender of a given StringAdobeFactsetstring
MediumCount Number of Substrings with K Distinct Character’sLinkedInZohostring
EasyRemoving Spaces from a String using stringstreamCapgeminiHuluo9 solutionsTCSstring
EasyPangram CheckingFactseto9 solutionsPocket GemsZohostring
MediumRepeated Subsequence of Length Two or MoreAdobestring
HardPalindrome Permutations of a StringAmazonFacebookstring
Split a stringstring
1`s and 2`s complement of binary numberstring
Longest Common Extensionstring
Convert string1 to string2 in one editstring
Find First non-repeating character in a stringstring
Remove recurring digits in a given numberstring
Recursively print all the sentences that can be formed from list of word listsstring
MediumOnline Algorithm for Checking Palindrome in a StreamAccoliteAdobestring
EasyCheck if Two given Strings are Isomorphic to each otherAccoliteAdobeAmazonGE HealthcareGoldman SachsInfoEdgeOracleUHG Optumstring
HardLength of Longest valid SubstringAdobeAmazonAppleBloombergByteDanceCitadeleBayFacebookGoogleMicrosoftOracleUberVMwareYahoostring
Program to add two binary digitsstring
Recursive Implementation of atoi()string
Reverse a string without affecting special charactersstring
Recursive function to do substring searchstring
Print Longest common subsequencestring
Rotate string to get lexicographically minimum stringstring
Number of sub-strings which recursively add up to 9string
Palindrome string (number)string
Print all possible words from phone digitsstring
Shortest Superstring Problemstring
Transform one string to another using minimum number of given operationsstring
Print string of odd length in ‘X’ formatstring
Minimum insertions to form a shortest palindromestring
print all palindromic partitionsstring
Check rearranged string can form a palindromestring
Palindromes in a given rangestring
String(represents an integer) to valuestring
Count the number of wordsstring
Print all anagrams together in a sequence of wordsstring
Lexicographic rank of stringstring
Remove spaces from a stringstring
Find, second, frequent, characterstring
Find the second most frequent characterstring
Check if a given string is a rotation of a palindromestring
Sort an array of stringsstring
Recursively remove all adjacent duplicatesstring
Remove ‘b’ and ‘ac’ from a given stringstring
wildcard character matchingstring
Longest Palindromic Substringstring
Given string is interleaving of two other strings or notstring
Print all permutations with repetitionstring
Run length encodingstring
List items containing all characters of a given wordstring
Write a program to print all permutations of a given stringstring
Check whether two strings are anagram of each otherstring
Print all interleavings of given two stringsstring
Print all duplicates in the input stringstring
A Program to check if strings are rotations of each other or notstring
Given a string find its first non-repeating characterstring
Reverse words in a given stringstring
Find the smallest window in a string containing all characters of another stringstring
Divide a string in N equal partsstring
Print Reverse of a string (Recursion)string
Remove characters from first string which are in secondstring
Sorting the array of stringsstring
Remove duplicates from a stringstring
Concatenation of two stringsstring
Reverse a Stringstring
Most repeating character in a stringstring
Given a sorted array and a number x, find the pair in array whose sum is closest to xarray
Find the subarray whose sum is equal to a given number Xarray
Basic SQL Interview Questionssql-interview-questions
Aggregate Functions in SQLsql-interview-questions
DB Locks in SQLsql-interview-questions
Indexes in SQL Interview Questionssql-interview-questions
Joins in SQL Interview Questionssql-interview-questions
Keys in SQLsql-interview-questions
Optimization in SQLsql-interview-questions
Oracle in SQLsql-interview-questions
Parameterized Query in SQLsql-interview-questions
Privileges and Roles in SQLsql-interview-questions
SQL Query Interview Questionssql-interview-questions
SQL Server Interview Questionssql-interview-questions
Arrange Even and Odd number such that Odd comes after Evenarray
EasyMinimum number of Merge Operations to make an Array PalindromeAmazonarray
EasyForm Minimum Number from Given Sequence of D’s and I’sAmazonGoldman Sachsarray
MediumLongest Span with same Sum in two Binary Arrays IIAccentureCiscoIndeedKulizaSAP LabsYandexarray
EasyFind the Subarray of given length with Least AverageAccentureAccoliteAmazonFactsetFourkitesPaytmZohoarray
EasyFind Zeros to be Flipped so that Number of Consecutive 1’s is MaximizedAccoliteAmazonGE HealthcareInfo EdgeZohoarray
MediumMerge K Sorted Arrays and Print Sorted OutputAmazonGE HealthcareGoogleMicrosoftarray
MediumFind the Minimum Element in a Sorted and Rotated ArrayAmazonBloombergFacebookGoldman SachsMicrosoftOraclearray
MediumFind the point where a monotonically increasing function becomes positive first timeAmerican Expressarray
MediumPrint all Possible Combinations of R Elements in a given Array of size NGreyOrangeOxigen Walletarray
MediumSort Elements by Frequency IIAmazonOracleZohoZycusarray
EasyStock Buy Sell to Maximize ProfitAmazonAppleFacebookMicrosoftMorgan StanleyPayPalQualtricsTCSUberarray
MediumMerge Overlapping Intervals IIAdobeAmazonAppleBloombergCiscoeBayFacebookGoldman SachsGoogleIXLMicrosoftOraclePalantir TechnologiesPayPalQualtricsSalesforceSplunkTwitterUberVMwareWalmart LabsYahooYandexarray
MediumMaximum Subarray Sum using Divide and ConquerAdobeAmazonAppleBloombergByteDanceCiscoFacebookGoldman SachsGoogleJPMorganLinkedInMicrosoftOraclePayPalPaytmUberarray
HardPancake Sorting ProblemAmazonFacebookMicrosoftSquareUberarray
MediumPancake SortingAmazonFacebookMicrosoftSquareUberarray
MediumArrange given Numbers to Form the Biggest Number IIAdobeAmazonAppleByteDanceFacebookGoogleMakeMyTripMicrosoftNvidiaOraclePaytmVMwareZohoarray
MediumIterative Implementation of Quick SortAmazonAppleBloombergarray
EasyShuffle a given ArrayAmazonAppleBloombergFacebookGoogleMicrosoftOracleTwo SigmaYahooarray
MediumFind the Row with Maximum Number of 1’s24*7 Innovation LabsAmazonMicrosoftPaytmarray
EasySorting a K Sorted ArrayAmazonAppleBloombergarray
MediumMaximum Product Subarray IIAmazonAppleBloombergFacebookGoogleLinkedInMicrosoftarray
MediumLargest Subarray with Equal Number of 0’s and 1’sAdobeAmazonAppleFacebookGoogleRobinhoodarray
EasyFind the two Numbers with Odd Occurrences in an Unsorted ArrayAccoliteFactsetGoogleOraclearray
MediumMaximum Sum Increasing SubsequenceAdobeAmazonAppleAtlassianBloombergByteDanceCitrixCodeNationeBayFacebookGoogleIBMMicrosoftNagarroOracleUberYahooarray
MediumImplement Two Stacks in an Array24*7 Innovation LabsAccoliteGoogleMicrosoftSamsungSnapdealarray
MediumNumber of Smaller Elements on Right SideAdobeAmazonAppleBloombergGoogleMicrosoftOracleUberarray
EasyIncreasing Subsequence of Length three with Maximum ProductAmazonAppleCiscoCitadelFacebookIntuitUberarray
MediumElements Appear more than N/K times in ArrayAdobeAmazonAppleBloombergFacebookGoogleMicrosoftarray
MediumFind the Peak Element from an ArrayAmazonAppleBloombergByteDanceDE ShawFacebookGoogleMicrosoftUberWalmart Labsarray
EasyRearrange Positive and Negative Numbers Alternatively in ArrayAmazonAppleBloombergCapital OneCiscoFacebookGoogleMorgan StanleyOracleVMwarearray
EasyFind the Maximum Repeating Number in ArrayAdobeAmazonAppleBloombergCitadeleBayFacebookGoldman SachsGoogleIntuitMicrosoftNutanixPayPalSalesforceVMwareYahooarray
MediumTug of WarAccoliteAmazonarray
MediumFirst Circular Tour to Visit all the Petrol BunksAmazonFactsetMicrosoftMorgan StanleyZohoarray
MediumCount Possible TrianglesAmazonLinkedInWiproarray
MediumMaximum Circular Subarray SumAmazonFacebookLinkedInTwo SigmaUberarray
MediumFour Elements that Sum to GivenAdobeAmazonAppleBloombergGoldman SachsGoogleMicrosoftYahooarray
MediumMaximum Length of Chain PairsAmazonBloombergUberarray
EasyFind Pair with Given DifferenceAmazonBloombergCitrixExpediaGoldman SachsMicrosoftNvidiaOracleSalesforceTwilioTwitterVisaVMwarearray
MediumPartition ProblemAccoliteAdobeAmazonAppleBloombergByteDanceeBayFacebookGoldman SachsGoogleMicrosoftVMwareYahooarray
MediumThe Celebrity ProblemAmazonAppleFabFacebookFlipkartGoogleLinkedInMicrosoftNvidiaPalantir TechnologiesPinterestSnapchatUberUHG OptumVMwareZohoarray
MediumFind a Sorted Subsequence of size 3AmazonBloombergFacebookFactsetGoogleOracleUberYahooarray
MediumSubarray with Given SumAdobeAmazonAmerican ExpressAppleBloombergByteDanceeBayFacebookGoldman SachsGoogleLinkedInMicrosoftOracleTwilioUberYahooYandexarray
MediumMaximum Element in an Array which is Increasing and then DecreasingAdobeAmazonGoldman SachsMicrosoftPaytmarray
EasyCount Minimum Steps to Get the given ArrayAmazonFanaticsOraclearray
EasyFind the Lost Element From a Duplicated ArrayAccoliteAdobeAmazonAppleBloombergCapital OneCiscoeBayFacebookGoldman SachsGoogleIBMJP MorganMicrosoftNvidiaOraclePayPalServiceNowYandexarray
EasyRearrange given Array in Maximum Minimum FormAmazonAppleBloombergCapital OneCiscoFacebookGoogleMorgan StanleyOracleVMwarearray
MediumSubarray and SubsequenceAmazonAppleFacebookGoogleMicrosoftarray
MediumMerge Two Sorted ArraysAdobeAmazonAppleBloombergByteDanceCiscoeBayFacebookGoldman SachsGoogleIBMLinkedInlyftMicrosoftOracleUberVMwareWalmart LabsYahooYandexarray
MediumCount of Triplets With Sum Less than Given ValueAdobeAmazonAppleBloombergByteDanceCiscoCitadelCitrixDoorDasheBayFacebookGoldman SachsGoogleHuluIBMInfosysMathworksMicrosoftOraclePayPalQualtricsSamsungServiceNowSplunkSquareTencentTeslaUberVisaVMwareWalmart LabsYahooZohoarray
EasyReorder Array Using Given IndexesGooglearray
EasyNext Greater Element in an ArrayAmazonAppleBloombergCouponDuniaFacebookGoogleMicrosoftOraclePayUSamsungSnapdealTwitterZohoarray
EasyMerging Two Sorted ArraysAdobeAmazonAppleBloombergByteDanceCiscoeBayFacebookGoldman SachsGoogleIBMLinkedInlyftMicrosoftOracleUberVMwareWalmart LabsYahooYandexarray
EasyReorder an Array According to the Given IndexesGooglearray
EasyFind a Fixed Point in a Given ArrayAmazonFactsetHikeUberarray
EasyFind Element Using Binary Search in Sorted ArrayAmazonAppleBloombergFacebookGoogleMicrosoftPayPalarray
MediumFind Triplet in Array With a Given SumAccoliteAdobeAmazonAppleBloombergByteDanceCiscoCitadelCitrixDoorDasheBayFacebookGoldman SachsGoogleHuluIBMInfosysMathworksMicrosoftMorgan StanleyOraclePayPalQualtricsSamsungServiceNowSplunkSquareTencentTeslaUberVisaVMwareWalmart LabsYahooZohoarray
EasyCheck if the Elements of an Array are ConsecutiveGoogleUberarray
EasyFind Duplicates in an Array in Most Efficient WayAmazonAppleBloombergFacebookGooglelyftMicrosoftPaytmPocket GemsQualcommZohoarray
EasySort 0s 1s and 2s in an ArrayAdobeAmazonHikeMakeMyTripMAQMicrosoftMorgan StanleyOla CabsPaytmQualcommSAP LabsSnapdealWalmart LabsYatraarray
EasyFind Leaders in an ArrayAmazonGoldman SachsPayUarray
HardSmallest Positive Number Missing in an Unsorted ArrayAccoliteAdobeAmazonAppleBloombergByteDanceDatabrickseBayFacebookFactsetGoldman SachsGoogleJP MorganMicrosoftMorgan StanleyOracleSalesforceSamsungSnapdealTencentTeslaTwitchUberWalmart Labsarray
EasyFind K Length Subarray of Maximum AverageAmazonGooglearray
MediumFind Pythagorean Triplets from ArrayAmazonLinkedInMakeMyTripMyntraOraclearray
EasyMove All the Zeros to the End of the Given ArrayAdobeAmazonAppleBloombergByteDanceCapital OneCiscoDelleBayFacebookGoldman SachsGoogleIBMLinkedInMicrosoftNutanixOraclePayPalPaytmQualcommSamsungSAP LabsServiceNowSplunkTeslaUberWalmart LabsYahooYandexZillowarray
MediumFind Minimum Distance Between Two Numbers in an ArrayAmazonPaytmUberarray
Rotate Image by 90 degreesarray
EasyCount Number of Occurrences in a Sorted ArrayAirbnbAmazonAppleBloombergByteDanceFacebookFlipkartGoogleLinkedInMakeMyTripMicrosoftNetflixOracleTwitterUberYandexarray
MediumMaximum Sum of Non Consecutive ElementsAccoliteAmazonAmerican ExpressFacebookGoogleOxigen WalletOYO RoomsPaytmSnapchatWalmart LabsYahooarray
EasyFind Smallest Missing Number in a Sorted ArrayAdobeAmazonAppleBloombergCapital OneCiscoeBayFacebookGoldman SachsGoogleIBMJP MorganMicrosoftNvidiaOraclePayPalServiceNowYandexarray
EasyFirst Repeating ElementAdobeAmazonAppleBloombergCitadeleBayFacebookGoldman SachsGoogleIntuitMicrosoftNutanixOraclePayPalSalesforceYahooarray
EasyMultiplication of Previous and NextAccentureAccoliteAdobeFactsetUHG Optumarray
MediumA Product Array PuzzleAccoliteAdobeAmazonAppleAsanaBlackRockBloombergByteDanceCitadelDE ShaweBayEvernoteExpediaFacebookGoldman SachsGoogleIntelLinkedInlyftMicrosoftMorgan StanleyNutanixOperaOraclePayPalPaytmQualtricsSalesforceSAPServiceNowSnapchatSplunkTwitterUberVisaVMwareWalmart LabsYahooYandexarray
EasyFind All Pairs With a Given DifferenceAmazonBloombergCitrixExpediaGoldman SachsMicrosoftNvidiaOracleSalesforceTwilioTwitterVisaVMwarearray
EasyFind all Common Elements in Given Three Sorted ArraysMAQarray
EasyFind the first Repeating Number in a Given ArrayAdobeAmazonAppleBloombergCitadeleBayFacebookGoldman SachsGoogleIntuitMicrosoftNutanixOraclePayPalSalesforceYahooarray
EasyPrint All Distinct Elements of the ArrayAdobeFactsetMAQo9 solutionsTCSarray
EasyMaximum difference between two elements such as larger element comes after smallerAmazonHikeMakeMyTripOla CabsSAP Labsarray
EasyMajority ElementAdobeAmazonAppleAtlassianBloombergByteDanceFacebookGoDaddyGoogleMicrosoftOracleSnapchatSplunkYahooarray
EasyFind the First and Second Smallest ElementsAmazonMAQo9 solutionsTCSarray
EasyFind the Number Occurring Odd Number of Times in an ArrayAmazono9 solutionsSnapdealTCSarray
MediumSort Elements by Frequency of OccurrencesAmazonOracleZohoZycusarray
EasyFind the Missing NumberAdobeAmazonAppleBloombergCapital OneCiscoeBayFacebookGoldman SachsGoogleIBMMicrosoftNvidiaOraclePayPalServiceNowYandexarray
Find Nearest Greater and Smaller Elementarray
EasyInsert Node in the Sorted Linked ListAppleMicrosoftlinked-list
EasyDetect a loop in the Linked ListAmazonAppleFacebookGoldman SachsGoogleMicrosoftlinked-list
EasyFind Nth NodeAccoliteAdobeAmazonEpic SystemsFactsetHikeMAQMonotype SolutionsQualcommSnapdeallinked-list
EasySwap Kth Node from beginning with Kth Node from EndAmazonBlackRockMorgan Stanleylinked-list
Swap nodes in the linked listlinked-list
EasyDelete Last OccurrenceAdobeFactsetOraclelinked-list
EasyCheck if a Linked list of Strings form a PalindromeAdobeAmazonAppleBloombergCapital OneCiscoFacebookGoogleIXLMicrosoftNutanixOraclePaytmSnapchatUberYandexlinked-list
Merge two sorted linked lists such that merged list is in reverse orderlinked-list
Rearrange a given linked list in-placelinked-list
Clone a Linked List with next and random pointerlinked-list
Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodeslinked-list
Quick Sort on SIngly Linked Listlinked-list
Flatten a multilevel linked listlinked-list
Rotate a Linked Listlinked-list
Union and Intersection of Two Linked Listslinked-list
Sort linked which is sorted on absolute valueslinked-list
Binary Tree to Doubly linked listlinked-list
Rearrange a linked list in Zig-Zaglinked-list
Clone a linked list with next and random pointer (Hashing)linked-list
Flattening a linked listlinked-list
Segregate even and odd nodes in a linked listlinked-list
Delete a node of a linked list at given positionlinked-list
Compare two strings(linked lists)linked-list
Merge sort better than quick sort for linked listslinked-list
Sort a linked list that is sorted alternating ascending and descendinglinked-list
Remove middle points in a linked list of line segmentslinked-list
Can we reverse a linked list in less than O(n) time ?linked-list
Merge a linked list into another at alternate positionslinked-list
Delete N nodes after Mlinked-list
Sort a linked list with 0s, 1s and 2slinked-list
Triplet from three linked lists with given sumlinked-list
Delete a node under given conditionslinked-list
Reverse a Linked List in groupslinked-list
Reverse a singly linked list recursivelylinked-list
Reverse a Singly Linked List (Iterative/Non-Recursive)linked-list
Remove all duplicates in an unsorted linked listlinked-list
Remove all duplicates in a sorted linked listlinked-list
Check if the linked list is palindromelinked-list
Find the occurrences of a number in a linked listlinked-list
Find nth node of the Linked list from the endlinked-list
Find middle of the Linked Listlinked-list
Insert nodes in a linked list in a sorted way (Ascending Order)linked-list
Check if two linked lists are identicallinked-list
Move last element of the Linked List at first placelinked-list
Delete a node in doubly linked listlinked-list
How to Delete a Linked Listlinked-list
Split linked list using alternate nodeslinked-list
Create a Doubly Linked Listlinked-list
Delete a Treetree
Binary Treetree
Searching a node in a Binary Search Treetree
Binary Tree Level order traversal in Javatree
Java program to find the number of Nodes in a Binary Treetree
Largest Sum Contiguous Subarrayarray
Reverse an Arrayarray
Find a Triplet That Sum to a Given Valuearray
Find elements pair from array whose sum equal to numberarray