19. Remove Nth Node From End of List( LeetCode SAP ABAP)
Given the head of a linked list, remove the n th node from the end of the list and return its head. Constraints: The number of nodes in the list is sz . 1 <= sz <= 30 0 <= Node.val <= 100 1 <= n <= sz Follow up: Could you do this in one pass? Solution : REPORT ztest_demo_sup . TYPES : BEGIN OF ty_node , val TYPE i , next TYPE REF TO data , END OF ty_node . DATA root TYPE REF TO ty_node . DATA temp TYPE REF TO ty_node . TYPES ty_array TYPE STANDARD TABLE OF i WITH EMPTY KEY . DATA ( a ) = VALUE ty_array ( ( 1 ) ( 2 ) (...