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
MediumRearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < iAccentureAdobeAmazonFactsetZohoarray
MediumContiguous ArrayAmazonMakeMyTripMorgan StanleyPaytmarray
MediumMaximum Length of Repeated SubarrayIndeedKaratRobloxarray
EasyCount pair with Given SumAccoliteAmazonFactsetHikearray
MediumMaximum difference between frequency of two elements such that element having greater frequency is also greaterAccentureAccoliteAmazonVMwarearray
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
EasyCount Subarrays with Same Even and Odd ElementsAccentureFactsetFanaticsarray
EasyRearrange an Array Such that arr[i] is equal to iAccentureAdobeAmazonFanaticsFourkitesZohoarray
EasySegregate 0s and 1s in an ArrayAccoliteAmazonFabMakeMyTripPayPalPaytmZohoarray
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
MediumPrint all triplets in sorted array that form APAccentureAccoliteCadence IndiaGoogleInfoEdgeIntuitPinterestarray
MediumFind number of pairs in an array such that their XOR is 0Cadence IndiaCouponDuniaHoneywellIndeedInfoEdgeMoonfrog LabsPinterestarray
EasyGiven an Array of Pairs Find all Symmetric Pairs in itAmazonCapgeminiCiscoFreeChargeMoonfrog LabsOperaXomearray
MediumFind all triplets with zero sumAmazonGE HealthcareGoogleHikearray
MediumGenerate all possible sorted arrays from alternate elements of two given sorted arraysDirectiKaratPayPalTwilioYandexarray
HardArray Queries for multiply replacements and productCadence IndiaDE ShawExpediaGooglearray
EasyCheck in binary array the number represented by a subarray is odd or evenCiscoFabIBMMicrosoftPayUSnapchatSnapdealTeradataarray
HardQueries for counts of array elements with values in given rangeCourseraDE ShawGooglePayUSnapdealTimes InternetYahooarray
HardProducts of ranges in an arrayAccoliteDE ShawFreeChargeGoogleSAP LabsSnapdealTimes Internetarray
EasyPalindrome PermutationFacebookMicrosoftarray
EasySort an array according to the order defined by another arrayAmazonMicrosoftSAP LabsSnapchatYahooZohoarray
MediumShuffle 2n integers as 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
MediumCheck if X can give change to every person in the QueueAmazonarray
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
EasyRearrange array such that even index elements are smaller and odd index elements are greaterAvalaraEpic SystemsFourkitesRobloxTeslaarray
EasySegregate even and odd numbersAccoliteLinkedInMakeMyTripPaytmarray
EasyFind Minimum In Rotated Sorted ArrayAdobeAmazonMicrosoftMorgan StanleySamsungSnapdealTimes Internetarray
EasyMove all negative elements to end in order with extra space allowedCapital OneCitrixIBMSAP LabsTaxi4SureTwilioarray
EasyRearrange array such that even positioned are greater than oddAmazonLinkedInOYO RoomsTimes InternetZohoarray
MediumDouble the first element and move zero to endMicrosoftZohoarray
EasyRemove duplicates from sorted arrayAmazonFacebookMorgan StanleyWiproXomeZohoarray
EasyProduct of array except selfAccoliteAmazonDE ShawMorgan StanleyOperaarray
HardFirst missing positiveAccoliteAmazonFactsetSamsungSnapdealarray
EasyFind the minimum distance between two numbersCouponDuniaCourseraDelhiveryMoonfrog LabsPayPalPaytmSnapchatarray
EasyCount pairs from two sorted arrays whose sum is equal to a given value xBankBazaarCiscoCitadelHoneywellPayURobloxTaxi4SureYandexarray
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
EasyFind minimum number of merge operations to make an array palindromeAccoliteAdobeAmazonFourkitesarray
MediumMinimize the maximum difference between the heightsAdobeCiscoFanaticsYandexarray
EasyFind maximum average subarray of k lengthAmazonarray
EasyFind minimum difference between any two elementsAmazonarray
MediumCount minimum steps to get the given desired arrayCapital OneCitrixCourseraSynopsysZycusarray
EasyDividing Array into Pairs With Sum Divisible by KAmazonMicrosoftarray
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
MediumLongest Increasing SubsequenceAdobeAmazonCitrixCodeNationFacebookGoogleMicrosoftSamsungZohoarray
EasyCount Pairs Whose Products Exist in ArrayAccoliteAmazonBlackRockMoonfrog LabsOla CabsSnapchatXomearray
MediumMerge Overlapping IntervalsAdobeAmazonAppleBloombergCiscoeBayFacebookGoldman SachsGoogleIXLMicrosoftOraclePalantir TechnologiesPayPalSplunkSquareTwitterUberVMwareYandexarray
HardMedian of Two Sorted ArraysAdobeAmazonAppleBloombergByteDanceFacebookGoldman SachsGoogleMicrosoftarray
MediumMaximum Product SubarrayAmazonAppleBloombergFacebookGoogleMicrosoftarray
MediumFind Maximum of Minimum for Every Window Size in a Given ArrayAmazonDirectiFlipkartSAP LabsZohoarray
MediumLongest Common Prefix Using Word by Word MatchingVMwarearray
MediumMinimum Size Subarray SumAmazonFacebookGoldman SachsGoogleMicrosoftarray
EasyIntersection of Two ArraysAmazonByteDanceFacebookarray
MediumSearch an Element in Sorted Rotated ArrayAdobeAmazonAppleBloombergByteDanceeBayExpediaFacebookGoogleMicrosoftNvidiaOraclePayPalPaytmVMwareWalmart LabsZillowarray
MediumMaximum Product SubarrayAmazonAppleBloombergFacebookGoogleMicrosoftarray
Medium3 SumAdobeAmazonAppleBloombergFacebookGoogleMicrosoftOracleQualtricsTeslaVMwarearray
MediumFind The Duplicate NumberAmazonAppleBloombergGoogleMicrosoftarray
HardMaximum Sum of 3 Non-Overlapping SubarraysFacebookarray
EasyMinimum Index Sum of Two ListsOracleYelparray
MediumSplit Array Into Consecutive SubsequencesGooglearray
MediumFind the Duplicate ElementAppleBloombergGoogleMicrosoftarray
EasyFind the Only Repetitive Element Between 1 to N-1CouponDuniaDelhiveryGreyOrangeInfo EdgeLinkedInNagarroSAP Labsarray
HardTrapping Rain WaterAdobeAmazonAppleBloombergDatabricksExpediaFacebookFlipkartGoldman SachsGoogleMicrosoftOracleQualtricsServiceNowWalmart LabsYahooarray
MediumFinding K closest elementAmazonarray
MediumJump GameAdobeAmazonBloombergFacebookMicrosoftarray
MediumCombination SumAdobeAmazonAppleBloombergeBayFacebookMicrosoftarray
MediumSearch in Sorted Rotated ArrayAdobeAmazonAppleBloombergByteDanceeBayExpediaFacebookGoldman SachsGoogleMicrosoftNvidiaOraclePayPalVMwareWalmart Labsarray
EasyMaximum SubarrayAdobeAmazonAppleBloombergByteDanceCiscoFacebookGoldman SachsGoogleJP MorganJPMorganLinkedInMicrosoftOraclePayPalPaytmUberarray
MediumSliding Window MaximumAkuna CapitalAmazonByteDanceCitadelDatabricksDropboxExpediaFacebookGoogleIBMUberarray
MediumDelete And EarnPocket Gemsarray
MediumLength of Longest Fibonacci SubsequenceAmazonarray
MediumMerging IntervalsAdobeAmazonAppleBloombergCiscoeBayFacebookGoldman SachsGoogleIXLMicrosoftOraclePalantir TechnologiesPayPalSplunkSquareTwitterUberVMwareWalmart LabsYahooYandexarray
EasyFirst Bad VersionAmazonCiscoFacebookGooglearray
EasyPeak Index in a Mountain ArrayMicrosoftarray
Medium4SumAdobeAmazonAppleGoldman Sachsarray
HardCreate Maximum NumberApplearray
EasyDegree of an arrayVMwareWalmart Labsarray
MediumQueue Reconstruction by HeightAmazonAppleByteDanceFacebookGooglearray
EasySearch Insert PositionAdobearray
MediumFind Peak ElementAdobeAmazonAppleBloombergByteDanceFacebookGoogleVisaarray
MediumValid Triangle NumberBloombergRobinhoodarray
EasyPower of TwoApplearray
MediumMaximum size subarray sum equals kFacebookMicrosoftarray
EasyNext greater elementAmazonBloombergarray
HardGuess The WordAmazonGooglearray
EasyMissing NumberAmazonAppleCapital OneCiscoFacebookMicrosoftarray
EasyMerge Sorted ArrayAmazonAmdocsAppleBloombergBrocadeFacebookGoldman SachsIBMJuniper NetworksLinkedInMicrosoftQuikrSnapdealSynopsysVisaZohoarray
MediumPartition Equal Subset SumAmazonFacebookGooglearray
EasyLast Stone WeightAmazonarray
MediumSort ColorsAmazoneBayExpediaFacebookGoldman SachsNvidiaOraclearray
MediumRotate ArrayAmazonAppleMakeMyTripMAQMicrosoftOracleSAPSAP LabsWiproarray
MediumSubarray Sum Equals kAdobeAmazonAmerican ExpressBloombergeBayFacebookGoldman SachsGoogleMicrosoftTwilioYahooarray
HardInfix to PostfixAmazonPaytmSamsungVMwarearray
EasyCircular QueueInfosysMAQo9 solutionsOraclearray
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
Arrange Even and Odd number such that Odd comes after Evenarray
Minimum number of Merge Operations to make an Array Palindromearray
Form minimum number from given sequence of D’s and I’sarray
Longest span with same sum in two binary arraysarray
Find the Subarray of given length with Least Averagearray
Find Zeros to be Flipped so that number of Consecutive 1’s is maximizedarray
Merge K Sorted Arrays and Print Sorted Outputarray
Find the minimum element in a sorted and rotated arrayarray
Find the point where a monotonically increasing function becomes positive first timearray
Print all possible combinations of r elements in a given array of size narray
Sort Elements by frequencyarray
Stock Buy Sell to Maximize Profitarray
Merge Overlapping Intervalsarray
Maximum Subarray Sum using Divide and Conquerarray
Pancake sorting Problemarray
Pancake sortingarray
Arrange given numbers to form the biggest numberarray
Iterative Implementation of quick sortarray
Shuffle a given arrayarray
Find the row with maximum number of 1’sarray
Sorting a k sorted arrayarray
Maximum product subarrayarray
Largest subarray with equal number of 0’s and 1’sarray
Find the two numbers with odd occurrences in an unsorted arrayarray
Maximum sum increasing subsequencearray
Implement two stacks in an arrayarray
Number of smaller elements on right sidearray
Increasing subsequence of length three with maximum productarray
Elements appear more than n/k times in arrayarray
Find the Peak element from an arrayarray
Rearrange positive and negative numbers alternatively in Arrayarray
Find the maximum repeating number in arrayarray
Tug of Wararray
First Circular Tour to Visit all the Petrol Bunksarray
Count Possible Trianglesarray
Maximum Circular Subarray Sumarray
Four Elements that Sum to Givenarray
Maximum Length of Chain Pairsarray
Find Pair with Given Differencearray
Partition Problemarray
The Celebrity Problemarray
Find a Sorted Subsequence of size 3array
Subarray with Given Sumarray
Maximum Element in an Array which is Increasing and then Decreasingarray
Count Minimum Steps to Get the given Arrayarray
Find the Lost Element From a Duplicated Arrayarray
Rearrange given Array in Maximum Minimum Formarray
Subarray and Subsequencearray
Merge Two Sorted Arraysarray
Count of Triplets With Sum Less than Given Valuearray
Reorder Array Using Given Indexesarray
Next Greater Element in an Arrayarray
Merging Two Sorted Arraysarray
Reorder an Array According to the Given Indexesarray
Find a Fixed Point in a Given Arrayarray
Find Element Using Binary Search in Sorted Arrayarray
Find Triplet in Array With a Given Sumarray
Check if the Elements of an Array are Consecutivearray
Find Duplicates in an Array in Most Efficient Wayarray
Sort 0s 1s and 2s in an Arrayarray
Find Leaders in an Arrayarray
Smallest Positive Number Missing in an Unsorted Arrayarray
Find K Length Subarray of Maximum Averagearray
Find Pythagorean Triplets from Arrayarray
Move All the Zeros to the End of the Given Arrayarray
Find Minimum Distance Between Two Numbers in an Arrayarray
Rotate Image by 90 degreesarray
Count Number of Occurrences in a Sorted Arrayarray
Maximum Sum of Non Consecutive Elementsarray
Find Smallest Missing Number in a Sorted Arrayarray
First Repeating Elementarray
Multiplication of Previous and Nextarray
A Product Array Puzzlearray
Find All Pairs With a Given Differencearray
Find all Common Elements in Given Three Sorted Arraysarray
Find the first Repeating Number in a Given Arrayarray
Print All Distinct Elements of the Arrayarray
Maximum difference between two elements such as larger element comes after smallerarray
Majority Elementarray
Find the First and Second Smallest Elementsarray
Find the Number Occurring Odd Number of Times in an Arrayarray
Sort Elements by Frequency of Occurrencesarray
Find the Missing Numberarray
Find Nearest Greater and Smaller Elementarray
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