All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g2501_2600.s2549_count_distinct_numbers_on_board.Solution.kt Maven / Gradle / Ivy

There is a newer version: 1.32
Show newest version
package g2501_2600.s2549_count_distinct_numbers_on_board

// #Easy #Array #Hash_Table #Math #Simulation #2023_07_06_Time_113_ms_(100.00%)_Space_33_MB_(66.67%)

class Solution {
    fun distinctIntegers(n: Int): Int {
        return 1.coerceAtLeast(n - 1)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy