SarthakKeshari / CPP-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 132 forks source link

insertion at kth position #362

Closed manika-6303 closed 2 years ago

manika-6303 commented 2 years ago

Issue Id you have worked upon -

Kindly write your answer here

Briefly explain your program logic -

insertion of an element in a linked list at a position. The next pointer of new node points to the node at that position and the next of the previous node points to the newnode.

Screenshots(Attach 2 screenshots of your own input and output) -

image image


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

SarthakKeshari commented 2 years ago

@manika-6303, Kindly create an issue first and then PR. And follow the PR template and contribution guidelines. I am not closing this PR since this was your first time. You may refer CONTRIBUTING.md and create an issue.