Does lower_bound and upper_bound work with unsorted arrays also?
Does lower_bound and upper_bound work with unsorted arrays also?
Yes this will work only for sorted arrays.
1 Like
Does lower_bound and upper_bound work with unsorted arrays also?
Yes this will work only for sorted arrays.