We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ac93ba commit 59449bdCopy full SHA for 59449bd
find-minimum-in-rotated-sorted-array/sukyoungshin.ts
@@ -0,0 +1,6 @@
1
+// 1. Brute-force (시간복잡도: O(n))
2
+function findMin(nums: number[]): number {
3
+ return Math.min(...nums);
4
+};
5
+
6
+// 2 Binary Search (시간복잡도: O(log n))
0 commit comments