pos
to 0.words
array.
pos
is less than the length of s
and the current word index is within the bounds of the words
array:
s
starting from pos
with the length of the current word to the current word itself.false
.pos
by the length of the current word.pos
is equal to the length of s
.
true
.false
.