Why test case [1,0,1,1] 1 is true?

  • 0

    Could anyone tell me why the test case below is true?


    The largest difference should be 2 which is greater than k = 1. Isn't it?
    Many thanks!

Log in to reply

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