This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
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
Solution--> using modified binary search in log(n) time complexity.