Ruby Hash - Addition, Deletion, Selection

  • + 0 comments

    Try this-

    hackerrank.store(543121, 100)

    hackerrank.keep_if { |key, value| key.is_a?(Integer) }

    hackerrank.delete_if { |key, value| key.even? }