# 邊界值處理 首節點如果是空的話值直接return head 就好。 因為如果head是None ,直接回傳None 給他就好。 ```python= if not head and head.next : return head ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up