0

Help

I’m still searching singly linked list (find mid value) I got lot of solution about linked list in SoloLearn code solutions But I didn’t see any void mid value code. Any one please suggest me. Language c or c++

23rd Jul 2020, 9:00 PM
Emon
Emon - avatar
1 Answer
+ 2
Go from head to tail and count number of elements. Divide by 2....that's n Go n steps along list and insert there.
23rd Jul 2020, 9:13 PM
Oma Falk
Oma Falk - avatar