SR-Sunny-Raj / Hacktoberfest2022-for-everyone

Whether you know programming or not you can make your contribution in this repository. Raise Genuine PRs only. Your PRs will be accepted, keep patience. Star this Repo. You aren't allowed to Update README.md. Welcoming developers, content writers, and programming enthusiasts
https://sr-sunny-raj.github.io/Hacktoberfest2022-for-everyone/
MIT License
64 stars 254 forks source link

Find first and last positions of an element in a sorted array #243

Closed nischalanand closed 2 years ago

nischalanand commented 2 years ago

Given a sorted array arr[ ] with possibly duplicate elements, the task is to find indexes of the first and last occurrences of an element x in the given array.