Can we say O(length) space the same as O(1) space?


  • 0

    It's confusing me. I saw a lot of solutions saying O(1) space but it uses a list of length "length".

    Can we still say it's O(1) space?


Log in to reply
 

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