i can solve this problem if i am using head and building my own link list but when I use stl I get confuse how to merge my code in it.
code- https://ide.codingblocks.com/s/239327
I cant able to merge my link list which I created form stl to sing kth element
Confused how to use STL in code
btw where you are getting the problem?
here refer this for stl https://ide.codingblocks.com/s/228083?_ga=2.16680438.1966381010.1589444709-2096337790.1589103777
i hope its cleared if yes dont forget to mark it as resolved
i want to ask that so we need to slove these questions using stl or we can do this by making our own link list. I am confused which one to use because making own link list take time we have to make class then insert at front funtion than kth element function then traversing and changing the links wheras the problem in STL is i cant think the way stl approach. So what do you suggest what should i do?.
hey if you are doing linklist for the first time you should definitely do the long way once the long way is cleared then move to stl. stl will be used when you start giving online contests @anubhavb11
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.