Improve the time complexity for circular link list while inserting and deleting an element.
Anonymous
Make the head of circular linked list to be last node instead of first. It makes o(1) for insert/delete at start and end of circ linked list.
Check out your Company Bowl for anonymous work chats.