We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem Description:
You are given an integer mountain array (arr) of length n where the values increase to a peak element and then decrease.
Return the index of the peak element.
Your task is to solve it in O(log(n)) time complexity.
Example 1:
Input: arr = [0,1,0]
Output: 1
Example 2:
Input: arr = [0,2,1,0]
Constraints:
3 <= arr.length <= 105 0 <= arr[i] <= 106
The text was updated successfully, but these errors were encountered:
Thank you for raising a issue, Hope you enjoing the open source. we try to reply or assign as soon possibe. Connect with mentor.
Sorry, something went wrong.
Hi @Saloni6111 I would like to implement cpp solution of this Problem . Please assign this problem to me
@Saloni6111 Is there any issue in problem ?
No branches or pull requests
Problem Description:
You are given an integer mountain array (arr) of length n where the values increase to a peak element and then decrease.
Return the index of the peak element.
Your task is to solve it in O(log(n)) time complexity.
Example 1:
Input: arr = [0,1,0]
Output: 1
Example 2:
Input: arr = [0,2,1,0]
Output: 1
Constraints:
3 <= arr.length <= 105
0 <= arr[i] <= 106
The text was updated successfully, but these errors were encountered: