Re: Hints on recursion



"zion_zii" <nick.kigs@xxxxxxxxx> writes:

> Whoa Pascal !
>
> First of all the problem should have been "..return true if a occurs
> atleast twice in the list.." and not twice. My error = my apologies.
> (Does this make it simpler?)

Yes, at least twice is simplier than exactly twice.

At least twice: ^.*e.*e
Exactly twice: ^[^e]*e[^e]*e[^e]*$


> Im on page 15 of the book and I dont think they expected me to know all
> that (Incidentally, Im just beginning with the basic constructs e.g
> cons, car,cdr etc and dont know much) What is a DFA?

Deterministic Finite Automaton.
It's the mathematical objects behind regular expressions.


> All in all its good to know I can get help here as I tread on the
> supposedly rewarding path of lisp programming. Merci beaucoup pour
> votre aide.


--
__Pascal Bourguignon__ http://www.informatimago.com/
In deep sleep hear sound,
Cat vomit hairball somewhere.
Will find in morning.
.



Relevant Pages

  • Re: new sheriff in town
    ... every single time I haven't listened, ... the douchebags at sfn dont like him because joey boots doesnt like him. ... He's not a "frequent" caller - I've heard him twice. ... suck-ass douchebag, god knows why they put him on. ...
    (alt.fan.howard-stern)
  • Re: can Spinal Taps help diagnose Lyme?
    ... nothing to do with Hydrogen pyroxide or ultra violet light.. ... They use different procedures there and it probably isnt even ... procedure name but I dont. ... Maybe twice a year. ...
    (sci.med.diseases.lyme)
  • Re: new sheriff in town
    ... you dont seem to be listening. ... He's not a "frequent" caller - I've heard him twice. ... suck-ass douchebag, god knows why they put him on. ...
    (alt.fan.howard-stern)
  • Re: new sheriff in town
    ... just because you have only heard him twice kenneth doesnt mean he has ... only called twice. ... the douchebags at sfn dont like him because joey boots doesnt like him. ... suck-ass douchebag, god knows why they put him on. ...
    (alt.fan.howard-stern)
  • Could not load type WebApplication3.itemdetails.
    ... the codebehind statement is set as" ... and works fine (although I dont know why webaplication3 has to be there ... twice, it just does) ...
    (microsoft.public.dotnet.framework.aspnet)