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 was a really fun kata. I'm a bit concerned that Codewars doesn't sanitize the HTML formatting in their strings though. Like... It makes things extra easy to read, but isn't that a liability!? Or are only certain formatting tokens allowed?
Using BigInteger decreases the difficulty of this kata greatly. Unless this is addressed, I think this kata is far too easy for its difficulty. :/
The tricky test cases like the "Bananas in Bahamas" did lead me to pleasant additional discoveries though, so I did find that aspect really enjoyable!
I thought this kata was pretty neat!
One of the test cases required the handling of extra characters, with its test case expecting that there cannot be any extra characters in the remaining string parts. However, this isn't specified clearly in the problem text.
I recommend to add this as another restriction, something like, "are in the same order as in
s
" AND "do not contain extra characters afters
". Or something like that.If you link your Github to your Codewars profile, your Github avatar will sync over to Codewars. :)
howMany has the possibility of being a decimal number due to your math. Be sure to properly convert it to an integral value!
This comment is hidden because it contains spoiler information about the solution
It sounds like your GetReadableTime method is not returning anything.
Try including that test case in your example cases and trace your code to see if your code can't properly handle that input. Your input for that case should be 23050 seconds.
Man, this kata in C# made me realize how inconsistent PadRight and PadLeft are. Reeeeeeeeeeeeeeeeeeeeee.
What a cute little scenario. I just have minor suggestions in touching up the text.
While motif (also motive) are often words used as the dominant theme/idea for an artistic work, it's not the best word to use for something as casual vacation photos. A more appropriate word would be "subject" or something like that.
This sentence is also worded rather weirdly: "However, Charlie doesn't like this sessions, since the motive usually repeats."
Perhaps reword it to, "However, Charlie doesn't like these sessions, since he usually sees the same photos over and over again."
Cheers!