コード例 #1
0
 public void OJ081_SearchInRotatedSortedArrayIITest4()
 {
     bool result = new OJ081_SearchInRotatedSortedArrayII().Search(new int[] { 1 }, 1);
     Assert.AreEqual(true, result);
 }
コード例 #2
0
 public void OJ081_SearchInRotatedSortedArrayIITest1()
 {
     bool result = new OJ081_SearchInRotatedSortedArrayII().Search(new int[] { 5, 5, 5, 5, 1, 2, 3, 4 }, 4);
     Assert.AreEqual(true, result);
 }