Why this code is giving RTE?
Segmentation fault
hello @darkshadow2708
u should do this only when odd_tail is not null.
if it is null then simply return even_head;
This fix won’t worked…
a) start i from 1
b) first update temp and then even_tail/odd_tail
this is correct order
1 Like