摘要:
Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 阅读全文
posted @ 2019-05-31 19:21
小纸条
阅读(108)
评论(0)
推荐(0)
摘要:
Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: Follow up:Could you do it in O(n) time and O(1) space? (1)定义快慢指针得到链 阅读全文
posted @ 2019-05-31 19:09
小纸条
阅读(82)
评论(0)
推荐(0)

浙公网安备 33010602011771号