File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
s3464_maximize_the_distance_between_points_on_a_square
s3465_find_products_with_valid_serial_numbers Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11package g3401_3500 .s3464_maximize_the_distance_between_points_on_a_square ;
22
3- // #Hard #Array #Greedy #Binary_Search #2025_02_25_Time_18_ms_ (98.51%)_Space_49.78_MB_(46.27 %)
3+ // #Hard #Array #Greedy #Binary_Search #2025_02_27_Time_17_ms_ (98.18%)_Space_50.10_MB_(41.82 %)
44
55import java .util .Arrays ;
66
77public class Solution {
8- public int maxDistance (int side , int [][] pts , int k ) {
9- int n = pts .length ;
8+ public int maxDistance (int side , int [][] points , int k ) {
9+ int n = points .length ;
1010 long [] p = new long [n ];
1111 for (int i = 0 ; i < n ; i ++) {
12- int x = pts [i ][0 ];
13- int y = pts [i ][1 ];
12+ int x = points [i ][0 ];
13+ int y = points [i ][1 ];
1414 long c ;
1515 if (y == 0 ) {
1616 c = x ;
Original file line number Diff line number Diff line change 11# Write your MySQL query statement below
2- # #Easy #Database #2025_02_25_Time_716_ms_(100.00 %)_Space_0.0_MB_(100.00%)
2+ # #Easy #Database #2025_02_26_Time_292_ms_(90.91 %)_Space_0.0_MB_(100.00%)
33SELECT * FROM products WHERE description REGEXP ' SN[0-9]{4}-[0-9]{4}$'
44OR description REGEXP ' SN[0-9]{4}-[0-9]{4}[^0-9]+' ORDER BY product_id
You can’t perform that action at this time.
0 commit comments