#6832·cosmos

Incorrect Return Value in solve Function:

Author: riyagpt0251Created Mar 29, 2025Updated Mar 29, 2025

Issue: The function is intended to return the ceiling of the element ele. However, if ele is found in the array (ele == arr[mid]), the function returns ele instead of arr[mid].

algorithm_application-> binary_search->cell_of_element

#line10