Given an integer array data representing a sequence of bytes, determine whether it is a valid UTF-
A character in UTF-
For a
For an
Note: Only the least significant
bits of each integer in dataare considered.
Constraints:
data.length
data[i]
Given an integer array data representing a sequence of bytes, determine whether it is a valid UTF-
A character in UTF-
For a
For an
Note: Only the least significant
bits of each integer in dataare considered.
Constraints:
data.length
data[i]