Hi gentlemen, there's something really confusing me which is:
how would I delete an item from a linked list when all
I get is the item itself. ?
any reasonable approach to share with me? thanks alot.
I've wrote a code but the time complexity is O(n) (searching for the element and if found => delete it ) , I need to decrease the time complexity of deletion ..