Test cases are weak. Test cases doesn't include repeated nodes having same value


#1

Test cases doesn’t include repeated nodes having same value.


#2

in that case you will get TLE (if you solve for duplicate values )


#3

Nope you won’t get TLE if you just store the address of node to maintain the uniqueness.