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

g3301_3400.s3349_adjacent_increasing_subarrays_detection_i.Solution.kt Maven / Gradle / Ivy

package g3301_3400.s3349_adjacent_increasing_subarrays_detection_i

// #Easy #Array #2024_11_15_Time_179_ms_(97.92%)_Space_37.3_MB_(91.67%)

class Solution {
    fun hasIncreasingSubarrays(nums: List, k: Int): Boolean {
        val l = nums.size
        if (l < k * 2) {
            return false
        }
        for (i in 0..): Boolean {
        for (i in p..

= nums[i + 1]) { return false } } return true } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy