Who can help me find the question number?


  • 0
    1

    I forget a question number, the probably mean:
    input n<10,return n
    input n=10,return 1
    input n=11,return 0
    input n=12,return 1
    input n=13,return 1
    input n=14,return 1
    input n=15,return 2
    input n=16,return 1
    input n=17,return 3
    ....


  • 0
    1

    input: 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21
    return:0,1,2,3,4,5,6,7,8,9,1 ,0 ,1 ,1 ,1 ,2 ,1 ,3 ,1 ,4 ,1 ,5


Log in to reply
 

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