Skip to content

Commit fe7d8cb

Browse files
authored
Update GENERAL_NOTES.md
1 parent 69b658e commit fe7d8cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

GENERAL_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ class MinStack() {
3535
}
3636
}
3737
```
38+
39+
40+
**Max/Min heap in Kotlin**
41+
- Min Heap - `val minHeap = PriorityQueue<Int>()`
42+
- Max Heap - `val maxHeap = PriorityQueue<Int>(Collections.reverseOrder())`

0 commit comments

Comments
 (0)