This code can be simplified for readability purposes. There is a lot of variable substitution, that doesn't need to be there.
@chinmayanand8968 жыл бұрын
your videos and explaination is too good please make more videos for me...........................
@piyushmajgawali16115 жыл бұрын
if odd is null ,how can you assign odd->next (IN THE FIRST CONDITION TO BREAK)
@pushp19975 жыл бұрын
EXACTLY!
@jhannyvivek85496 жыл бұрын
Well done Harshit Jain...Nicely explained
@venkateshnaidu21335 жыл бұрын
can we do this in O(1) space complexity?
@bendakai15 жыл бұрын
Yes. Keep a pointer at head of the list and move runner pointer 2 nodes forward. detach the node and attach it at head. at eh end we will have all evens at start and odds at other end
@srinaath98454 жыл бұрын
@@bendakai1 nice bro
@arghadeep108 жыл бұрын
luv u harshit muaah ..dhanyabad bhai.
@GeeksforGeeksVideos7 жыл бұрын
You're welcome, Arghadeep!
@spicytuna086 жыл бұрын
don't you have to read the data and identify whether or not it is odd or even? here, it seems like the input has to have even number and odd number alternate in order for it to work.
@cu76956 жыл бұрын
He's concerned about position not the exact nature of the data in the node.
@Shorts-gz3qk3 жыл бұрын
How come 22 & 70 is odd?
@spicytuna086 жыл бұрын
use C++ list.erase() and list.push_back().
@reyou77 жыл бұрын
cool, good and nice!
@spicytuna086 жыл бұрын
need examples please. that is how most people learn.
@spicytuna086 жыл бұрын
1:12, output is wrong
@azazahmedtai57304 жыл бұрын
he is talknig about positioning/index not about even or odd number
@aFang-xm9vu7 жыл бұрын
印度英语听得就是膈应
@ATULBP19987 жыл бұрын
Google translator say "Indian English is the answer"