Skip to content

Commit 58bcf77

Browse files
refactor 206
1 parent 011b393 commit 58bcf77

File tree

1 file changed

+9
-1
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+9
-1
lines changed

src/main/java/com/fishercoder/solutions/_206.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55
/**
66
* 206. Reverse Linked List
77
*
8-
* Reverse a singly linked list.*/
8+
* Reverse a singly linked list.
9+
*
10+
* Example:
11+
* Input: 1->2->3->4->5->NULL
12+
* Output: 5->4->3->2->1->NULL
13+
*
14+
* Follow up:
15+
* A linked list can be reversed either iteratively or recursively. Could you implement both?
16+
* */
917
public class _206 {
1018

1119
public static class Solution1 {

0 commit comments

Comments
 (0)