File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
src/main/kotlin/g3201_3300
s3249_count_the_number_of_good_nodes
s3250_find_the_count_of_monotonic_pairs_i
s3251_find_the_count_of_monotonic_pairs_ii Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
package g3201_3300.s3248_snake_in_matrix
2
2
3
- // #Easy #Array #String #Simulation #2024_08_13_Time_2_ms_(98.05%)_Space_44.4_MB_(66.96 %)
3
+ // #Easy #Array #String #Simulation #2024_08_13_Time_174_ms_(90.91%)_Space_37.5_MB_(34.09 %)
4
4
5
5
class Solution {
6
6
fun finalPositionOfSnake (n : Int , commands : List <String >): Int {
Original file line number Diff line number Diff line change 1
1
package g3201_3300.s3249_count_the_number_of_good_nodes
2
2
3
- // #Medium #Tree #Depth_First_Search #2024_08_13_Time_34_ms_ (100.00%)_Space_113.9_MB_(90.70 %)
3
+ // #Medium #Depth_First_Search #Tree #2024_08_13_Time_1190_ms_ (100.00%)_Space_127.6_MB_(77.27 %)
4
4
5
5
class Solution {
6
6
private var count = 0
Original file line number Diff line number Diff line change 1
1
package g3201_3300.s3250_find_the_count_of_monotonic_pairs_i
2
2
3
3
// #Hard #Array #Dynamic_Programming #Math #Prefix_Sum #Combinatorics
4
- // #2024_08_13_Time_3_ms_ (100.00%)_Space_44.7_MB_(99.34 %)
4
+ // #2024_08_13_Time_241_ms_ (100.00%)_Space_39.2_MB_(100.00 %)
5
5
6
6
import kotlin.math.max
7
7
import kotlin.math.min
Original file line number Diff line number Diff line change 1
1
package g3201_3300.s3251_find_the_count_of_monotonic_pairs_ii
2
2
3
3
// #Hard #Array #Dynamic_Programming #Math #Prefix_Sum #Combinatorics
4
- // #2024_08_13_Time_24_ms_ (100.00%)_Space_44.7_MB_(97.70 %)
4
+ // #2024_08_13_Time_291_ms_ (100.00%)_Space_47_MB_(100.00 %)
5
5
6
6
import kotlin.math.max
7
7
You can’t perform that action at this time.
0 commit comments