Commit 9387472

mo <mokha@cisco.com>
2017-05-25 23:58:48
comment out slow implementation.
1 parent 614e15d
Changed files (1)
spec/triplet_sum_spec.rb
@@ -99,9 +99,9 @@ describe "triplet sum" do
     false
   end
 
-  def triplet_sum(target, items)
-    items.combination(3).to_a.any? { |x| x.reduce(:+) == target }
-  end
+  #def triplet_sum(target, items)
+    #items.combination(3).to_a.any? { |x| x.reduce(:+) == target }
+  #end
 
   it do
     expect(triplet_sum(15, [14, 1, 2, 3, 8, 15, 3])).to be(false)