File tree Expand file tree Collapse file tree 12 files changed +14
-23
lines changed
s3392_count_subarrays_of_length_three_with_a_condition
s3393_count_paths_with_the_given_xor_value
s3394_check_if_grid_can_be_cut_into_sections
s3395_subsequences_with_a_unique_middle_mode_i
s3396_minimum_number_of_operations_to_make_elements_in_array_distinct
s3397_maximum_number_of_distinct_elements_after_operations
s3398_smallest_substring_with_identical_characters_i
s3399_smallest_substring_with_identical_characters_ii
s3402_minimum_operations_to_make_columns_strictly_increasing
s3403_find_the_lexicographically_largest_string_from_the_box_i
s3404_count_special_subsequences
s3405_count_the_number_of_arrays_with_k_matching_adjacent_elements Expand file tree Collapse file tree 12 files changed +14
-23
lines changed Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3392_count_subarrays_of_length_three_with_a_condition ;
2
2
3
- // #Easy #Array #Sliding_Window #2024_12_22_Time_1_ms_ (100.00%)_Space_45.5_MB_(100.00 %)
3
+ // #Easy #Array #2025_01_06_Time_1_ (100.00%)_Space_44.87_(93.12 %)
4
4
5
5
public class Solution {
6
6
public int countSubarrays (int [] nums ) {
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3393_count_paths_with_the_given_xor_value ;
2
2
3
- // #Medium #Dynamic_Programming #Math #Bit_Manipulation
4
- // #2024_12_22_Time_83_ms_(100.00%)_Space_57_MB_(100.00 %)
3
+ // #Medium #Array # Dynamic_Programming #Math #Matrix #Bit_Manipulation
4
+ // #2025_01_06_Time_76_(62.72%)_Space_56.92_(68.41 %)
5
5
6
6
import java .util .Arrays ;
7
7
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3394_check_if_grid_can_be_cut_into_sections ;
2
2
3
- // #Medium #Sorting #Greedy #Simulation #Geometry #Line_Sweep #Grid
4
- // #2024_12_22_Time_136_ms_(100.00%)_Space_128.7_MB_(100.00%)
3
+ // #Medium #Geometry #Line_Sweep #2025_01_06_Time_143_(30.90%)_Space_127.26_(32.16%)
5
4
6
5
import java .util .Arrays ;
7
6
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3395_subsequences_with_a_unique_middle_mode_i ;
2
2
3
- // #Hard #Dynamic_Programming #Sliding_Window #Combinatorics #Subsequence
4
- // #2024_12_22_Time_1115_ms_(100.00%)_Space_45.2_MB_ (100.00%)
3
+ // #Hard #Array #Hash_Table #Math #Combinatorics
4
+ // #2025_01_06_Time_1141_(39.01%)_Space_44.78_ (100.00%)
5
5
6
6
import java .util .ArrayList ;
7
7
import java .util .HashMap ;
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3396_minimum_number_of_operations_to_make_elements_in_array_distinct ;
2
2
3
- // #Easy #Array #Greedy #Simulation #Distinct #Elements #Operations
4
- // #2024_12_22_Time_4_ms_(100.00%)_Space_45_MB_(100.00%)
3
+ // #Easy #Array #Greedy #Simulation #2025_01_06_Time_3_(60.47%)_Space_44.61_(50.65%)
5
4
6
5
import java .util .HashMap ;
7
6
import java .util .Map ;
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3397_maximum_number_of_distinct_elements_after_operations ;
2
2
3
- // #Medium #Array #Greedy #Distinct #Elements #Mathematics #Operations #Optimization
4
- // #2024_12_22_Time_19_ms_(100.00%)_Space_57.8_MB_(100.00%)
3
+ // #Medium #Array #Sorting #Greedy #2025_01_06_Time_19_(84.32%)_Space_57.84_(93.53%)
5
4
6
5
import java .util .Arrays ;
7
6
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3398_smallest_substring_with_identical_characters_i ;
2
2
3
- // #Hard #String #Greedy #Bit_Manipulation #Sliding_Window #Optimization
4
- // #2024_12_24_Time_1_ms_(100.00%)_Space_42.9_MB_(39.83%)
3
+ // #Hard #Array #Binary_Search #Enumeration #2025_01_06_Time_1_(100.00%)_Space_42.72_(39.94%)
5
4
6
5
public class Solution {
7
6
public int minLength (String s , int ops ) {
Original file line number Diff line number Diff line change 1
1
package g3301_3400 .s3399_smallest_substring_with_identical_characters_ii ;
2
2
3
- // #Hard #String #Greedy #Bit_Manipulation #Sliding_Window #Optimization
4
- // #2024_12_24_Time_15_ms_(99.39%)_Space_45.9_MB_(43.03%)
3
+ // #Hard #Bit_Manipulation #Sliding_Window #2025_01_06_Time_15_(98.93%)_Space_45.62_(57.38%)
5
4
6
5
import java .util .ArrayList ;
7
6
import java .util .List ;
Original file line number Diff line number Diff line change 1
1
package g3401_3500 .s3402_minimum_operations_to_make_columns_strictly_increasing ;
2
2
3
- // #Easy #Array #Dynamic_Programming #Greedy #Matrix #Simulation
4
- // #2024_12_29_Time_1_(100.00%)_Space_44.99_(100.00%)
3
+ // #Easy #Matrix #Simulation #2025_01_06_Time_1_(99.95%)_Space_45.24_(62.37%)
5
4
6
5
public class Solution {
7
6
public int minimumOperations (int [][] grid ) {
Original file line number Diff line number Diff line change 1
1
package g3401_3500 .s3403_find_the_lexicographically_largest_string_from_the_box_i ;
2
2
3
- // #Medium #String #Sorting #Greedy #Backtracking #Combinatorics
4
- // #2024_12_29_Time_5_(100.00%)_Space_45.20_(100.00%)
3
+ // #Medium #String #Two_Pointers #Enumeration #2025_01_06_Time_5_(89.70%)_Space_45.38_(80.39%)
5
4
6
5
public class Solution {
7
6
public String answerString (String word , int numFriends ) {
You can’t perform that action at this time.
0 commit comments