def solve(self, cipher):
        """
        Small test cases pass. Sort by deadline and complete them one by one

        for complete solution: https://github.com/ningke/tasksched

        main solution function
        :param cipher: the cipher
        """
        tasks = cipher
        tasks.sort(key=lambda t: t[0])

        overshot = -1
        timer = 0
        for task in tasks:
            timer += task[1]
            overshot = max(overshot, timer + task[0])

        return overshot
dataset/ETHPy150Open algorhythms/HackerRankAlgorithms/Task Scheduling.py/Solution.solve/operator `-` -> `+`