54. Spiral Matrix
Problem's Link
----------------------------------------------------------------------------
Mean:
顺时针漩涡状打印二维数组的值.
analyse:
控制四个边界即可.
Time complexity: O(N)
view code
);
);
;
)
));
;;;
}
/*
);
;
)
));
;;;
}
/*
*/
----------------------------------------------------------------------------
Mean:
顺时针漩涡状打印二维数组的值.
analyse:
控制四个边界即可.
Time complexity: O(N)
view code
*/