[코딩테스트] 나선형 순회 spiralTraversal (JavaScript)
문제 설명 Take a two-dimensional array(i.e., an array containing many arrays of equal length) and return all the values in the array. 조건 The spiral turns clockwise (start left -> right) All elements of an array contain only numbers Empty arrays are not entered Based on the entire two-dimensional array, there are no identical elements(the same number). 예시 spiralTraversal([ [1,2,3], [4,5,6], [7,8,9] ]..
2022. 2. 7.