from typing import Optional, List

from base.linked_list.ListNode import ListNode


class Solution:
    # TODO
    def nodesBetweenCriticalPoints(self, head: Optional[ListNode]) -> List[int]:
        pass

if __name__ == '__main__':
    func = Solution().nodesBetweenCriticalPoints
    head = ListNode.from_list([5, 3, 1, 2, 5, 1, 2])
    print(head)
