Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 07d92ac

Browse files
revert: got back to initial naming and added a marker
Added comment so that no one changes the Node class
1 parent dc6ab78 commit 07d92ac

File tree

1 file changed

+2
-1
lines changed
  • src/_DataStructures_/LinkedList

1 file changed

+2
-1
lines changed

‎src/_DataStructures_/LinkedList/index.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// do not change the node class, you never know how many things it caan break! :)
12
class Node {
23
constructor(data, next) {
3-
this.my_data = data;
4+
this.data = data;
45
this.next = next;
56
}
67
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /