Is the test case correct?


  • 0
    S

    Accordring to the description,

    Given a non-negative integer n representing the total number of bits in the code

    When n = 0, there should be 0 bit in the sequence, and therefore an empty sequence should be returned; but in the test case it's {0}, which has 1 bit. Is the test case correct?


  • 0
    S

    It's an edge case, in our OJ it happens to return {0}. But it should be a nice question, and make it clear while you are having a real interview.


Log in to reply
 

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