Just a recheck of code

Here i have solved 328. Odd Even Linked List
from leetcode.
This is the solution which got passed .


Here they are saying to do this in constant space…
Please check whether i have done like that or not.

Hey,yup you have done it in constant space.
If u have applied recursion instead or used new or malloc to allocate new nodes then in that case you are using space in such Linkedlist questions.