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

Class TreeNode

patterns/javascript/levelOrderTraversal.js:2–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Definition for a binary tree node.
2class TreeNode {
3 constructor(val) {
4 this.val = val;
5 this.left = this.right = null;
6 }
7}
8
9class LevelOrderTraversal {
10 levelOrder(root) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected