Skip to content

Commit 7957fe4

Browse files
authored
Update Solution.kt
1 parent a1cd7e3 commit 7957fe4

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g2701_2800/s2740_find_the_value_of_the_partition

1 file changed

+1
-1
lines changed

src/main/kotlin/g2701_2800/s2740_find_the_value_of_the_partition/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ class Solution {
66
fun findValueOfPartition(nums: IntArray): Int = nums
77
.sortedDescending()
88
.zipWithNext(Int::minus)
9-
.min()!!
9+
.min()
1010
}

0 commit comments

Comments
 (0)