第十天(位运算)
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# 遍历方法
# while head.next!=None: # 或while head!=None:
# head=head.next最后更新于
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# 遍历方法
# while head.next!=None: # 或while head!=None:
# head=head.next最后更新于