g2701_2800.s2769_find_the_maximum_achievable_number.Solution.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-kotlin Show documentation
Show all versions of leetcode-in-kotlin Show documentation
Kotlin-based LeetCode algorithm problem solutions, regularly updated
package g2701_2800.s2769_find_the_maximum_achievable_number
// #Easy #Math #2023_08_11_Time_134_ms_(97.89%)_Space_33.8_MB_(81.05%)
class Solution {
fun theMaximumAchievableX(num: Int, t: Int): Int {
return num + t * 2
}
}