export function twoSum(
numbers: number[],
target: number,
): [number, number] {
// Your implementation here.
throw new Error('TODO');
}TypeScript Interview Sprint
Your interview is close.
Give your practice a plan.
Skip the endless question bank. Refresh eight pattern families with 15 TypeScript exercises in seven or 14 days, using your own editor and terminal.
60% off with code 60CUTS. Code included in the checkout link.
Get all 15 exercises → Prefer a full page? Open hosted checkout ↗Made for a focused refresher
You already know basic TypeScript. You need Bun 1.2+, a terminal, and an editor on macOS, Linux, or Windows.
Download and practise locally
Get starter files, tests, staged hints, a pattern guide, two plans, and progress tracking. Complete solutions are not included.
One purchase, your own files
No subscription or practice account. Your code and progress stay on your computer. See the workflow.
Quality of practice, not problem count
Practice recognizing the pattern, not remembering yesterday’s answer.
Choose one exercise, attempt it under time, use a hint only when needed, then return after a scheduled gap.
two-sum: Two Sum (core · 20 min)
Attempt started. Open solution.ts in your editor.
✗ returns indices whose values add to the target
What value would complete the current number to reach the target?
✓ Tests passed. Solved with help. Review scheduled.
Two Sum
Return the indices of two different values whose sum equals the target.
Recognition cue
You need a pair and can derive the missing value while scanning once.
A route you can finish
Open the folder. Know what to practice next.
typescript-interview-sprint/
- ├── GETTING-STARTED.md
- ├── 7-DAY-SPRINT.md
- ├── 14-DAY-SPRINT.md
- ├── PATTERNS.md
- ├── problems/ 15 exercises
- ├── progress/ local JSON
- └── src/cli/grind.ts
No daily selection problem
Follow a seven-day or 14-day route instead of deciding among hundreds of questions.
Feedback in your terminal
Run typed starter code against tests without learning another browser workspace.
Repeat after a real gap
Reviews return after 1, 3, 7, 14, and 30 days to test retrieval.
Your work stays yours
Your solutions, notes, and progress stay in the downloaded folder.
Use this when
Your coding round is approaching and you want a small, structured refresher.
Do not buy this for
Learning TypeScript from zero or preparing the complete frontend interview loop.
Reasonable objections
Know exactly what this replaces, and what it does not.
Why not use a free question bank?
Use one when you want breadth. This pack is for a short deadline: a fixed route, local TypeScript files, tests, hints, and scheduled review without choosing the next problem.
Will 15 exercises make me interview-ready?
No product can guarantee that. These exercises refresh eight common pattern families. They do not cover every question or every interview format.
Are complete solutions included?
No. You receive starters, tests, reflection prompts, and three staged hints. The goal is to retrieve an approach, not copy one.
What do I need?
You should already know basic TypeScript. You also need macOS, Linux, or Windows, Bun 1.2 or later, and any text editor.
Does this cover frontend interviews?
Only the coding-pattern portion. It does not cover React, user-interface coding, browser APIs, system design, behavioral rounds, or company-specific questions.
What support is included?
Support covers broken downloads, installation defects, incorrect tests, and reproducible command errors. It does not include coaching or solution review.
Built by Syahril Pratama
A small practice pack with a clear scope.
Published by Syahril Pratama Solution. Support covers download, installation, test, and command defects. It does not include coaching or solution review.
Start your sprint
Know what to practise next.
Get the full set of 15 exercises and follow a seven-day or fourteen-day plan.
Watch the demo before you buy ↗60% off with code 60CUTS. Code included in the checkout link.
Get all 15 exercises → Prefer a full page? Open hosted checkout ↗