diff --git a/src/main/java/Array/FindMinimumInRotatedSortedArray.java b/src/main/java/Array/FindMinimumInRotatedSortedArray.java new file mode 100644 index 0000000..3d0d097 --- /dev/null +++ b/src/main/java/Array/FindMinimumInRotatedSortedArray.java @@ -0,0 +1,18 @@ +package Array; + +public class FindMinimumInRotatedSortedArray { + public int findMin(int[] nums) { + int left = 0; + int right = nums.length-1; + while (left