Parsing practice problems
Turn raw input someone typed into values you can trust. A concept: the material itself — what it is, and what it costs you to use. 21 problems in the bank train it, each with a worked example, a hint and a reference solution.
- Math
- Strings
- Arrays
- Hash maps
- Sorting
- Parsing
- Two pointers
- Sliding window
- Prefix sums
- Stacks
- Binary search
- Intervals
- Grids
- Greedy
- Recursion
- Simulation
- Bit manipulation
21 problems
- Initials for an avatareasy
- Tidy up pasted texteasy
- Hide most of an email addresseasy
- Read a quantity someone typedeasy
- Reverse the order of the wordseasy
- How long is this event in minuteseasy
- Split one CSV line properlyhard
- Wrap text to a label widthhard
- Compare two version stringshard
- Evaluate a formulahard
- Tidy up a file pathhard
- Turn a product title into a URL slugmedium
- Cut a description to lengthmedium
- Count the words that mattermedium
- Title-case a headingmedium
- Read a duration a human typedmedium
- Count log lines by levelmedium
- Normalise a phone numbermedium
- Evaluate a postfix expressionmedium
- The most repeated wordmedium
- Replay a log that can take it backmedium