Day6. Namespace style
This commit is contained in:
21
589. N-ary Tree Preorder Traversal/Node.cs
Normal file
21
589. N-ary Tree Preorder Traversal/Node.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace _589._N_ary_Tree_Preorder_Traversal;
|
||||
|
||||
// Definition for a Node.
|
||||
public class Node
|
||||
{
|
||||
public int val;
|
||||
public IList<Node>? children;
|
||||
|
||||
public Node() { }
|
||||
|
||||
public Node(int _val)
|
||||
{
|
||||
val = _val;
|
||||
}
|
||||
|
||||
public Node(int _val, IList<Node> _children)
|
||||
{
|
||||
val = _val;
|
||||
children = _children;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user