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

Class TreeNode

patterns/java/LevelOrderTraversal.java:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6// Definition for a binary tree node.
7class TreeNode {
8 int val;
9 TreeNode left;
10 TreeNode right;
11
12 TreeNode(int x) {
13 val = x;
14 }
15}
16
17public class LevelOrderTraversal {
18 public void levelOrder(TreeNode root) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected