-
Updated
Nov 3, 2020 - Python
algorithms-implemented
Here are 393 public repositories matching this topic...
-
Updated
Nov 3, 2020 - Java
-
Updated
Nov 3, 2020 - Go
-
Updated
Oct 17, 2020
-
Updated
Oct 30, 2020 - C++
-
Updated
Oct 29, 2020 - C++
-
Updated
Sep 30, 2020 - C++
-
Updated
Nov 2, 2020 - Mathematica
-
Updated
Mar 30, 2019 - Go
-
Updated
Oct 31, 2020 - C++
Description of the Problem
Find a Peak Element
A peak element is an element that is greater than its neighbors.
Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
You may imagine that nums[-1] = nums[n] = -∞.
Example 1:
Input: nums =
-
Updated
Dec 5, 2017 - Java
-
Updated
Aug 19, 2020 - TypeScript
-
Updated
Oct 8, 2020 - C
-
Updated
Oct 31, 2020 - JavaScript
-
Updated
Nov 17, 2017 - Python
-
Updated
Oct 24, 2020 - C++
-
Updated
Oct 20, 2019 - C++
-
Updated
May 31, 2020 - Java
-
Updated
Oct 14, 2020 - Java
-
Updated
Dec 29, 2019 - Python
-
Updated
Mar 8, 2018 - Swift
-
Updated
Sep 2, 2020 - Pascal
-
Updated
Jul 19, 2020 - JavaScript
-
Updated
Nov 3, 2020 - C++
-
Updated
Dec 5, 2019 - Python
-
Updated
Oct 1, 2017 - Python
Improve this page
Add a description, image, and links to the algorithms-implemented topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the algorithms-implemented topic, visit your repo's landing page and select "manage topics."
This Pull Request is for HacktoberFest 2020
Description of Change
Checklist