Solved LeetCode program · 528 of 1,000
#0744 · Find Smallest Letter Greater Than Target
Original English source
The letters is a list of "c", "f", and "j". The target is "a". The last is the last position of letters. The picked is 0.
For every spot from 0 to last.
If picked is 0.
If item spot of letters comes after target.
Show item spot of letters. Set picked to 1.
If picked is 0, Show item 0 of letters.
Expected stdout
c