It seems you're confused about what to return, it's not the number with a single digit, it's the number of steps it takes you to get it.
These are the Sample Tests for Ruby:
describe "Persistence" do it "Basic tests" do Test.assert_equals(persistence(39),3) Test.assert_equals(persistence(4),0) Test.assert_equals(persistence(25),2) Test.assert_equals(persistence(999),4) Test.assert_equals(persistence(444),3) end end
Click reset if you see other thing.
Loading collection data...
It seems you're confused about what to return, it's not the number with a single digit, it's the number of steps it takes you to get it.
These are the Sample Tests for Ruby:
Click reset if you see other thing.