Ejemplo n.º 1
0
    def test5(self):

        util = TestUtil()
        list = util.creatList([3,5])
        solution = Solution()
        result = solution.reverseBetween(list, 1, 1)
        self.assertEquals("35", util.printList(result))
Ejemplo n.º 2
0
    def test3(self):

        util = TestUtil()
        list = util.creatList([ 1, 2, 3,4, 5])
        solution = Solution()
        result = solution.reverseBetween(list, 2, 4)
        self.assertEquals("14325", util.printList(result))
Ejemplo n.º 3
0
 def test1(self):
     util = TestUtil()
     list =util.creatList([0, 1, 2, 4, 5, 7])
     solution= Solution()
     result=solution.reverseBetween(list,2,3)
     self.assertEquals("021457", util.printList(result))