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 b6b041b commit c2bae2aCopy full SHA for c2bae2a
src/main/kotlin/g0401_0500/s0407_trapping_rain_water_ii/Solution.kt
@@ -11,21 +11,6 @@ class Solution {
11
override operator fun compareTo(other: Cell?): Int {
12
return value - other!!.value
13
}
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
29
30
31
private var water = 0
0 commit comments