[PR #621] [CLOSED] feat: add solution for leetcode problem 162 #1075

Open
opened 2026-01-29 15:17:21 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/621
Author: @PalAditya
Created: 10/1/2020
Status: Closed

Base: masterHead: master


📝 Commits (4)

📊 Changes

3 files changed (+51 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
📝 leetcode/README.md (+1 -0)
leetcode/src/162.c (+49 -0)

📄 Description

Description of Change

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass - N/A, since I don't see any tests or main functions written for the leetcode folder. This passes on their platform of course
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:
This solves problem 162 in leetcode, which is of finding a local minima


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/621 **Author:** [@PalAditya](https://github.com/PalAditya) **Created:** 10/1/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`77dfe3d`](https://github.com/TheAlgorithms/C/commit/77dfe3dfd38e93c22ff256136c2a48286a922f4d) Added solution for leetcode problem 162 - Find peak element - [`5f7041a`](https://github.com/TheAlgorithms/C/commit/5f7041a478c2e2fa2521a97806535334961a8e40) updating DIRECTORY.md - [`296007c`](https://github.com/TheAlgorithms/C/commit/296007c2bfceaa61a106eec97c2128b812cc9317) Update comments to Javadoc style - [`0305081`](https://github.com/TheAlgorithms/C/commit/03050814b2b076f3aece2f0e699685de232cab18) Merge branch 'master' of https://github.com/PalAditya/C ### 📊 Changes **3 files changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) 📝 `leetcode/README.md` (+1 -0) ➕ `leetcode/src/162.c` (+49 -0) </details> ### 📄 Description #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - N/A, since I don't see any tests or main functions written for the leetcode folder. This passes on their platform of course - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> This solves problem 162 in leetcode, which is of finding a local minima <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/621"><img src="https://gitpod.io/api/apps/github/pbs/github.com/PalAditya/C.git/03050814b2b076f3aece2f0e699685de232cab18.svg" /></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:17:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1075