← Questions

UTF-8 validation

0
MetaCodingLast asked Sep 2025

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding