File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
s3423_maximum_difference_between_adjacent_elements_in_a_circular_array
s3424_minimum_cost_to_make_arrays_identical
s3425_longest_special_path
s3426_manhattan_distances_of_all_arrangements_of_pieces 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 g3401_3500 .s3423_maximum_difference_between_adjacent_elements_in_a_circular_array ;
2
2
3
- // #Easy #2025_01_19_Time_1_(100.00 %)_Space_43.31_(100.00 %)
3
+ // #Easy #Array #2025_01_22_Time_1_(99.86 %)_Space_43.72_(36.06 %)
4
4
5
5
public class Solution {
6
6
public int maxAdjacentDistance (int [] nums ) {
Original file line number Diff line number Diff line change 1
1
package g3401_3500 .s3424_minimum_cost_to_make_arrays_identical ;
2
2
3
- // #Medium #2025_01_19_Time_62_(_ %)_Space_57.38_(_ %)
3
+ // #Medium #Array #Sorting #Greedy #2025_01_22_Time_60_(98.08 %)_Space_57.68_(39.04 %)
4
4
5
5
import java .util .Arrays ;
6
6
Original file line number Diff line number Diff line change 1
1
package g3401_3500 .s3425_longest_special_path ;
2
2
3
- // #Hard #2025_01_19_Time_57_(100.00%)_Space_94.11_(100.00%)
3
+ // #Hard #Array #Hash_Table #Depth_First_Search #Tree #Sliding_Window
4
+ // #2025_01_22_Time_49_(74.66%)_Space_98.04_(44.26%)
4
5
5
6
import java .util .ArrayList ;
6
7
import java .util .Arrays ;
Original file line number Diff line number Diff line change 1
1
package g3401_3500 .s3426_manhattan_distances_of_all_arrangements_of_pieces ;
2
2
3
- // #Hard #2025_01_19_Time_20_(100.00%)_Space_41.18_(100.00 %)
3
+ // #Hard #Math #Combinatorics #2025_01_22_Time_20_(87.92%)_Space_40.82_(98.07 %)
4
4
5
5
public class Solution {
6
6
private long comb (long a , long b , long mod ) {
You can’t perform that action at this time.
0 commit comments