Problem 42290. GJam 2015 Rd1B: Noisy Neighbors
Solution Stats
Problem Comments
-
1 Comment
There is no need to test all cases. The ideal case is a swiss cheese in which no guest share a wall. Just start filling rooms from there if needed (the only problems is that room filling must follow an order, which makes the code quite large (but repetitive and boring), and there are two base cases for the swiss cheese structure). Maybe it's possible to create a function and decrease code size, but unless you see it at the moment that you are coding it, it would mean loosing too much time during competition when a Ctrl+C, Ctrl+V would be faster (and better than testing all cases).
Solution Comments
Show commentsProblem Recent Solvers10
Suggested Problems
-
24213 Solvers
-
100 Solvers
-
Magic is simple (for beginners)
7057 Solvers
-
Count consecutive 0's in between values of 1
330 Solvers
-
07 - Common functions and indexing 1
410 Solvers
More from this Author260
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!