code: def reverse_list_recursive(head):
      
      if head is None or head.next is None:
          return head
      p = head.next
      head.next = None
      revrest = reverse_list_recursive(p)
      p.next = head
      return revrest
docs: :type head: ListNode
      :rtype: ListNode