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 questions
Call an n by n matrix A a star matrix if AB = BA for every n by n matrix B. Apart from the identity and constant multiples of the identity, can you construct a star matrix?If the data set is too large to fit in memory on one machine and you have multiple workers, how would you sort it?Related courses

Course

Course
