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.
set(a + b) может быть чуть быстрее для небольших списков, так как:
a + b создаёт новый список за линейное время (O(n + m)), но без накладных расходов на вызов методов.
set(a).union(b) требует создания промежуточного множества и вызова метода, что добавляет небольшую константу.
This comment is hidden because it contains spoiler information about the solution
conditions allow such lines:
If at least one of the two interpretations is correct, and its value == n
And the line with x matches the other rules (exactly one x, no leading zeros in the allowed substitution)
→ It must be included in the result.
XD
XD
This comment is hidden because it contains spoiler information about the solution
bitwise operation "And" :3
cool
XD
The year was 2025, and people were still excited about this method! XD