Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197254
| From | HenHanna <HenHanna@dev.null> |
|---|---|
| Newsgroups | rec.puzzles, comp.lang.lisp, comp.lang.python |
| Subject | (hijk is a Subseq of Hijack) (abcde is a Subseq of Absconded) |
| Date | 2025-02-16 18:54 +0000 |
| Organization | novaBBS |
| Message-ID | <3375c051ba0285b18865c4799b391d36@www.novabbs.com> (permalink) |
Cross-posted to 3 groups.
Does this come standard in a library (package) in Python or
(Gauche)Scheme?
________________
def Subseq(X, Y):
i,j = 0,0
while i < len(X) and j < len(Y):
if X[i] == Y[j]: i += 1
j += 1
return i == len(X)
___________________ (abcde is a Subseq of Absconded)
___________________ (hijk is a Subseq of Hijack)
Back to comp.lang.python | Previous | Next | Find similar
(hijk is a Subseq of Hijack) (abcde is a Subseq of Absconded) HenHanna <HenHanna@dev.null> - 2025-02-16 18:54 +0000
csiph-web