Skip to content

Find the peak element in an array using Binary Search #2745

@sahil-13399

Description

@sahil-13399

An element is called a peak element if its value is not smaller than the value of its adjacent elements(if they exists).
Given an array arr[] of size N, find the index of any one of its peak elements.

For eg,

In the array {2,4,1} 4 is the peak element. We need to return the index of the peak element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions