in reply to Re^2: Benchmarking "Are all these characters in this sentence?"
in thread Benchmarking "Are all these characters in this sentence?"

They pass the 0,0,1 test for me, as I'd expect.

The 0 prematurely ends the while loop without checking for a 0 in the sentence (or any earlier characters in the wantedLetters string), so they return 1.

  • Comment on Re^3: Benchmarking "Are all these characters in this sentence?"

Replies are listed 'Best First'.
Re^4: Benchmarking "Are all these characters in this sentence?"
by RMGir (Prior) on Sep 01, 2008 at 17:14 UTC
    Corrected, thanks!

    Mike
        I doubt it - I'm guessing you're going to post buk5 which passes the tests, because buk4 doesn't :)

        Mike