indrakishore / Developers-Community

Hactoberfest-2024
MIT License
12 stars 76 forks source link

Adding Finding Peak Element Problem in DSA Folder #71

Open codeforlifeee opened 4 days ago

codeforlifeee commented 4 days ago

Problem description: Problem Statement: Given an array of length N. Peak element is defined as the element greater than both of its neighbors. Formally, if 'arr[i]' is the peak element, 'arr[i - 1]' < 'arr[i]' and 'arr[i + 1]' < 'arr[i]'. Find the index(0-based) of a peak element in the array. If there are multiple peak numbers, return the index of any peak number.

Assign me this issue for Hactoberfest2024...

arjuuuuunnnnn commented 3 days ago

Hello, I request you to allow me to contribute to this repo by assigning me this issue