
https://gitlab.com/mikler/glaber
Уже собраны пакеты, можно тестировать.
https://gitlab.com/mikler/glaber/tree/master/releases
Issues - приветствуються.
Чат в Telegram: https://t.me/glaber_group
Size: a a a
xs = [1, 2, 5, 6]И нагуглил красивое (как по мне) решение:
ys = [2, 3, 4, 5]
print list(pairs(xs, ys))
# [(1, None), (2, 2), (None, 3), (None, 4), (5, 5), (6, None)]
from collections import deque3й параметр
def pairs(xs, ys, cmp):
xs = deque(sorted(xs))
ys = deque(sorted(ys))
while xs and ys:
c = cmp(xs[0], ys[0])
if c == 0:
yield xs.popleft(), ys.popleft()
elif c < 0:
yield xs.popleft(), None
else: # c > 0:
yield None, ys.popleft()
for x in xs: yield x, None
for y in ys: yield None, y
cmp
конечно можно выкинуть и подправить if-elif на обычное сравнение.lsof -i :19421https://medium.com/@jonathan.leitschuh/zoom-zero-day-4-million-webcams-maybe-an-rce-just-get-them-to-visit-your-website-ac75c83f4ef5
kill -9 [process number]
rm -rf ~/.zoomus
touch ~/.zoomus