PYTHONTURBORU Telegram 522
🐥 Задача по Python #33

Описание

Напишите функцию scramble(str1, str2), которая возвращает True, если часть символов str1 может быть переставлена так, чтобы соответствовать str2, в противном случае возвращает False.

Примечания

Будут использоваться только строчные буквы (a-z). Пунктуация и цифры не используются.
Необходимо учитывать производительность.

Примеры
scramble('rkqodlw', 'world') # True
scramble('katas', 'steak') # False

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи
👍4👏1



tgoop.com/pythonturboru/522
Create:
Last Update:

🐥 Задача по Python #33

Описание

Напишите функцию scramble(str1, str2), которая возвращает True, если часть символов str1 может быть переставлена так, чтобы соответствовать str2, в противном случае возвращает False.

Примечания

Будут использоваться только строчные буквы (a-z). Пунктуация и цифры не используются.
Необходимо учитывать производительность.

Примеры

scramble('rkqodlw', 'world') # True
scramble('katas', 'steak') # False

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tgoop.com/pythonturboru/522

View MORE
Open in Telegram


Telegram News

Date: |

End-to-end encryption is an important feature in messaging, as it's the first step in protecting users from surveillance. According to media reports, the privacy watchdog was considering “blacklisting” some online platforms that have repeatedly posted doxxing information, with sources saying most messages were shared on Telegram. The initiatives announced by Perekopsky include monitoring the content in groups. According to the executive, posts identified as lacking context or as containing false information will be flagged as a potential source of disinformation. The content is then forwarded to Telegram's fact-checking channels for analysis and subsequent publication of verified information. During a meeting with the president of the Supreme Electoral Court (TSE) on June 6, Telegram's Vice President Ilya Perekopsky announced the initiatives. According to the executive, Brazil is the first country in the world where Telegram is introducing the features, which could be expanded to other countries facing threats to democracy through the dissemination of false content. To delete a channel with over 1,000 subscribers, you need to contact user support
from us


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM American