You are viewing a single comment's thread. Return to all comments →
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....
Seems like cookies are disabled on this browser, please enable them to open this website
Insert a node at a specific position in a linked list
You are viewing a single comment's thread. Return to all comments →
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....