Topic
Strings interview problems
Parsing, matching, palindromes and string transforms. 227 original problems, each with hidden test cases you can run in the browser.
60 easy154 medium13 hard
Showing 211–227 of 227 results
Build a memory-efficient Python generator that parses log records with timestamps and key-value pairs, handling quoted strings with escapes.
Model answerparsinggeneratorsstring-processingtext-processingTests whether a candidate can count the minimum number of single-character insertions or deletions needed to transform a string into any palindrome.
Auto-gradedstringsdynamic programmingedit operationsTests string manipulation and numeric logic to determine if a number is palindromic and compute the next larger palindrome efficiently.
Auto-gradedpalindromestring-manipulationgreedyTests whether candidates can implement a precise single-pass parser that accepts only well-formed integers, decimals, and scientific notation strings.
Auto-gradedstringsparsingtwo-pointersTests basic control flow, modular arithmetic, and string formatting by transforming numbers according to divisibility conditions.
Auto-gradedconditionalsmoduloiterationTests recursive parsing, the distributive property of multiplication over addition, and constructing expanded expressions from nested operations.
Auto-gradedparsingrecursionstring-manipulationTests sliding window technique with character frequency tracking to find the smallest substring containing exactly k distinct characters.
Auto-gradedsliding-windowhash-maptwo-pointersRemove all paths that match or fall under any deletion target in a hierarchical filesystem-like structure.
Model answertrieprefix-matchingstring-processingTests hash-based frequency counting for strings and grouped numeric aggregation with exact average comparison.
Auto-gradedhash-mapstring-manipulationaggregationTests prefix-tree construction, greedy string scanning, and longest-match selection for token-based text transformation.
Auto-gradedtriegreedystring-processingTests the ability to parse and expand a run-length encoded string that contains arbitrarily nested bracket groups, combining stack-based parsing with string manipulation.
Auto-gradedstringsparsingstackrun-length encodingTests the ability to tokenize a raw arithmetic string into numbers and operators, then evaluate left-to-right respecting only + and - operations.
Auto-gradedstringstokenizingparsingTests whether a candidate can reduce a multi-length sliding-window problem to a single window size and efficiently track distinct-character counts.
Auto-gradedsliding-windowhash-mapstringsTests understanding of palindromic structure by finding the minimum characters to append to a string to make the whole string a palindrome.
Auto-gradedstringspalindrometwo pointersTests the sliding window pattern with frequency counting to find the shortest substring of one string that covers every character (with multiplicity) of another.
Auto-gradedsliding-windowhash-maptwo-pointersTests anagram-grouping on structured strings with a prefix/suffix schema, requiring careful key extraction, normalization, and tie-breaking for sorted output.
Auto-gradedstringsanagram groupingsortingparsingTests the ability to canonicalize strings into sorted-character keys and cluster words that are anagrams of each other, with a precise tie-breaking rule for deterministic output.
Auto-gradedstringsanagramshash mapsorting