How to remove a element for LinkedList


i dont konw how to remove/search a element for LinkedList.


The pop_front() and pop_back() methods let you remove something from the front or back of the list.

There’s no built-in method exactly, but you can use iterators. iter() will give you an iterator, and then find() on that iterator will give you the ability to search.


Just making sure you’ve read this rant and the docs.