• Custom User Avatar

    ohh okhay

  • Custom User Avatar

    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.

  • Custom User Avatar

    Nope those are the default test codes. It shows the same after reset. Even if I change them manually, everything test case pass for test but not attempt and submit.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution