Hello.
Quite often, during interviews or in test tasks (for internship, for example), a question is asked about simply linked lists .
For example, they give a task in which it is necessary to expand a simply connected list in O (n) time. So, how to do it? Can I just override the links? Those. do for 1 iteration so that not A-> B , but A <-B ?
Can you please give an example? Thank you in advance