581 1 [LeetCode] 자바 581. Shortest Unsorted Continuous Subarray 문제는 '정렬되지 않은 부분을 찾아라' 입니다 첫번째. class Solution { public int findUnsortedSubarray(int[] nums) { int[] sortedArray = new int[nums.length]; sortedArray = nums.clone(); Arrays.sort(sortedArray); int startIndex = 0; int finishIndex = 0; boolean first = false; for(int i =0; i 2020. 8. 11. 이전 1 다음