Leetcode, practise algorithm in ruby 26 Words | 0 Min | Posted on 2015-05-06 | | Views Enumerable, partition, method, partition the enumerable(like array) into two sets, one is true based on the block result.inject(:+), get the sum of the enumerable.