JavaScript String Interviews
12 lessons. Understand JavaScript strings, build reliable solutions, and explain the tradeoffs.
For learners who know variables, loops, and functions. Written lessons, at your own pace.
Both language courses are included in the course purchase.
01JavaScript’s string modelExplain immutability and UTF-16 indexing, distinguish code units from code points, and choose the correct iteration model.Free preview02Slicing, searching, and replacementUse half-open slices, recognize search failure values, and distinguish literal, global, and pattern-based replacements.Free preview03Classification, casing, and equalityChoose strict equality and explicit character classes, normalize only when required, and avoid accidental numeric coercion.Course04Building strings and measuring workAccount for copying and output size, use arrays to collect parts, and avoid confusing mutation of arrays with immutable strings.Course05Maps, sets, and stable countsUse Map for arbitrary string keys, Set for membership, and insertion order to produce stable output without accidental object-key behavior.Course06Two pointers and reduction stacksWrite loop invariants for inward scans, distinguish pointer state from stack state, and explain why adjacent-removal problems need history.Course07Fixed and variable sliding windowsMaintain window counts incrementally, shrink only when the invariant requires it, and preserve explicit tie-breaking rules.Course08Parsing text without evaluationBuild explicit state machines for quoting and escaping, decode structured fields safely, and treat parsed names as data.Course09Grouping and numeric-safe sortingChoose canonical grouping keys, avoid ambiguous signatures, and sort large numeric strings without losing precision.Course10Searching, prefixes, and shared structureDistinguish built-in search from guaranteed-linear matching, use prefix tables for overlap, and explain trie-based dictionary scanning.Course11Greedy choices and dynamic programsDefine suffix or prefix states, choose between a proven greedy rule and dynamic programming, and include output and arithmetic bounds.Course12A complete JavaScript interview walkthroughClarify a contract, develop a baseline, justify memoization, test independently, and explain output-sensitive complexity.Course
Learn it. Then put it to work.
Pair the course with 40 JavaScript challenges, progressive hints, and worked solutions.
Explore the complete bundle