Skip to content

Commit 59449bd

Browse files
committed
add: #245 Find Minimum In Rotated Sorted Array
1 parent 8ac93ba commit 59449bd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)