Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d6af5c

Browse files
authored
Improved task 3464
1 parentbeebc13 commit6d6af5c

File tree

2 files changed

+6
-6
lines changed
  • src/main/java/g3401_3500
    • s3464_maximize_the_distance_between_points_on_a_square
    • s3465_find_products_with_valid_serial_numbers

2 files changed

+6
-6
lines changed

‎src/main/java/g3401_3500/s3464_maximize_the_distance_between_points_on_a_square/Solution.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
packageg3401_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

55
importjava.util.Arrays;
66

77
publicclassSolution {
8-
publicintmaxDistance(intside,int[][]pts,intk) {
9-
intn =pts.length;
8+
publicintmaxDistance(intside,int[][]points,intk) {
9+
intn =points.length;
1010
long[]p =newlong[n];
1111
for (inti =0;i <n;i++) {
12-
intx =pts[i][0];
13-
inty =pts[i][1];
12+
intx =points[i][0];
13+
inty =points[i][1];
1414
longc;
1515
if (y ==0) {
1616
c =x;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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%)
33
SELECT*FROM productsWHERE description REGEXP'SN[0-9]{4}-[0-9]{4}$'
44
OR description REGEXP'SN[0-9]{4}-[0-9]{4}[^0-9]+'ORDER BY product_id

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp