MCPcopy Create free account
hub / github.com/ashishps1/awesome-leetcode-resources / ListNode

Class ListNode

patterns/javascript/fastAndSlowPointers.js:1–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class ListNode {
2 constructor(x) {
3 this.val = x;
4 this.next = null;
5 }
6}
7
8class FastAndSlowPointers {
9 // LeetCode 141 - Linked List Cycle (HashSet Approach)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected