Problem 44101. Adaptive ZigZag
Solution Stats
Problem Comments
-
1 Comment
Sorry, the logic of what the problem suggests is not very clear to me. Should the input 2D matrix be broken up in 2-by-2 matrices first, and why?
Solution Comments
-
2 Comments
@Bainhome, I believe your code cannot perform an adaptive zigzag scan of a valid 2x2 matrix due to the conditional statement implemented.
S**t, a euqal sign is forgotten...THX buddy.
-
1 Comment
What this code done to the index by using union is well-considered. Nice!
Problem Recent Solvers12
Suggested Problems
-
Rotate input square matrix 90 degrees CCW without rot90
434 Solvers
-
Generate a string like abbcccddddeeeee
246 Solvers
-
I've got the power! (Inspired by Project Euler problem 29)
97 Solvers
-
Output any real number that is neither positive nor negative
343 Solvers
-
279 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!