I am curious about the time complexity of inserting an element at the beginning of a LinkedList. I understand the LinkedList itself will shift the existing elements one index to the right but, to do that, will it make as many iterations as there are existing elements in the list?
Also, is the best way to insert at the beginning offerFirst ?