The TransCompilator

Solved LeetCode program · 528 of 1,000

#0744 · Find Smallest Letter Greater Than Target

Easy Array chunk-11.md

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.

Open in Playground Browse all 1,000 problems

Expected stdout

c