Ctrl K

Coding problems

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

Where the Fragment StartsTwo Pointers · String · String MatchingEasyPalindrome by Adding Letters in FrontString · String Matching · Hash FunctionHardWhole Copies of a BlockString · String MatchingEasyA Copy Inside the TreeTree · Depth-First Search · Binary TreeEasyHighlight Search HitsTrie · Array · Hash TableMediumRepeat a Word Until It FitsString · String MatchingMediumHighlight Search TermsTrie · Array · Hash TableMediumMatch After ShiftsString · String MatchingEasyCapitals Follow the PatternTrie · Array · Two PointersMediumStart That Matches the EndString · String Matching · Hash FunctionHardStrings in a Range Without a Banned WordString · Dynamic Programming · String MatchingHardWords Hidden in OthersArray · String · String MatchingEasyFirst Word With a Given BeginningTwo Pointers · String · String MatchingEasyLongest Back-to-Back RunString · Dynamic Programming · String MatchingEasyPieces in Order Inside an ArrayGreedy · Array · Two PointersMediumWords With a Given StartArray · String · String MatchingEasySuffixes Echoing the StartString · Binary Search · String MatchingHardPattern With Allowed SwapsArray · Hash Table · StringHardPeel Off a Repeated StartString · Dynamic Programming · String MatchingHardTail to the FrontMath · String · Dynamic ProgrammingHardAnchor Near a CompanionTwo Pointers · String · Binary SearchMediumWord Near an AnchorTwo Pointers · String · Binary SearchHardWord on a ConveyorString · String Matching · Hash FunctionMediumChop and AppendString · String Matching · Hash FunctionHardSpot the Price TrendArray · String Matching · Hash FunctionMediumSpot the Price Trend in a Long HistoryArray · String Matching · Hash FunctionHardBookend Word PairsTrie · Array · StringEasyFraming Word PairsTrie · Array · StringHardTarget From Word BeginningsTrie · Segment Tree · ArrayMediumPhrase From Word Beginnings, Long EditionSegment Tree · Array · StringHardFirst Window With One TypoString · String MatchingHardPattern With GapsString · String MatchingEasyShortest Match for a Two-Star PatternTwo Pointers · String · Binary SearchHardSmallest String by a Match PlanGreedy · String · String MatchingHard