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.
10K++ people passed. You should opt for an O(N) approach, O(N^2) with more than 1 loop iteration may time out.
No, I can't speak Portuguese.
Unfortunately,
652
is not a perfect square (sqrt(652) ≈ 25.5342907), whereas625
is (625 = 25 * 25). The correct answer to return here is625
.Thankes!
It keeps telling me that '652 should equal 625' even though 652 is bigger than 625!
Wow, just wow.
Your code fails to take into account when only the first letter of the word is in lowercase & the rest is uppercase:
tBAWJUB
becomesTBAWJUB
=> Technically not an acronym, but first letter of the first word of a sentence should be uppercased.The random has a bug:
It should work for random inputs too: 'TBAWJUB is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'TBAWJUB PjqFAAUlcG strengths, weaknesses, opportunities and threats. FE j call to action. Hw. Key performance indicators. X. In a meeting. EWjqwuFMnh. To be decided'
TBAWJUB is a acronym though
Using Python
yes
Me too, I'm using python and I acctually went through the test too, but it was the random test that was wrong! D:
Please help.
Can you stop the rounding in any way?
Thanks!! :D
I don't see any way to pass the LOOOONG list that has, like, 1 mil items in it. Is there any way to get past that? I'm using python.
As you iterate through your list (
text
here),you are conditionally removing elements from the list.
This will result in unpredictable behaviour.
If removal is necessary, iterate over a copy of the list
or use techniques such as iterating backwards
to avoid index shifting issues.
This comment is hidden because it contains spoiler information about the solution