File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
src/main/kotlin/g3101_3200
s3153_sum_of_digit_differences_of_all_pairs
s3154_find_number_of_ways_to_reach_the_k_th_stair Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3151_special_array_i
2
2
3
- // #Easy #Array #2024_05_22_Time_0_ms_(100.00%)_Space_43.2_MB_(51.16 %)
3
+ // #Easy #Array #2024_05_25_Time_165_ms_(92.21%)_Space_36.7_MB_(84.42 %)
4
4
5
5
class Solution {
6
6
fun isArraySpecial (nums : IntArray ): Boolean {
Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3152_special_array_ii
2
2
3
- // #Medium #Array #Binary_Search #Prefix_Sum #2024_05_22_Time_2_ms_(99.93%)_Space_97 .9_MB_(79.71 %)
3
+ // #Medium #Array #Binary_Search #Prefix_Sum #2024_05_25_Time_707_ms_(93.83%)_Space_93 .9_MB_(59.26 %)
4
4
5
5
class Solution {
6
6
fun isArraySpecial (nums : IntArray , queries : Array <IntArray >): BooleanArray {
Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3153_sum_of_digit_differences_of_all_pairs
2
2
3
- // #Medium #Array #Hash_Table #Math #Counting #2024_05_22_Time_12_ms_(100.00%)_Space_62.8_MB_(6.25%)
3
+ // #Medium #Array #Hash_Table #Math #Counting
4
+ // #2024_05_25_Time_491_ms_(95.74%)_Space_61.5_MB_(48.94%)
4
5
5
6
class Solution {
6
7
fun sumDigitDifferences (nums : IntArray ): Long {
Original file line number Diff line number Diff line change 1
1
package g3101_3200.s3154_find_number_of_ways_to_reach_the_k_th_stair
2
2
3
3
// #Hard #Dynamic_Programming #Math #Bit_Manipulation #Memoization #Combinatorics
4
- // #2024_05_22_Time_0_ms_ (100.00%)_Space_40.3_MB_(98.50 %)
4
+ // #2024_05_25_Time_122_ms_ (100.00%)_Space_33.6_MB_(96.55 %)
5
5
6
6
@Suppress(" NAME_SHADOWING" )
7
7
class Solution {
You can’t perform that action at this time.
0 commit comments