Skip to content

2769. Find the Maximum Achievable Number 👎

  • Time: $O(1)$
  • Space: $O(1)$
1
2
3
4
5
6
class Solution {
 public:
  int theMaximumAchievableX(int num, int t) {
    return num + 2 * t;
  }
};
1
2
3
4
5
class Solution {
  public int theMaximumAchievableX(int num, int t) {
    return num + 2 * t;
  }
}
1
2
3
class Solution:
  def theMaximumAchievableX(self, num: int, t: int) -> int:
    return num + 2 * t