OT: CS education gone wrong (Was: Re: TDD is BS?)
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Jun 22 09:38:32 PDT 2013
On 6/22/13 7:10 AM, Adam D. Ruppe wrote:
> On Saturday, 22 June 2013 at 13:55:26 UTC, Jérôme M. Berger wrote:
>> I haven't tried running it, but this looks to me like it won't find
>> "ababc" in "abababc"...
>
>
> You're right. I should have went backwards all the way, not just in the
> one case.
>
> This passes all the tests:
It's still buggy. Overly complicated, too - at 21 lines, it's about
twice as large as the canonical implementation.
Andrei
More information about the Digitalmars-d
mailing list