Only int numbers in the array are considered, right?


  • 0
    L

    What if there is some float number like 0.5? The question itself doesn't point this out, but I didn't find any float number in the test cases.


  • 0
    C

    Yes, I think so. Otherwise, O(n) solution will not work.


Log in to reply
 

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