Elastic·Software Engineer·Technical Phone Screen
May 2026
Elastic N.V. full-stack round that was basically one extended debugging exercise on a JavaScript flatten implementation. Not a bad experience, just a lot more nuance than I expected from what looked like a simple coding problem.
- You're given a buggy JavaScript implementation of a flatten function that recursively flattens nested arrays. Find and fix all the bugs, covering issues like missing recursion on non-array elements, incorrect concat usage, input mutation, and infinite recursion on circular references.
“The circular reference part is what got me.”