Esempio n. 1
0
 def test_case_1(self):
     self.assertEqual(
         find_peak_element([[10, 12, 14, 11, 7], [7, 11, 16, 18, 20],
                            [11, 15, 10, 8, 6], [20, 11, 25, 12, 10]]),
         (3, 2))
Esempio n. 2
0
 def test_case_8(self):
     self.assertEqual(find_peak_element([[10]]), (0, 0))
Esempio n. 3
0
 def test_case_6(self):
     self.assertEqual(find_peak_element([[10, 12, 14, 11, 7]]), (0, 2))
Esempio n. 4
0
 def test_case_7(self):
     self.assertEqual(find_peak_element([[10], [12], [14], [11], [7]]),
                      (2, 0))
Esempio n. 5
0
 def test_case_4(self):
     self.assertEqual(
         find_peak_element([[10, 12, 14, 11, 7], [7, 11, 16, 18, 20],
                            [41, 15, 10, 8, 6], [32, 27, 25, 12, 10]]),
         (2, 0))