MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / TreeNode

Class TreeNode

Leetcode/Java/BFS.java:5–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// Definition for a binary tree node.
4
5 public class TreeNode {
6 int val;
7 TreeNode left;
8 TreeNode right;
9 TreeNode() {}
10 TreeNode(int val) { this.val = val; }
11 TreeNode(int val, TreeNode left, TreeNode right) {
12 this.val = val;
13 this.left = left;
14 this.right = right;
15 }
16 }
17
18class Solution {
19 public List<List<Integer>> levelOrder(TreeNode root) {

Callers 1

array_to_treeMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected