#NEWLINE# def deleteNode( self , node ) : #NEWLINE# #INDENT# '\n        Only access to the node to be deleted.\n        :param node: ListNode\n        :return: None, Do not return anything, modify node in-place instead.\n        ' #NEWLINE# cur = node #NEWLINE# while self . next : #NEWLINE# #INDENT# cur . val = cur . next . val #NEWLINE# if ( not cur . next . next ) : #NEWLINE# #INDENT# cur . next = None #NEWLINE# break #NEWLINE# #UNINDENT# cur = cur . next