class Solution(object):
def kthToLast(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: int
"""
if head is None:
return None
left = head
right = head
count = 0
while count < k:
right = right.next
count += 1
while right:
left = left.next
right = right.next
return left.val