Skip to main content
All Questions

A binary matrix marks a shape with 1s. From a start cell inside it, how do you set every cell of the shape to 0, and how would you do it with multiple threads?

Unlock detailed company stats for this questionUpgrade
A binary matrix draws a duck: cells inside the duck are 1 and cells outside are 0. Given a start cell inside the duck, how do you set every cell of the duck to 0? How would you write this so it runs with multiple threads?

Community answers

No answers contributed by the community yet.

Related courses

Course

SQL Interview Prep Course

Prepare for SQL interviews with lessons on joins, aggregations, and window functions, then practice real SQL interview questions in an interactive editor with expert solutions.

Course

Data Science Interview Prep

Land your dream data science role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates. Practice statistics, experimentation, coding, SQL, machine learning, behavioral interviews, and more.