Skip to content

Instantly share code, notes, and snippets.

View vivek-vijayan's full-sized avatar
✔️
Focusing on developing new model for ML

Vivek Vijayan vivek-vijayan

✔️
Focusing on developing new model for ML
View GitHub Profile
@vivek-vijayan
vivek-vijayan / subsequence.py
Last active April 25, 2025 08:39
Quicker way of finding the Sub sequence values
a = "abcdefg"
l = ["a", "acef", "defg", "gg"]
word_count = 0
for word in l:
i = 0 # pointer in main string
for ch in word:
i = a.find(ch, i)
if i == -1: