We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9efe879 commit 938bc57Copy full SHA for 938bc57
find-minimum-in-rotated-sorted-array/YoungSeok-Choi.java
@@ -0,0 +1,13 @@
1
+// NOTE: 문제에서 반드시 log n 복잡도의 알고리즘을 작성하라고 했는데.. 맞았다..
2
+// 이런걸 묻는건지... 다른 풀이 코드 보면서 복기가 필요함..
3
+class Solution {
4
+ public int findMin(int[] nums) {
5
+ int min = 9876521;
6
+
7
+ for(int i = 0; i < nums.length; i++) {
8
+ min = Math.min(min, nums[i]);
9
+ }
10
11
+ return min;
12
13
+}
0 commit comments