README.md in ruby_collections-0.0.1 vs README.md in ruby_collections-0.0.2

- old
+ new

@@ -20,22 +20,28 @@ ## Usage Supported Data Structures: Max Heap, Min Heap +### RubyCollections::MaxHeap + +```ruby + max_heap = RubyCollections::MaxHeap.new max_heap.insert(1) max_heap.insert(4) max_heap.heap # => [nil, 1, 4] -max_heap.min # => 1 +max_heap.max # => 4 -max_heap.extract_min # => 1 +max_heap.extract_max # => 4 -max_heap.min # => 4 +max_heap.max # => 1 + +``` Similarly we can use MinHeap as well. ## Development