Created
February 13, 2022 10:49
-
-
Save KAnanev/4d07164f2691b3c831f40d73210c31b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Задача 1. Даны два списка, нужно вернуть элементы, которые есть в 1-ом списке, но нет во 2-ом. | |
Оценить эффективность своего решения. | |
list(set(a) - set(b)) | |
Задача 2. Дан массив целых чисел. Нужно удалить из него нули. | |
Можно использовать только О(1) дополнительной памяти. | |
set(a).discard(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment