Software Engineer
Software Engineer
High QualityInterview Summary
The coding round started with a simplified version of LeetCode 1209 — Remove All Adjacent Duplicates in String II and then expanded into several engineering-oriented follow-ups.
2nd coding is about to build a small Lisp-style expression parser.
Interview Details
Coding — Remove Adjacent Duplicate Groups Given a string, repeatedly remove any group of exactly three adjacent identical characters and return the final remaining string. The initial version fixed the group size at: k = 3. The interviewer also asked about edge cases and expected the implementation to handle repeated removals correctly.
-
Follow-Up — Generalize the Group Size Instead of always removing groups of three, change the interface so that
kis supplied as an input parameter. The same removal behavior should work for arbitrary valid values ofk. -
Follow-Up — Production Crash Investigation Assume this logic is deployed
Unlock Full Details
Create a free account to unlock this interview experience report.