public void FindContentChildrenTest() { Batch3 b3 = new Batch3(); int[] g = { 10, 9, 8, 7 }; int[] s = { 5, 6, 7, 8 }; int nFound = b3.FindContentChildren(g, s); }
public void WordBreakTest() { IList <string> dic = new List <string>(); dic.Add("leet"); dic.Add("code"); string sIn = "leetcode"; Batch3 b = new Batch3(); bool breakable = b.WordBreak(sIn, dic); }
public void PrintTreeTest() { TreeNode nd = new TreeNode(1); TreeNode nd2 = new TreeNode(2), nd3 = new TreeNode(3); nd.left = nd2; nd.right = nd3; TreeNode nd4 = new TreeNode(4); nd2.right = nd4; Batch3 b3 = new Batch3(); IList <IList <string> > PrintTreeResult = b3.PrintTree(nd); }
public void MaxSubArrayTest() { int[] a = { -2, 3, 1, 3 }; Batch3 b = new Batch3(); int max = b.MaxSubArray(a); }
public void CalculateMinimumHPTest2() { int[][] d = new int[][] { new int[] { -2, -3, 3 }, new int[] { -5, -10, 1 }, new int[] { 10, 30, -5 } }; Batch3 b3 = new Batch3(); int result = b3.CalculateMinimumHP2(d); }
public void HammingDistanceTest() { Batch3 b3 = new Batch3(); int dist = b3.HammingDistance(1, 4); }