Happy Coding

This blog is for my memorandum about programming and English.

Happy Coding

This blog is for my memorandum

Entries from 2017-04-15 to 1 day

return k-th to last

problem Implement an algorithm to find the kth to last element of a singly linked list how to solve We use two pointers slow-pointer and fast-pointer. Firstly we proceed the fast-pointer in k step. Secondly, we move them at the same pace a…