menu
dsa_kit package
documentation
heap/min_heap.dart
MinHeap<T extends Comparable>
peek method
peek method
dark_mode
light_mode
peek
method
@
override
T?
peek
(
)
override
Peek the smallest element without removing it.
Implementation
@override T? peek() => isEmpty ? null : _heap.first;
dsa_kit package
documentation
heap/min_heap
MinHeap<T extends Comparable>
peek method
MinHeap class