practice a little every day — you've got this ♡
Strings Interview Problems
Practice 5971 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.
- 5971
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 151–180 of 228 results
- StringsMediumAuto-gradedLongest Uniform Stretch With a Swap Budget
Tests efficient sliding-window reasoning to find the longest substring that can be made all one character using at most k single-character replacements.
Stringssliding-windowstringsfrequency-counting - StringsMediumModel answerExtract and Safely Parse an XML Document Nested in CDATA
Implement a function that pulls a nested XML document out of a CDATA section and reads an attribute from its root, while blocking XXE and entity-expansion attacks.
Stringsxmlsecurityparsing - StringsMediumAuto-gradedCase-Insensitive Substring Search Across a Music Catalog
Tests ability to normalize user input and apply multi-field substring filtering across a collection of structured records.
Stringsstringsfilteringcase-insensitive - StringsHardAuto-gradedSum Two Large Numbers Represented as Strings
Tests whether a candidate can implement column-by-column addition with carry logic on digit strings, without converting the whole string to a native integer.
Stringsstringsmath-bitssimulation - StringsEasyModel answerLog Ingestion Engine with Prefix-Operator Query Filtering
Build a two-phase pipeline that parses raw server log lines into structured records and filters them using a mini query language of typed prefix tokens.
Stringsparsingregexfilteringdesign - StringsEasyAuto-gradedProcess Sequential Variable Assignments
Tests parsing and evaluating variable assignments in order, handling literals, references, and arithmetic expressions.
Stringsparsingdictionaryexpression-evaluation - StringsMediumModel answerBuild a Holiday Gift Matcher from CSV Input
Parse participant data from a CSV string with quoted fields, validate entries, and create a round-robin assignment where no one gives a gift to themselves.
Stringsparsingvalidationalgorithmscsv - StringsEasyAuto-gradedTotal Palindrome Substrings in a String
Tests your ability to count every palindromic substring by expanding around centers or applying Manacher's linear-time algorithm.
Stringsstringsdynamic-programmingtwo-pointers - StringsEasyAuto-gradedFirst Longest Window of Distinct Characters
Tests whether a candidate can apply the sliding window technique with a hash map to find the earliest, longest non-repeating character run in a string.
Stringssliding-windowhash-maptwo-pointers - StringsHardAuto-gradedMinimum Prefix Extension to Form a Palindrome
Tests whether you can use the KMP failure function to find the longest palindromic prefix of a string and prepend the minimum number of characters to make it a palindrome.
Stringsstringskmppalindrome - StringsMediumAuto-gradedExtract Stock Symbols from a Text Snippet
Tests whole-word, case-insensitive multi-token matching with trie-based scanning and deduplication ordered by a reference list.
Stringsstringshashingtrie - StringsMediumAuto-gradedWidest Alphabetic Boundary Gap Across Tokens
Tests string scanning, ASCII letter detection, and single-pass maximum tracking with tie handling across whitespace-delimited tokens.
Stringsstringsscanningcase-normalizationties - StringsMediumModel answerJava String Interning, Identity, and Concatenation Costs
Trace identity vs equality across literals, `new String`, `intern`, and constant folding, then compare loop `+`, `StringBuilder`, and `StringBuffer`.
Stringsjavastring-poolimmutabilitystringbuilder - StringsMediumAuto-gradedGroup Words by Character Frequency
Tests hash map construction with canonical keys to partition strings by anagram equivalence
Stringshash-mapsortingstring-manipulation - StringsMediumModel answerPython Lists vs Tuples: Mutability, Memory, and Use Cases
Compare Python lists and tuples across mutability, memory layout, hashability, and idiomatic use, including tricky edge cases.
Stringspythondata-structuresmutabilityhashability - StringsMediumAuto-gradedLongest Window of Unique Characters
Tests whether a candidate can apply a sliding window with a character index map to find the longest contiguous run of non-repeating characters.
Stringssliding-windowhash-maptwo-pointers - StringsMediumAuto-gradedTotal Palindrome Substring Count
Tests the ability to efficiently enumerate all palindromic substrings using center expansion and handle both odd and even-length cases.
Stringspalindromestwo-pointersstring-manipulation - StringsMediumAuto-gradedReconcile Payments with Invoices Using Memo and Amount
Tests multi-pattern substring search, hash-based indexing, and greedy reconciliation with priority-based tie-breaking across two matching strategies.
Stringsstring-matchinghash-mapgreedyaho-corasick - StringsMediumAuto-gradedBuild a Token Merger with Threshold-Based Pair Consolidation
Tests implementation of a stateful tokenizer that learns merge operations by iteratively combining frequent adjacent pairs, then applies those rules to encode and decode text.
Stringstokenizationgreedystate-management - StringsMediumAuto-gradedScore Tasks From Event Log Strings
Parse "id:command" log lines, accumulate weighted scores per task with a hash map, and keep only tasks that completed.
Stringsstringshash-mapsimulationparsing - StringsMediumAuto-gradedCount Sliding Windows Matching a Step-Direction Sequence
Tests whether a candidate can reduce pairwise comparisons to a sign sequence and count all overlapping pattern matches in linear time using KMP.
Stringsstring-matchingkmparrayssliding-window - StringsEasyAuto-gradedGrid Walker: Did the Drone Return to Base?
Tests whether a candidate can simulate 2D movement on a grid and determine if a sequence of directional steps nets zero displacement.
Stringsstringssimulationmath-bits - StringsMediumAuto-gradedCheck Password Compliance and Report Violations
Tests string validation logic, character classification, case-insensitive pattern matching, and consecutive character counting.
Stringsvalidationstring-processingpattern-matching - StringsMediumAuto-gradedSliding Tokens: Valid String Transformation
Tests two-pointer traversal, sequence invariants, and directional movement constraints with O(n) time and O(1) space.
Stringstwo-pointersgreedyinvariants - StringsEasyAuto-gradedFixed-Width Substitution Cipher: Encode and Decode
Tests your ability to apply character-to-code substitution and reverse it using an inverted dictionary for O(1) chunk lookups.
Stringsstringshash-mapsimulation - StringsHardAuto-gradedGroup Anagram Chains by Transformation Distance
Tests anagram grouping combined with string parsing and multi-key sorting to build and rank clusters of anagrammatically related words from a structured input.
Stringsstringsanagram groupingsortingparsing - StringsMediumAuto-gradedHighest Frequency Letter with Alphabetical Tie-Breaking
Tests efficient character frequency counting and consistent tie-breaking using fixed-size auxiliary space.
Stringsstringsarraysfrequency-counting - StringsMediumAuto-gradedFix a Row-to-CSV Converter: Output Correctness and Efficiency
Tests whether a candidate can spot a trailing-comma output bug and a quadratic string-building performance problem, then write a correct, efficient fix.
Stringsstringsperformancejoins - StringsMediumModel answerFive Python Fundamentals: Iteration, Collections, and Edge Cases
Write five short functions covering string repetition, list transformation, FizzBuzz, word counting, and finding the second-largest unique integer.
Stringspythonfundamentalsedge-cases - StringsMediumModel answerCompile a Mini Language to Three-Address Code
Parse a small line-based language of assignments and flat if-else blocks, then emit a deterministic three-address IR with temporaries and jump labels.
Stringsparsingcompilerintermediate-representation