Find Smallest Letter Greater Than Target Solutions in GoNumber 744Difficulty EasyAcceptance 45.4%Link LeetCodeOther languages —SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func nextGreatestLetter(letters []byte, target byte) byte { low, high := 0, len(letters)-1 for low <= high { mid := low + (high-low)>>1 if letters[mid] > target { high = mid - 1 } else { low = mid + 1 } } find := letters[low%len(letters)] if find <= target { return letters[0] } return find}package leetcode func nextGreatestLetter(letters []byte, target byte) byte { low, high := 0, len(letters)-1 for low <= high { mid := low + (high-low)>>1 if letters[mid] > target { high = mid - 1 } else { low = mid + 1 } } find := letters[low%len(letters)] if find <= target { return letters[0] } return find }