Your function is OK, but has incorrect name. Name of the function has to be "getCount", because the tests are looking for function of the name "getCount".
function getCount (str) {
//your code
return cost
}
Spend three days solving this, had learned a lot about pow modulo arithmetics and PF, but was not able to find solution - 2300+ passed tests but timed out. Anyway this is really not same 3kyu as similar pow modulo katas e.g. https://www.codewars.com/kata/5518a860a73e708c0a000027. This kata needs a lot more knowledge in number theory than other similar katas.
Please provide language (JavaScript?) and your code, cause it is difficult to give you any advice without info. Maybe you should check edge cases - empty string?
:) all kudos to user Doctorkst and his Java version solution! I have just used it in my python translation of this Kata, because the simplicity of solution eased me the translation - creating the tests.
Hi, thanx for review! As an author of Python translation I have to mention that that link in description was already in original Java version, it is not my addition.
Your function is OK, but has incorrect name. Name of the function has to be "getCount", because the tests are looking for function of the name "getCount".
function getCount (str) {
//your code
return cost
}
Can you be more specific? Error message?
[JavaScript] example tests are not implemented at all.
Hi, Python translation is ready to be reviewed and approved: https://www.codewars.com/kumite/63c2e0017a10c31859770d49?sel=63c2e0017a10c31859770d49
This 5kyu kata is harder version of 4kyu kata?:)
Spend three days solving this, had learned a lot about pow modulo arithmetics and PF, but was not able to find solution - 2300+ passed tests but timed out. Anyway this is really not same 3kyu as similar pow modulo katas e.g. https://www.codewars.com/kata/5518a860a73e708c0a000027. This kata needs a lot more knowledge in number theory than other similar katas.
Please provide language (JavaScript?) and your code, cause it is difficult to give you any advice without info. Maybe you should check edge cases - empty string?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hi. PLease review and approve C translation. https://www.codewars.com/kumite/639a132686b6980016a6f64c?sel=639a132686b6980016a6f64c
Hi, PHP translation is ready for review and approval. Thanks in advance. https://www.codewars.com/kumite/6394da67f8526a00578e88dd?sel=6394da67f8526a00578e88dd
:) all kudos to user Doctorkst and his Java version solution! I have just used it in my python translation of this Kata, because the simplicity of solution eased me the translation - creating the tests.
Done, new Python translation fork is pending. Thank you.
One more thanks:) Edited, needs approval.
Hi, thanx for review! As an author of Python translation I have to mention that that link in description was already in original Java version, it is not my addition.
Loading more items...