Solving Find Smallest Letter Greater Than Target in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Examples:

Input:
letters = ["c", "f", "j"]
target = "a"
Output: "c"

Input:
letters = ["c", "f", "j"]
target = "c"
Output: "f"

Input:
letters = ["c", "f", "j"]
target = "d"
Output: "f"

Input:
letters = ["c", "f", "j"]
target = "g"
Output: "j"

Input:
letters = ["c", "f", "j"]
target = "j"
Output: "c"

Input:
letters = ["c", "f", "j"]
target = "k"
Output: "c"

Note:

See the full details of the problem Find Smallest Letter Greater Than Target at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go