![JAR search and dependency download from the Maven repository](/logo.png)
g2601_2700.s2651_calculate_delayed_arrival_time.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 g2601_2700.s2651_calculate_delayed_arrival_time
// #Easy #Math #2023_07_20_Time_129_ms_(88.00%)_Space_33.3_MB_(48.00%)
class Solution {
fun findDelayedArrivalTime(ar: Int, de: Int): Int {
if (ar + de >= 24) {
return kotlin.math.abs(ar + de - 24)
}
return ar + de
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy