Bloomberg·Software Engineer·Technical Phone Screen
- Implement a simplified grep utility that takes a pattern, a list of lines, and optional flags (case-insensitive, line numbers, invert match) and returns the matching lines in order.
“The problem itself isn't hard but I spent too long on the actual matching logic and not enough on the flag abstraction layer, which is clearly what they cared about.”