You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -115,3 +115,4 @@ LeetCode
115
115
|104|[Maximum Depth of Binary Tree](https://leetcode.com/problems/maximum-depth-of-binary-tree/description/)|[C#](./Algorithms/MaximumDepthofBinaryTree.cs)|Easy|
116
116
|105|[Construct Binary Tree from Preorder and Inorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/)|[C#](./Algorithms/ConstructBinaryTreefromPreorderandInorderTraversal.cs)|Medium|
117
117
|106|[Construct Binary Tree from Inorder and Postorder Traversal](https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal)|[C#](./Algorithms/ConstructBinaryTreefromInorderandPostorderTraversal.cs)|Medium|
118
+
|107|[Binary Tree Level Order Traversal II](https://leetcode.com/problems/binary-tree-level-order-traversal-ii/)|[C#](./Algorithms/BinaryTreeLevelOrderTraversalII.cs)|Easy|
public static {{m.return.type}} {{m.name}}({{ for param in m.params }} {{ param.type }} {{ param.name }},{{ end }})
41
+
public static {{csharp.return_type}} {{csharp.method_name}}({{csharp.params_txt}})
37
42
{
38
43
throw new NotImplementedException();
39
44
}
@@ -51,16 +56,17 @@ public class {{detail.question_name}}Test
51
56
{
52
57
[Theory]
53
58
[InlineData({{detail.SampleTestCase}})]
54
-
public void TestMethod({{ for param in m.params }} {{ param.type }} {{ param.name }},{{ end }} {{m.return.type}} output)
59
+
public void TestMethod({{csharp.params_txt}},{{csharp.return_type}} output)
55
60
{
56
-
Assert.Equal(output, Solution{{detail.question_id}}.{{m.name}}({{ for param in m.params }}{{ param.name }},{{ end }}));
61
+
Assert.Equal(output, Solution{{detail.question_id}}.{{csharp.method_name}}({{ for param in csharp.params }}{{ param.name }}{{if !for.last }}, {{end}}{{ end }}));
0 commit comments