panditakshay402 / Hacktoberfest2023

Join the Hacktoberfest 2023 fun! Contribute to this repo 🚀 and earn cool swag 😎 while improving open-source projects. 🌟
88 stars 338 forks source link

Lower Bound-STL #270

Closed gh4aniket closed 9 months ago

gh4aniket commented 10 months ago

PROBLEM LINK - https://www.hackerrank.com/challenges/cpp-lower-bound/problem?isFullScreen=true

You are given N integers in sorted order. Also, you are given Q queries. In each query, you will be given an integer and you have to tell whether that integer is present in the array. If so, you have to tell at which index it is present and if it is not present, you have to tell the index at which the smallest integer that is just greater than the given number is present.

gh4aniket commented 10 months ago

Please assign this issue to me.