ankitapuri / DSA-guide

Trying to cover important DSA
MIT License
49 stars 114 forks source link

Recursion/ Divide and Conquer- Find peak element #284

Open pri1311 opened 3 years ago

pri1311 commented 3 years ago

Is your feature request related to a problem? Please describe. https://leetcode.com/problems/find-peak-element/ A peak element is an element that is strictly greater than its neighbors.

Given an integer array nums, find a peak element, and return its index. If the array contains multiple peaks, return the index to any of the peaks. Difficulty: medium

Describe the solution you'd like

Describe alternatives you've considered

Additional context

pri1311 commented 3 years ago

Please assign this to me under crosswoc for C++

Akash20x commented 3 years ago

I want to solve this in python

abhinav5481 commented 3 years ago

Hi @ankitapuri I would like to solve it in Java Script. Please assign it to me in Java