Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk]

Liste des GroupesRevenir à cl python 
Sujet : Re: ( Substring function in Python, Lisp) -- [Hijack] contains [hijk]
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.lisp
Date : 16. Feb 2025, 08:30:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <874j0ucpn1.fsf@nightsong.com>
References : 1 2
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Madhu <enometh@meer.net> writes:
(intern-runs "hijacks")
;; => (0 . 3) - longest substr of length 3 at position 0

I think that is not the question that was asked.  Although OP used the
term "substring", I think what was actually wanted is usually called a
subsequence, i.e. the characters in it don't have to be consecutive.  So
"hijacks" has HIJK which has length 4.  "firefighting" and
"prizefighting" both have EFGHI which has length 5.

Date Sujet#  Auteur
7 Jun 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal