Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
What would be the problem with 2 million ingredients? That this solution has no early return in case of 0? If you return any positive value, you have to look at all ingredients either way.
what if the recipe has 2 million ingredients? ok ok, I'm overthink, I think that this solution fits very will for the whole context of the problem
is
doesn't work the same way as==
for non-primitive types.at least, they aren't public, this time... 'x)
I don't see any drafts.
I just created one single fork, but I also see a draft (with the very same content).
How bad is that new bug? As in: do you also see the draft in the current page?
edit: not on the page you'll land on when accessing this comment, but on the root page of the fork (top left link: "rooted by...")
Everything (except the last point) is wrong in this AI-generated text.
P.S. Do not submit AI-generated solutions.
Проблемы
Регулярное выражение
r'(?=[a-z])([qwrtypsdfghjklzxcvbnm])([a-z])'
— Оно не учитывает пунктуацию и цифры, а также не гарантирует, что будет обрабатывать только слова целиком.
— Символ (?=[a-z]) не нужен, если использовать группы согласных и гласных.
— Флаг re.I делает регистр неважным, но вы пытаетесь обрабатывать регистр вручную, что может привести к ошибкам.
Обработка регистра
— Ваш код предполагает, что первая буква согласных — заглавная, если слово начиналось с заглавной согласной, но не учитывает, что после переноса согласных в конец слово может потерять заглавную букву, если она не первая.
— Не обрабатывается случай, когда слово начинается с гласной и имеет заглавную букву.
Пунктуация и цифры
— Ваш код не сохраняет знаки препинания и не оставляет цифры без изменений.
— Если слово заканчивается пунктуацией, она может быть потеряна или обработана некорректно.
Печать в функции sub
— print(m, m, m) — это для отладки, но не влияет на работу функции.
this kata so ahh they should've included some article
thank you
"For your convenience the points for each color are provided as hash / dictionary with the name blz".
blz
should be defined in Preloaded.Thanks for this
Thank you, added it
No sample test cases.
Loading more items...