Comment on Python Multiple Assignment Is a PuzzleComments−tom102412yPlease note, that the solution from the post has O(n) space complexity (you modify the input and this counts as using the extra memory).
Comments
Please note, that the solution from the post has O(n) space complexity (you modify the input and this counts as using the extra memory).