Ctrl K

Coding problems

Algorithm problems with tests in Python, JavaScript, Java, Go and C++, checked on our server.

Merge Many Sorted ChainsLinked List · Divide and Conquer · Heap (Priority Queue)HardK-th Highest ScoreArray · Divide and Conquer · QuickselectMediumCity Block OutlineBinary Indexed Tree · Segment Tree · ArrayHardMoving Window MaximumQueue · Array · Sliding WindowHardStudios for Recording SessionsGreedy · Array · Two PointersMediumNumbers Made of Twos, Threes and FivesHash Table · Math · Dynamic ProgrammingMediumK Keys Nearest to a TargetStack · Tree · Depth-First SearchHardMost Common ValuesArray · Hash Table · Divide and ConquerMediumEqual Letters Kept ApartGreedy · Hash Table · StringHardLightest Pair SumsArray · Heap (Priority Queue)MediumK-th Smallest in a Sorted GridArray · Binary Search · MatrixMediumRain Pools on a Relief MapBreadth-First Search · Array · MatrixHardHarden the PasswordGreedy · String · Heap (Priority Queue)HardCharacters Grouped by CountHash Table · String · Bucket SortMediumMoving Window MedianArray · Hash Table · Sliding WindowHardBall Into the HoleDepth-First Search · Breadth-First Search · GraphHardGrowing Capital Project by ProjectGreedy · Array · SortingHardShortest Path of a Rolling BallDepth-First Search · Breadth-First Search · GraphMediumMedals and PlacesArray · Sorting · Heap (Priority Queue)EasyJobs With a CooldownGreedy · Array · Hash TableMediumMost Orders by Their DeadlinesGreedy · Array · SortingHardNarrowest Range Touching Every ListGreedy · Array · Hash TableHardNearest k ValuesArray · Two Pointers · Binary SearchMediumSorted Into Runs of ThreeGreedy · Array · Hash TableMediumTrim the Bushes, Shortest FirstBreadth-First Search · Array · MatrixHardA Dark Gap Between Street LampsBinary Indexed Tree · Segment Tree · QueueHardMost Searched WordsTrie · Array · Hash TableMediumBroadcast Reach TimeDepth-First Search · Breadth-First Search · GraphMediumNo Twin Letters Side by SideGreedy · Hash Table · StringMediumCrossing at High TideDepth-First Search · Breadth-First Search · Union FindHardRanked Prime RatiosArray · Two Pointers · Binary SearchMediumCheapest Trip With Few LayoversDepth-First Search · Breadth-First Search · GraphMediumCrew Paid by SkillGreedy · Array · SortingHardShortest Stretch Reaching a TotalQueue · Array · Binary SearchHardFuel Stops Along the WayGreedy · Array · Dynamic ProgrammingHardCheckpoints Within ReachGraph · Shortest Path · Heap (Priority Queue)HardHand-Rolled SortArray · Divide and Conquer · Bucket SortMediumNearest Points to the BaseGeometry · Array · MathMediumBoulder CrusherArray · Heap (Priority Queue)EasySpread Out the LabelsGreedy · Array · Hash TableMediumCouriers Grab ScootersArray · Sorting · Heap (Priority Queue)MediumAverage of the Best FiveArray · Hash Table · SortingEasyShuttle Seat PlanArray · Prefix Sum · SortingMediumRoute With the Highest BottleneckDepth-First Search · Breadth-First Search · Union FindMediumThe Cheapest Road NetworkUnion Find · Graph · Minimum Spanning TreeMediumSplicing RopesGreedy · Array · Heap (Priority Queue)MediumWater for the Whole VillageUnion Find · Graph · Minimum Spanning TreeHardSparse Ones in a GridGreedy · Math · SortingHardCloning BuildersGreedy · Array · MathHardA Crate in the WarehouseBreadth-First Search · Array · MatrixHard
1 of 4 · 167 problems