Insert a node at a specific position in a linked list

  • + 1 comment

    Hey, I am Greg :) I was looking through your code and I see the implementation accepts duplicate values, at least my local test printed duplicates.

    It is really amasing, according to test case and expected output no duplicates must be contained, but actually your code passes the test :)

    I have just posted also my solution which is somehow wrong but only for last entrie magically, because on my local environment it runs correctly....