Skip to content

Commit 1fdbf49

Browse files
fix build
1 parent 3dbf2e4 commit 1fdbf49

File tree

1 file changed

+6
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+6
-2
lines changed

src/main/java/com/fishercoder/solutions/_149.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public class _149 {
4040
public static class Solution1 {
4141
/** credit: https://leetcode.com/problems/max-points-on-a-line/discuss/47113/A-java-solution-with-notes */
4242
public int maxPoints(Point[] points) {
43-
if (points == null) return 0;
44-
if (points.length <= 2) return points.length;
43+
if (points == null) {
44+
return 0;
45+
}
46+
if (points.length <= 2) {
47+
return points.length;
48+
}
4549

4650
Map<Integer, Map<Integer, Integer>> map = new HashMap<>();
4751
int result = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy