How to remove the 'k' number of elements in a linked list.

How to remove the 'k' number of elements in a linked list.

I search the many sites on the internet but found nothing.

Can anyone please give the link to the site or please explain how to remove 'k' elements from a list.
probably because it doesn't make sense as a stand alone question.
delete from the top? Bottom? Random? Is there a purpose to it? Do you know the list size? Do to keep deleted nodes to put back on later (memory management) or just kill them?



Topic archived. No new replies allowed.