File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
src/main/kotlin/g3701_3800
s3718_smallest_missing_multiple_of_k
s3719_longest_balanced_subarray_i
s3720_lexicographically_smallest_permutation_greater_than_target
s3721_longest_balanced_subarray_ii Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11package g3701_3800.s3718_smallest_missing_multiple_of_k
22
3- // #Easy #Weekly_Contest_472 #2025_10_21_Time_0_ms_(100.00%)_Space_43.07_MB_(95.91%)
3+ // #Easy #Array #Hash_Table #Weekly_Contest_472
4+ // #2025_10_21_Time_0_ms_(100.00%)_Space_43.07_MB_(95.91%)
45
56class Solution {
67 fun missingMultiple (nums : IntArray , k : Int ): Int {
Original file line number Diff line number Diff line change 11package g3701_3800.s3719_longest_balanced_subarray_i
22
3- // #Medium #Weekly_Contest_472 #2025_10_21_Time_10_ms_(100.00%)_Space_45.40_MB_(48.93%)
3+ // #Medium #Array #Hash_Table #Prefix_Sum #Divide_and_Conquer #Segment_Tree #Weekly_Contest_472
4+ // #2025_10_21_Time_10_ms_(100.00%)_Space_45.40_MB_(48.93%)
45
56class Solution {
67 fun longestBalanced (nums : IntArray ): Int {
Original file line number Diff line number Diff line change 11package g3701_3800.s3720_lexicographically_smallest_permutation_greater_than_target
22
3- // #Medium #Weekly_Contest_472 #2025_10_21_Time_2_ms_(96.02%)_Space_43.66_MB_(74.82%)
3+ // #Medium #String #Hash_Table #Greedy #Counting #Enumeration #Weekly_Contest_472
4+ // #2025_10_21_Time_2_ms_(96.02%)_Space_43.66_MB_(74.82%)
45
56class Solution {
67 fun lexGreaterPermutation (s : String , target : String ): String {
Original file line number Diff line number Diff line change 11package g3701_3800.s3721_longest_balanced_subarray_ii
22
3- // #Hard #Weekly_Contest_472 #2025_10_21_Time_267_ms_(59.29%)_Space_61.94_MB_(28.32%)
3+ // #Hard #Array #Hash_Table #Prefix_Sum #Divide_and_Conquer #Segment_Tree #Weekly_Contest_472
4+ // #2025_10_22_Time_217_ms_(100.00%)_Space_85.54_MB_(100.00%)
45
56import kotlin.math.max
67import kotlin.math.min
You can’t perform that action at this time.
0 commit comments