Skip to content

Commit c2bae2a

Browse files
authored
Update Solution.kt
1 parent b6b041b commit c2bae2a

File tree

1 file changed

+0
-15
lines changed
  • src/main/kotlin/g0401_0500/s0407_trapping_rain_water_ii

1 file changed

+0
-15
lines changed

src/main/kotlin/g0401_0500/s0407_trapping_rain_water_ii/Solution.kt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,6 @@ class Solution {
1111
override operator fun compareTo(other: Cell?): Int {
1212
return value - other!!.value
1313
}
14-
15-
override fun equals(o: Any?): Boolean {
16-
if (this === o) {
17-
return true
18-
}
19-
if (o == null || javaClass != o.javaClass) {
20-
return false
21-
}
22-
val cell = o as Cell
23-
return row == cell.row && col == cell.col && value == cell.value
24-
}
25-
26-
override fun hashCode(): Int {
27-
return Objects.hash(row, col, value)
28-
}
2914
}
3015

3116
private var water = 0

0 commit comments

Comments
 (0)