Print a two-dimensional array, according to the clockwise outside-in plus one step by step.


  • 0
    J

    Print a two-dimensional array, according to the clockwise outside-in plus one step by step。like this:
    1 2 3 4
    12 1314 5
    11 1615 6
    10 9 8 7
    I met this question In my alibaba's interview.


  • 0

    This makes zero sense without knowing the input array that led to that output.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.