Should these elements be sorted ?When we are placin even after odd?? or is the input only 1s and 2s
Even after odd Linked List
hello @aryamaan1011
relative order must be remain same as they are given in the list.
ex->
if list is 2 3 5 8
then order should be 3 5 (note the order 5 after 5 not 3 after 5) 2 8 (similary here.)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.