Problem 577. Repopulate the City
Solution Stats
Problem Comments
-
3 Comments
@bmtran (Bryant Tran)
on 13 Apr 2012
It looks like there's an error in the test suite; test cases 3 and 4 have different length d and n vectors.
Ned Gulley
on 13 Apr 2012
Oof! I hate it when that happens. Fixed it. Thanks for the note.
Ben Westcott
on 13 Jul 2022
Great head-scratcher!
Solution Comments
-
1 Comment
Divyanshu
on 13 Jul 2022
Interesting problem
-
1 Comment
Devin Allen
on 4 Jun 2022
great solution, manages to tie the cheat solution also at 33 :-)
Problem Recent Solvers44
Suggested Problems
-
554 Solvers
-
Create a square matrix of multiples
446 Solvers
-
Remove the two elements next to NaN value
604 Solvers
-
281 Solvers
-
Number of Even Elements in Fibonacci Sequence
967 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!