コード例 #1
0
 public void HackerRankTest16()
 {
     string[] queries  = GetInputData(_sTestDataRootDir + "hackerrank16_input.txt");
     int[]    expected = GetResultAnswers(_sTestDataRootDir + "hackerrank16_answer.txt");
     int[]    result   = QHeap1.ProcessQueries(queries);
     CollectionAssert.AreEqual(expected, result);
 }
コード例 #2
0
 public void SampleATest()
 {
     string[] queries  = new string[] { "1 4", "1 9", "3", "2 4", "3" };
     int[]    result   = QHeap1.ProcessQueries(queries);
     int[]    expected = new int[] { 4, 9 };
     CollectionAssert.AreEqual(expected, result);
 }