Hi everyone, I'm Mahfuz Hossain, a student of Information and Communication Engineering from Bangladesh. In this article, I'm going to talk about L...
For further actions, you may consider blocking this person and/or reporting abuse
You should have an actual
slistclass that contains the pointer to the head and a second pointer to the tail of the list to make appending an O(1) operation. Additionally, the class should be atemplateso you can have any type, not justint.You are right. Basically I've just shown the simple implementation and printing part of the linked list for the beginners. It needs to be modified for insertion, deletion operations.