Question: Hello! This is my question from CodeWars for my own personal coding practice. I have been stuck for 2 hours, can someone help me figure

Hello! This is my question from CodeWars for my own personal codingHello! This is my question from CodeWars for my own personal coding practice. I have been stuck for 2 hours, can someone help me figure this out? new to programming and I tried 10 different things but I pass all tests except the 0.5. Literally passes every test( huge number, negative, random, shuffled, long array) besides the 'basic test' due to that 1 issue and I can not seem to figure it out. Thank you for your knowledge.

LANGUAGE IS RUBY

Solution This is the first kata in series: 1. Find the unique number (this kata) Sample Tests 2. Find the unique string 3. Find The Unique it "should test for something" do Test.assert_equals(find_uniq ([1,1,1,1,0]), 0 ) Test.assert_equals(find_uniq ([1,1,1,2,1,1]),2); Test.assert_equals(find_uniq ([0,0,0.55,0,0]),0.55); end end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!