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

Commit72e6a3f

Browse files
refactor 598
1 parentb704d10 commit72e6a3f

File tree

1 file changed

+9
-7
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+9
-7
lines changed

‎src/main/java/com/fishercoder/solutions/_598.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@
4141

4242
publicclass_598 {
4343

44-
publicintmaxCount(intm,intn,int[][]ops) {
45-
intx =m;
46-
inty =n;
47-
for (int[]op :ops) {
48-
x =Math.min(x,op[0]);
49-
y =Math.min(y,op[1]);
44+
publicstaticclassSolution1 {
45+
publicintmaxCount(intm,intn,int[][]ops) {
46+
intx =m;
47+
inty =n;
48+
for (int[]op :ops) {
49+
x =Math.min(x,op[0]);
50+
y =Math.min(y,op[1]);
51+
}
52+
returnx *y;
5053
}
51-
returnx *y;
5254
}
5355
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp