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.
Thankes!
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
Problem with acronym at the end of sentence, e.g. test result:
It should work for random inputs too: 'FZM is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'U. ZghDiYC VIuuH out of office. Call to action. FZM. UN cqyPZkwquH. JhhWvTulkG in a meeting call to action bJmIymJXox dip the end of the day QIp the end of the day. Call to action. Jw.'
Seemingly this should reject "FZM" for being unknown, but the period is hiding it from the reference solution.
Following the issue below:
There should be these 2 fixed and sample tests in all languages, possibly random tests too.
sdfsdsa KPI.WAH.
(can only be determined after description is made clear)sdfsdsa KPIWAH.
(should returnKPIWAH is an acronym. I do not like acronyms. Please remove them from your email.
)Description lacks clarity...
So, can it be combined with "." as well or must it be kept as a single word to be considered valid?
What about cases of other non-sentence-separating puncutations,
,;:'"
??Approved (
Crystal: The current reference solution is not able to detect "non-acronym" followed by a full-stop. Causing it to return a wrong solution sometimes.
For example:
This comment is hidden because it contains spoiler information about the solution
python new test framework is required. updated in this fork
"Any combination of three or more letters in upper case will be considered an acronym."
Therefore in the Python random tests... shouldn't the test case for "M. ATpcqg EOD. mFsUUS" return"
"UUS is an acronym. I do not like acronyms. Please remove them from your email."
Another example: 'EOD ImFTWG CuG. DP. txiiEY. CTA kLx. FSAzk. TuvxSUAy oLRS. SWOT NRN.'
My code returns
"FTWG is an acronym. I do not like acronyms. Please remove them from your email."
But the tests result says,
"It should work for random inputs too: 'FTWG is an acronym. I do not like acronyms. Please remove them from your email.' should equal 'The end of the day ImFTWG CuG. DP. TxiiEY. Call to action kLx. FSAzk. TuvxSUAy oLRS. Strengths, weaknesses, opportunities and threats no reply necessary.".
I'll be continuing to the next Kata now thanks.
Thany you.
Your code not working is not an issue (= a bug in the kata), Please read this: https://docs.codewars.com/training/troubleshooting/
i passed all test but seem to fail the attemp, what could be the problem?(sorry i'm new to this website)
I'd like to know what are those pythonistic solutions. I mainly write in JavaScript
Loading more items...