Skip to content

Instantly share code, notes, and snippets.

View gunlinux's full-sized avatar

gunlinux gunlinux

View GitHub Profile
@gunlinux
gunlinux / slow.py
Created December 21, 2017 02:25 — forked from gugu/slow.py
# Возвращаем элементы первого массива, которые есть во втором
import random
import time
def intersection_with_loops(first_array, second_array):
result = []
for first_element in first_array:
if first_element in second_array:
result.append(first_element)
return result