Ad
  • Custom User Avatar

    The test coverage is inadequate as it passed my code which was supposed to fail with following test.

    Test.assert_equals(solution([{:a => 9}, {:a => 3}, {:a => 5, :b => 3}, {:a => 5}, {:a => 2}], :a), [{:a=>2}, {:a=>3}, {:b=>3, :a=>5}, {:a=>5}, {:a=>9}])