We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc687c commit f50487fCopy full SHA for f50487f
src/main/java/com/fishercoder/solutions/_149.java
@@ -40,8 +40,12 @@ public class _149 {
40
public static class Solution1 {
41
/** credit: https://leetcode.com/problems/max-points-on-a-line/discuss/47113/A-java-solution-with-notes */
42
public int maxPoints(Point[] points) {
43
- if (points == null) return 0;
44
- if (points.length <= 2) return points.length;
+ if (points == null) {
+ return 0;
45
+ }
46
+ if (points.length <= 2) {
47
+ return points.length;
48
49
50
Map<Integer, Map<Integer, Integer>> map = new HashMap<>();
51
int result = 0;
0 commit comments