Skip to content

Commit

Permalink
Create README - GfG to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
101rror committed Dec 13, 2024
1 parent 4295de2 commit 518e8d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Difficulty: Easy/Sorted and Rotated Minimum/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h2><a href="https://www.geeksforgeeks.org/problems/minimum-element-in-a-sorted-and-rotated-array3611/1">Sorted and Rotated Minimum</a></h2><h3>Difficulty Level : Difficulty: Easy</h3><hr><div class="problems_problem_content__Xm_eO"><p><span style="font-size: 18.6667px;">A sorted array<strong>&nbsp;</strong></span><span style="font-size: 18.6667px;">of distinct elements </span><strong style="font-size: 18.6667px;">arr[]</strong><span style="font-size: 18.6667px;">&nbsp;is rotated at some unknown point, the task is to find the minimum element in it.&nbsp;</span></p>
<p><span style="font-size: 14pt;"><strong>Examples:</strong></span></p>
<pre><span style="font-size: 14pt;"><strong>Input: </strong>arr[] = [5, 6, 1, 2, 3, 4]
<strong>Output: </strong>1
<strong>Explanation:</strong> 1 is the minimum element in the array.</span></pre>
<pre><span style="font-size: 14pt;"><strong>Input: </strong>arr[] = [3, 1, 2]
<strong>Output: </strong>1
<strong>Explanation:</strong> Here 1 is the minimum element.<br></span></pre>
<pre><span style="font-size: 14pt;"><strong>Input: </strong>arr[] = [4, 2, 3]
<strong>Output: </strong>2
<strong>Explanation:</strong> Here 2 is the minimum element.</span></pre>
<p><span style="font-size: 14pt;"><strong>Constraints</strong>:<br>1 ≤ arr.size() ≤ 10<sup>6</sup><br>1 ≤ arr[i] ≤ 10<sup>9</sup></span></p></div><p><span style=font-size:18px><strong>Company Tags : </strong><br><code>Morgan Stanley</code>&nbsp;<code>Amazon</code>&nbsp;<code>Microsoft</code>&nbsp;<code>Samsung</code>&nbsp;<code>Snapdeal</code>&nbsp;<code>Adobe</code>&nbsp;<code>Times Internet</code>&nbsp;<br><p><span style=font-size:18px><strong>Topic Tags : </strong><br><code>Searching</code>&nbsp;<code>Algorithms</code>&nbsp;

0 comments on commit 518e8d2

Please sign in to comment.