UTF-8 validation

0
Remix

Given a list of integers, each standing for one byte, decide whether they form a valid UTF-8 encoding: read the leading bits of each first byte to know how many continuation bytes (starting with 10) must follow.

MetaTechnical phone screenLast asked Sep 2025
No answer yet. Write the first one; the best answer gets endorsed.