Skip to content

Commit c5ae96b

Browse files
committed
add solution for find minimum in rotated sorted array
1 parent 21ad745 commit c5ae96b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//맨뒤 요소 맨앞으로
2+
import java.util.*;
3+
4+
5+
class Solution {
6+
public int findMin(int[] nums) {
7+
Arrays.sort(nums);
8+
return nums[0];
9+
}
10+
}
11+

0 commit comments

Comments
 (0)