Example #1
0
 def test6(self):
     intervals = [[2,4],[1,2],[4,5]]
     res = answer2_2(intervals)
     self.assertEqual(res, 4)
Example #2
0
 def test3(self):
     intervals = [[1,2],[2,2**30-1]]
     res = answer2_2(intervals)
     self.assertEqual(res, 2**30-2)
Example #3
0
 def test5(self):
     intervals = [[1,2],[4,5]]
     res = answer2_2(intervals)
     self.assertEqual(res, 2)
Example #4
0
 def test1(self):
     intervals = [[1,2],]
     res = answer2_2(intervals)
     self.assertEqual(res, 1)