s7917 / Hacktoberfest2023

This repository is made for hacktoberfest 2023. Here you can upload DSA questions in the CPP language. Leetcode , GFG , Codechef, codeforces problems are also accepted in this repository.
12 stars 124 forks source link

Lower Bound-STL #134

Open gh4aniket opened 10 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.