Skip to content

Instantly share code, notes, and snippets.

View walteraa's full-sized avatar
🎯
Focusing

Walter Alves walteraa

🎯
Focusing
View GitHub Profile
@walteraa
walteraa / include.py
Created January 29, 2019 17:14
Hotjar
def solve(input_list,to_find_list):
if len(input_list) < len(to_find_list):
return False
i = 0
to_find_size = len(to_find_list)
while (i + to_find_size) <= len(input_list):
if input_list[i:i+to_find_size] == to_find_list:
return True
i += 1
return False