limit
is too small to fit any suffix; if so, return an empty array.low = 0
and high = message.length + 1
.b
:
a. Calculate the mid-point mid
between low
and high
.
b. Check if mid
is a valid number of parts using a helper function isLargerOrFit
.
c. If mid
is valid, update high
to mid
; otherwise, update low
to mid
.b
.