The problem description is super vague to me.

  • 3

    For those who are not familiar with UTF-8, the two examples given didn't tell us what should we do if the number like 11110xxx shows up more than once.

    It appears to me that once we found out one complete sequence like 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx, we can disregard the rest. But the truth is until lots of 'wrong answer's I couldn't figure out that we needa repeat the sequence cycle after cycle till finishing the list data.

  • 1

    Found some better description of UTF-8...:

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.