Skip to content
New issue

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]1095. Find in Mountain Array #82

Open
AthulKkumar opened this issue Oct 12, 2023 · 1 comment · Fixed by #84
Open

[PROBLEM]1095. Find in Mountain Array #82

AthulKkumar opened this issue Oct 12, 2023 · 1 comment · Fixed by #84
Assignees
Labels
dificulty: hard Hard difficulty problem. hacktoberfest Hacktoberfest issue. problem LeetCode problem.

Comments

@AthulKkumar
Copy link
Contributor

Difficulty

Hard

Problem Description

(This problem is an interactive problem.)

You may recall that an array arr is a mountain array if and only if:

arr.length >= 3
There exists some i with 0 < i < arr.length - 1 such that:
arr[0] < arr[1] < ... < arr[i - 1] < arr[i]
arr[i] > arr[i + 1] > ... > arr[arr.length - 1]
Given a mountain array mountainArr, return the minimum index such that mountainArr.get(index) == target. If such an index does not exist, return -1.

You cannot access the mountain array directly. You may only access the array using a MountainArray interface:

MountainArray.get(k) returns the element of the array at index k (0-indexed).
MountainArray.length() returns the length of the array.
Submissions making more than 100 calls to MountainArray.get will be judged Wrong Answer. Also, any solutions that attempt to circumvent the judge will result in disqualification.

Link

No response

@AthulKkumar AthulKkumar added hacktoberfest Hacktoberfest issue. problem LeetCode problem. labels Oct 12, 2023
@AthulKkumar
Copy link
Contributor Author

Can I get assigned this

@godkingjay godkingjay added the dificulty: hard Hard difficulty problem. label Oct 12, 2023
@godkingjay godkingjay linked a pull request Oct 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dificulty: hard Hard difficulty problem. hacktoberfest Hacktoberfest issue. problem LeetCode problem.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants