sukritishah15 / DS-Algo-Point

This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
MIT License
952 stars 292 forks source link

first and last occurrence of given element in an array in log(n) time complexity #816

Open mansim3006 opened 3 years ago

mansim3006 commented 3 years ago

Solution--> using modified binary search in log(n) time complexity.

ayush8700 commented 3 years ago

can you assign this issue to me @sukritishah15

sunilgknair051 commented 3 years ago

Again, can you please pitch with explanation and example.