24. Swap Nodes in Pairs
摘要:Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list as 2->1->4->3. Note: * Your algorithm should use only constant extra spac...
阅读全文
posted @ 2018-11-09 07:19
浙公网安备 33010602011771号