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.
Sorry, it is Java...i've been doing alot in both
Python
Thanks
Hi- what language was this? I agree with you that the answer should have been 6.
Thanks.
;-)
Thanks for the quick response. works perfect now, passes all.
I'm not the best with string/char manipulation.
I spent a lot of time on it and when the large random test didn't match I wanted to check.
Sorry for the delay, because I haven't saw your comment(CW did not give me a notice)
'Hi' should equal 'Hi!!' means that your result is 'Hi' but reference result is 'Hi!!', because original string is 'Hi!!!' ;-)
You should not remove all the exclamation marks from the end of string. You need remove only one exclamation mark from the end of string.
Python version is a translation from @suic
I've checked the test code and I haven't find out any error(Please forgive me for my poor Python skills)
I modified something of random tests:
python
Which language are you using?
got everything to pass except a long random test.
i can print s that is passed in and it doesn't match the output on the expected result displayed
any reason why the string in and string expected would be different?
**to clarify-I don't mean they are different due to the last !, the letters/chars start to differ after several lines in
a testRandomValues passed in 2 customers, [3,6] with 5 registers. it was expecting 2 as the answer.
if 2 customers hit 2 out of 5 registers, the total time should be the longest of the 2, which is 6 seconds to complete