Failing edge case 2

My code is failing only edge case 2. Can someone give me any hints?

Did you try only one element in your linked list?
Input
1
2
Output
2 2 2

1 Like

Closing this topic as your issue has been resolved by the community. If not Kindly un-mark the accepted solution to re-open the topic or feel free to create a new topic and post a link to this topic as a reference.

Closing this topic as your issue has been resolved by the community. If not Kindly un-mark the accepted solution to re-open the topic or feel free to create a new topic and post a link to this topic as a reference.