Hint (no code)


  • 1
    M

    There're 26 letters, and an unsigned integer has 32 bits for you to use.
    Then don't worry about O(n^2).
    And you got it :)


Log in to reply
 

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