Skip to content

Observer and reverse list#11

Open
Denis-shl wants to merge 19 commits intomasterfrom
observer
Open

Observer and reverse list#11
Denis-shl wants to merge 19 commits intomasterfrom
observer

Conversation

@Denis-shl
Copy link
Copy Markdown
Owner

No description provided.

Comment thread reverseList/reverseList.go Outdated
@@ -0,0 +1,50 @@
package reverseList

type ListNode struct {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread reverseList/reverseList.go Outdated

// reverseList ...
func reverseList(head *ListNode) *ListNode {
var current *ListNode
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var (
    current *ListNode
    prev *ListNode
)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants