Similarly , find the kth node from end and its previous . kth node from end is ( n - k + 1 ) th node from beginning
y = self . head NEW_LINE y_prev = Node ( None ) NEW_LINE for i in range ( n - k ) : NEW_LINE INDENT y_prev = y NEW_LINE y = y . next NEW_LINE DEDENT