Smash The Bricks(NG)
Asked at Wayfair · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026
There are `n` bricks arranged in a row at positions numbered from `1` through `n`, inclusive. There is an array, `newtons[n]`, that contains an integer indicating the number of newtons required to smash a brick. (A newton is a unit of force.)
Loading the problem…
More Wayfair interview questions
- Implement a Multi-Armed Bandit Policy (Coding)
- Implement Observer Pattern in JavaScript
- Validating Magical Binary Strings with RegEx (NG)
- SQL Join Employee Salaries and Average Department Salary with Window Functions
- Number of Divisible Substrings (For MLE)
- DFS Subsequences of a String (For MLE)