Coding Topic
Greedy OA Questions
Practice 731+ Greedy coding questions from real online assessments. Filter by company, solve in the OAHelper editor, and prepare for company-wise OAs.
QuestionCompanyDifficulty
Synchronising the Guardians at Full StrengthsliceHardFewest Adjacent Swaps to a Peak ArrangementsliceMediumLeast Toll Time Across CheckpointssliceMediumRaising Every Reading to the PeakinfosysMediumDual-Feature Model Coverage BudgetsvisaMediumLargest Maximum-Digit-Sum Number Below NhsbcMediumMaximum-Length Palindromic Sales Listmorgan stanleyMediumSmallest Rearrangement With No Equal Neighboursmorgan stanleyMediumMinimum Rounds to Clear an Array by Pairs and TriplesvisaMediumMaximum Children Receiving Exactly Eight DollarsmongodbMediumMaximum Rating Booksmorgan stanleyMediumLexicographically Smallest Closed Walk in a GridgoogleHardMembership Plan Billing OrdertescoMediumCandy Distribution Along the LineamazonHardMatching One-Step Rotationsgoldman sachsMediumPick Three, Keep the Mediangoldman sachsMediumServing Students from Groups of Consecutive GaccentureMediumApple Boxesmorgan stanleyMediumLongest Valid SubstringmicrosoftMediumMinimum Cost to Water the GardentescoMediumAlphabetically Smallest Palindrome After Fewest ChangesgoogleMediumAssign Cookies with Matching ParityinfosysMediumShortest Business Relationship PathtescoMediumMinimum Compartments to Light in the SumoLand MetroopentextMediumMinimum Time To Implement All FeatureschubbMediumHidden Benchmark ValuetescoMediumJump Game ReachabilityamazonMediumMaximum Palindromes After Cross-String Letter SwapsmicrosoftMediumChain Square Directed Tree Splitsiemens edaMediumMinimum Possible Beauty of a Partition Into k SubarraysrystadMediumMaximum Pairs Where One Member Divides A and the Other Divides BinfosysMediumStock Trading with Cooldown and Priority PassesinfosysMediumBreak the Bricksmorgan stanleyMediumLexicographically Smallest Flight Codemorgan stanleyMediumProcesses Served From a Fixed RAM Budgetmorgan stanleyMediumLongest Positive Prefix After Rearranging an ArraymicrosoftMediumMinimum Beauty After Splitting an Array Into K BlocksmicrosoftMediumMinimum Queue JumpskickdrumMediumCover An Address Range With The Fewest CIDR BlockscmartMediumMinimum Strikes to Neutralize a Server FleetcredMediumMaximum Length Subarray Of ZerosgoogleMediumSubtree XOR RerootinggoogleMediumFirst Subsequence Occurrence With One Allowed EditgoogleMediumMaximum Length Zero SubarraygoogleMediumEarliest Slot for the New MeetingvisaMediumFishing With Reusable BaitsvisaMediumLibrary Insurance Value TrackervisaMediumMinimum Payload for a Dual Cache Warm-UporacleMediumMaximum Chocolates Eaten in a DayporterMediumMaximum Perks ItemsionMedium