Problems > Valid Hexadecimal > Editorial

Valid Hexadecimal — Solution & Editorial

Back to the Problem

Check every character's membership in the hex alphabet.

Complexity: O(|S|)