practice a little every day — you've got this ♡
Strings Interview Problems
Practice 5969 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.
- 5969
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 181–210 of 228 results
- StringsMediumAuto-gradedText Substitution with Whole-Word Match and Longest-Prefix Priority
Apply a phrase-to-replacement map on the original text in one pass, respecting whole-word boundaries and preferring longer matches.
Stringstriegreedystring-matching - StringsEasyAuto-gradedScale Serving Sizes in a Shopping List
Tests careful string parsing: multiply only the leading numeric token in each line while leaving the rest of the text exactly as-is.
Stringsstringsparsinglist manipulation - StringsHardAuto-gradedDetect a Contiguous Block Inside an Integer Sequence
Tests the ability to determine whether one integer array appears as an unbroken, in-order block inside a larger array using linear-time pattern matching.
StringsKMPpattern matchingarrayssubsequence - StringsHardAuto-gradedFind Next Larger Palindrome Within Digit Limit
Tests constructing the immediate successor palindrome by manipulating the left half, handling carries, length transitions, and an upper bound.
Stringspalindromesstring-manipulationgreedy - StringsMediumAuto-gradedCharacter Removal Anagram Matching
Tests string manipulation and character frequency analysis to determine if two strings can become anagrams through optional single-character removal.
Stringshash-mapcountinganagrams - StringsMediumAuto-gradedMaximum Unique Character Window Length
Tests sliding window technique with hash map indexing to efficiently find the longest substring with all distinct characters.
Stringssliding-windowhash-maptwo-pointers - StringsMediumAuto-gradedMinimum Edits to Make a String k-Palindromic
Tests the ability to combine classic edit-distance dynamic programming with palindrome structure to find the minimum single-character substitutions needed to make a string palindromic after removing exactly k characters.
Stringsstringsdynamic-programmingedit-operations - StringsMediumAuto-gradedMinimum Edit Distance to Make String a Palindrome
Tests whether a candidate can compute the minimum number of single-character insertions needed to transform an arbitrary string into a palindrome using interval DP.
Stringsstringsdynamic programmingpalindromesedit operations - StringsHardAuto-gradedMini Policy Engine: Boolean Rule Evaluation for Post Routing
Tests whether a candidate can build a recursive-descent parser for a small boolean expression language and wire it into a first-match rule dispatcher.
Stringsparsingrecursionstring processing - StringsMediumAuto-gradedTiered Identity Validation for Business Onboarding
Tests your ability to implement a sequential rule-engine with string normalization, token-set comparison, and strict short-circuit logic across three validation tiers.
Stringsstringshashingsimulation - StringsMediumAuto-gradedChunked Stream Parser and Debt Settlement
Tests buffered string parsing over an incremental data source combined with greedy net-balance clearing across a set of financial transfers.
Stringsstringsgreedy-intervalsdesign-ds - StringsMediumAuto-gradedTrending Tags in Time Window
Tests filtering by time range, frequency counting with a dictionary, and sorting with multi-level tie-breaking rules.
Stringshash-mapsortingstring-parsing - StringsEasyAuto-gradedSum Two Arbitrarily Large Signed Integers as Strings
Tests digit-by-digit arithmetic with sign handling and carry/borrow logic for adding very large signed integers represented as strings.
Stringsstring-manipulationmathdigit-arithmetic - StringsMediumAuto-gradedMaximum Unique Character Window
Tests sliding window technique with hash map to track character positions and find the longest contiguous segment with all distinct characters.
Stringssliding-windowhash-maptwo-pointers - StringsMediumAuto-gradedMinimum Edit Distance Between Two Palindromes
Tests understanding of edit distance (insert, delete, substitute) by computing the minimum operations needed to transform one palindrome into another, reinforcing dynamic programming on strings.
Stringsstringsdynamic programmingedit distancepalindromes - StringsEasyAuto-gradedCount Distinct Words in a Sentence
Tests the ability to tokenize a raw sentence string into normalized word tokens and count how many distinct words appear exactly once.
Stringsstringstokenizingparsing - StringsEasyAuto-gradedCount Distinct Morse Code Representations
Tests string encoding with a fixed mapping, hashing for deduplication, and understanding that identical encodings can arise from different inputs.
Stringshash-setstring-manipulationencoding - StringsMediumAuto-gradedIPv4 Address Checker and Builder
Tests string parsing, validation rules, and backtracking to check and generate valid IPv4 addresses from digit strings.
Stringsbacktrackingvalidationstring-processing - StringsMediumAuto-gradedMinimum Window Containing All Target Characters
Tests the ability to efficiently find the smallest substring containing all required characters using sliding window and hash tables.
Stringssliding-windowhash-maptwo-pointers - StringsMediumModel answerPlain-Text to HTML: Paragraphs, Blockquotes, and Strikethrough
Write a function that converts a plain-text string to HTML with paragraphs, soft line breaks, blockquotes, and strikethrough, handling all edge cases correctly.
Stringsparsingstring-processingtwo-pass - StringsMediumAuto-gradedFilter Files Without Write Access
Tests string parsing and bitwise permission logic to identify files that lack write permissions across all user categories.
Stringsstring-parsingfilteringpermissions - StringsMediumAuto-gradedMaximum Distinct Character Window
Tests sliding window technique with hash maps to find the longest contiguous span of non-repeating characters in a string.
Stringssliding-windowhash-maptwo-pointers - StringsEasyAuto-gradedFirst Longest Word with Even Character Count
Tests string parsing, filtering by character parity, tracking maxima with tie-breaking, and handling whitespace edge cases.
Stringsstring-manipulationlinear-scanedge-cases - StringsMediumAuto-gradedMaximum Substring Length with Character Limit
Tests sliding window technique to find the longest contiguous sequence where the number of unique characters does not exceed a threshold.
Stringssliding-windowhash-maptwo-pointers - StringsHardAuto-gradedParse Token Components Without External Libraries
Tests manual implementation of Base64URL decoding and understanding of multi-part token structure with bit-level encoding.
Stringsencodingparsingbit-manipulation - StringsEasyAuto-gradedCompress and Decompress a Run-Length Encoded String
Tests ability to implement both directions of run-length encoding: compressing a plain string into a compact form and expanding it back, handling edge cases carefully.
Stringsstringsencodingparsing - StringsEasyAuto-gradedMaximum Length of Equally Frequent Character Substring
Find the longest contiguous substring where all distinct characters appear with identical frequency.
Stringssliding-windowhash-mapfrequency-counting - StringsEasyModel answerHTTP Field Extraction with IP Address Frequency Analysis
Retrieve text fields from multiple endpoints, parse and validate IPv4 addresses, then rank them by occurrence frequency.
Stringsstring-parsinghttpvalidationfrequency-counting - StringsMediumAuto-gradedMaximum Span with Limited Character Variety
Tests ability to apply two-pointer sliding window technique with hash map tracking to efficiently find optimal substring boundaries.
Stringssliding-windowtwo-pointershash-map - StringsMediumAuto-gradedPalindromic Substring Counter
Tests ability to identify and count all palindromic substrings using center expansion and understanding of linear-time optimization techniques.
Stringspalindromestwo-pointersstring-matching