HenLiHai
Keep the faith
Tuesday, June 13, 2017
[Leetcode]Swap Nodes in Pairs
https://leetcode.com/problems/largest-number/
1. in Line 17 , you need to have a clear mind what is the new value for curr. curr = one will do the work but might be confusing. curr = curr.next.next is sound and safe
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment