Easy

Find the Maximum Achievable NumberPython

Full explanation · Time O(1) · Space O(1)

# Time:  O(1)
# Space: O(1)

# greedy
class Solution(object):
    def theMaximumAchievableX(self, num, t):
        """
        :type num: int
        :type t: int
        :rtype: int
        """
        return num+2*t