If you don't want a solution for O(1) space but just a hint, here it is: you need to make use of the next links that you're creating.
Hey @stefan, I do like your no-code hint. :D
O(1) just means constant. You can multiply it by a constant, which does not change the fact that it is O(1)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.