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 aecb1d3 commit 7ab36baCopy full SHA for 7ab36ba
src/main/kotlin/g3601_3700/s3625_count_number_of_trapezoids_ii/Solution.kt
@@ -63,13 +63,13 @@ class Solution {
63
val lineId = nx.toLong() * x1 + ny.toLong() * y1
64
val slopeKey = Slope(dx, dy)
65
slopeLines
66
- .computeIfAbsent(slopeKey) { k: Slope -> HashMap() }
+ .computeIfAbsent(slopeKey) { _: Slope -> HashMap() }
67
.merge(lineId, 1) { a: Int, b: Int -> Integer.sum(a, b) }
68
val mx = x1 + x2
69
val my = y1 + y2
70
val mid = Pair(mx, my)
71
midpointSlopes
72
- .computeIfAbsent(mid) { k: Pair -> HashMap() }
+ .computeIfAbsent(mid) { _: Pair -> HashMap() }
73
.merge(slopeKey, 1) { a: Int, b: Int -> Integer.sum(a, b) }
74
}
75
0 commit comments