what should be the output if k (kth element from last)
is 0 or more than the size of the list ?
Kth element from last
Hello Karanveer, you may assume that given k will be always valid!
so 1<=k<=length of linked list
OK thanks for help…
what should be the output if k (kth element from last)
is 0 or more than the size of the list ?
Hello Karanveer, you may assume that given k will be always valid!
so 1<=k<=length of linked list
OK thanks for help…