Find Smallest Element Greater Than Target | Algorithm
Find Smallest Element Greater Than Target
Coding Challenge · BEGINNER
Given a sorted array of integers and a target integer, write a function to find the smallest element in the array that is greater than the target. If no such element exists, return -1.