Skip to content

Commit a05689b

Browse files
author
Li Li
committed
add notes to 234
1 parent 2bd71c4 commit a05689b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Algorithms Basics/Chapter 2. Linked List/234. Palindrome Linked List.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// reverse the second half and use two pointer to compare first and second half
12
public class Solution {
23
public bool IsPalindrome(ListNode head) {
34
if (head == null || head.next == null) {

0 commit comments

Comments
 (0)