- base64
- base32
- uuencode/uudecode
- hexdump/hd
- xxd/autoxxd
- od
- xd (on Solaris)
- binhex (on Mac)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Definition for singly-linked list. | |
# class ListNode(object): | |
# def __init__(self, x): | |
# self.val = x | |
# self.next = None | |
class LinkedList(object): | |
def get_middle(self, head: ListNode) -> ListNode: | |
fast = slow = head | |
while fast and fast.next: |