House Segments After Destruction
Meta interview questions · Hard · Coding round · 6 tests
After each destroyed house, report how many contiguous house segments remain on the street.
The full question, tests and reference solution are available with a plan that includes Meta.
Run your code with Ctrl+Enter to see results.