Skip to content

Commit ac7639b

Browse files
committed
feat:leetcode
1 parent c828b10 commit ac7639b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MaxPointsOnALine/max_points_on_a_line.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ class B {
9292
}
9393

9494
int maxPoints(List<List<int>> points) {
95-
int v = 0;
95+
// int v = 0;
9696
int res = 0;
9797
int len = points.length;
9898
if (len < 3) return len;
9999
for (int i = 0; i + res < len; i++) {
100100
HashMap<String, int> m = HashMap();
101101
int x1 = points[i][0], y1 = points[i][1], v = 0, maxv = 0, dups = 0;
102-
int nIdentical = 0;
102+
// int nIdentical = 0;
103103
// start with i+1, since if any previous point is on the same line,
104104
// then this was already calculated then that point was a starting point
105105
for (int j = i + 1; j < len; j++) {
@@ -151,7 +151,7 @@ class C {
151151
for (int i = 0; i + res < len; i++) {
152152
Map<String, int> m = {};
153153
int x1 = points[i][0], y1 = points[i][1], v = 0, maxV = 0, dups = 0;
154-
int nIdentical = 0;
154+
// int nIdentical = 0;
155155
for (int j = i + 1; j < len; j++) {
156156
int x2 = points[j][0], y2 = points[j][1];
157157
int dx = x2 - x1, dy = y2 - y1;

MinimumWindowSubstring/minimum_window_substring.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class A {
5353
int i = 0, j = 0;
5454
List<int> cht = List.filled(100, 0);
5555
int m = s.length,
56-
n = t.length,
56+
// n = t.length,
5757
cnt = 0,
5858
reqcnt = 0,
5959
min = double.maxFinite.toInt();

0 commit comments

Comments
 (0)