Problem 44101. Adaptive ZigZag
Solution Stats
Problem Comments
-
1 Comment
yurenchu
on 25 Apr 2017
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
J. S. Kowontan
on 26 May 2018
@Bainhome, I believe your code cannot perform an adaptive zigzag scan of a valid 2x2 matrix due to the conditional statement implemented.
bainhome
on 26 May 2018
S**t, a euqal sign is forgotten...THX buddy.
-
1 Comment
bainhome
on 2 Aug 2018
What this code done to the index by using union is well-considered. Nice!
Problem Recent Solvers12
Suggested Problems
-
Selecting books on MATLAB for experts and beginners (blindfolded)
69 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
6958 Solvers
-
330 Solvers
-
5503 Solvers
-
I'm going to enjoy watching you calculate, Mr Anderson
34 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!