Topic
Strings interview problems
Parsing, matching, palindromes and string transforms. 228 original problems, each with hidden test cases you can run in the browser.
60 easy155 medium13 hard
Showing 121–150 of 228 results
Tests the ability to reframe a quadratic substring enumeration into a pair-centric counting problem with geometric weight calculations.
Auto-gradedcombinatoricsstring-algorithmsoptimizationTests ability to decompose integers into groups and translate numeric values into properly formatted English text with correct scaling terms.
Auto-gradedrecursionmathstring-formattingUse a hash set to test every split point of each word, reporting words formable as two distinct list entries, sorted.
Auto-gradedhash-setstringssortingenumerationTests implementation of efficient string matching and understanding of linear-time pattern search algorithms.
Auto-gradedstring-matchingkmppattern-searchTests sliding window technique with character frequency tracking to find the smallest substring that satisfies multiplicity constraints.
Auto-gradedsliding-windowtwo-pointershash-mapWrite a configurable validator that flags missing fields, length violations, banned words, and low name-word overlap across CSV vendor rows.
Model answercsv-parsingvalidationregextext-normalizationTests multi-rule sequential validation over CSV rows: field presence, tax ID format normalization, and fuzzy owner name matching via token overlap.
Auto-gradedstringsparsingvalidationTests whether a candidate can group consecutive identical characters into runs and use adjacent run lengths to efficiently count valid balanced substrings.
Auto-gradedstringstwo-pointersrun-length-encodingWrite a strict POSIX sh script that validates arguments, reads a file, extracts a license string, and prints a formatted timestamped line.
Model answershellPOSIXCLIerror-handlingTests whether you can implement a precise per-letter color-scoring rule — including count-limited yellow matching — across a list of guesses against a fixed target word.
Auto-gradedstringsarrayshashingTests whether a candidate can design a lossless encode/decode round-trip for arbitrary strings without relying on a fixed delimiter character.
Auto-gradedstringsserializationencodingSwap at most two digits in a non-negative integer to achieve the largest possible result.
Model answergreedystring-manipulationoptimizationTests run-length encoding with multi-digit counts split into individual characters, requiring careful pointer management and constant-space thinking.
Auto-gradedtwo-pointersrun-length-encodingin-placeTests implementation of grade-school multiplication on arbitrarily large integers represented as strings without using built-in big integer operations.
Auto-gradedmathsimulationarray-manipulationTests fixed-size sliding window technique with O(1) per-step character-count bookkeeping to locate the leftmost permutation of a pattern inside a longer string.
Auto-gradedsliding-windowhash-maptwo-pointersParse multi-file request logs to extract and rank the five IPv4 addresses that generated the most completed HTTP requests.
Model answerparsingregexaggregationtop-kTests whether you can use a canonical character-frequency key and a hash map to partition a list of strings into anagram groups in linear time.
Auto-gradedhash-mapstringsanagramsDesign a pipeline that parses CSV transaction records, normalizes fields, validates data integrity, and segregates malformed entries.
Model answerdata-validationparsingerror-handlingTests whether a candidate can scan a string and tally exact, case-sensitive matches for a given character, including edge cases like empty input and repeated characters.
Auto-gradedstringscountingcase-sensitivityTests whether a candidate can decode digit counts from a scrambled multiset of English number-word letters using systematic letter-frequency elimination.
Auto-gradedstringshash-mapgreedy-intervalsTests recursion with constraint-based pruning to construct valid nested bracket strings without generating invalid candidates.
Auto-gradedrecursionbacktrackingcombinatoricsBuild a transaction filter that evaluates accept/block rules in sequence, supporting field equality, boolean logic, AND/OR operators, and parentheses.
Model answerparsingstring-matchingoperator-precedencetokenizationWrite a from-scratch CSV tokenizer and data structure for downstream consumers, then extend it to handle rows with missing or extra fields.
Model answerparsingcsvstring-manipulationerror-handlingTests whether a candidate can avoid brute-force pair comparison by exploiting bounded digit counts to match prefixes efficiently with a hash set.
Auto-gradedstringsarrayshashingDesign and implement a configurable validator that flags per-field rule violations and excessive word overlap across fields in a company CSV.
Model answercsv-parsingvalidationstring-normalizationrule-engineTests manual digit-by-digit addition with carry propagation on arbitrarily large integers stored as strings.
Auto-gradedstring-manipulationmathsimulationTests whether two strings establish a valid one-to-one character correspondence at each position.
Auto-gradedhash-maptwo-pointersbijectionTests two-pointer logic and palindrome verification to compute the fewest replacements that transform every fixed-size segment into a palindrome.
Auto-gradedtwo-pointerspalindromegreedyTests whether every contiguous substring of length 3 or more in a given string can be rearranged to match some dictionary word.
Auto-gradedanagramsprefix-sumhashingTests understanding of counting sort for a fixed alphabet, achieving linear time complexity instead of comparison-based sorting.
Auto-gradedcounting-sortstring-manipulationlinear-time