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.
How should I know how many cards bob will take?
if the number of cards is even, the players can either take half of the cards from the stack, or only 1 card -- as they choose;
According to: The aim of the game is to collect the most cards.
This test is wrong: test.assert_equals(card_game(100000000000), 99999999950)
Because after first round:
Alice should take: 50000000000 and Bob should take: 25000000000 cards....
And if the answer is: 99999999950 -> means that Bob took only 50 cards at all
Cool, couldn't figure out where to put if/else in join !!! Thanks
its not creative, its basic for 2 dimesional arrays .....
I vote as best practice !!!
Always forget about max comparing option... LIKE
This comment is hidden because it contains spoiler information about the solution
As I know, sorted already returns a "list"
I think they prefer to avoid it because its easy to get lost in it ....
But it's a nice feature! I really love it
I think, the best will be to extend description and specify it,
and let warriors pass test on the fly and don't debug the test results...
return a new array/tuple of two integers,
It accepts only tuples
[80, 0] should equal (80, 0)
How is this possible? Two identical input data, each one expects different results ?
Log
corect: False <class 'bool'>
entered: 0
exp: September 25, 2014
cur: September 5, 2014
25
5
exp: 2014-09-25 00:00:00
cur: 2014-09-05 00:00:00
True should equal False
Log
corect: False <class 'bool'>
entered: 0
exp: September 25, 2014
cur: September 5, 2014
25
5
exp: 2014-09-25 00:00:00
cur: 2014-09-05 00:00:00
Test Passed
Can someone explain me, Am I missing something ?
exp: September 25, 2014
cur: September 5, 2014
25
5
exp: 2014-09-25 00:00:00
cur: 2014-09-05 00:00:00
True should equal False
Am I missing something from the description ? where it says about the whole string to uppercase?
solve("coDe") = "code". Lowercase characters > uppercase. Change only the "D" to lowercase.
solve("CODe") = "CODE". Uppercase characters > lowecase. Change only the "e" to uppercase.
solve("coDE") = "code". Upper == lowercase. Change all to lowercase.
Test:
'KEiQLsvZsioCaDTmGZirCNOqTJERHQVdaTHXoyryuOMLfwvULuyKkCgnPDaVvBivlBRqohROkUjKbEJDLdgHSrTSWLQtYgnmiVhn'
should equal
'KEIQLSVZSIOCADTMGZIRCNOQTJERHQVDATHXOYRYUOMLFWVULUYKKCGNPDAVVBIVLBRQOHROKUJKBEJDLDGHSRTSWLQTYGNMIVHN'
Every thing that is hard coded or using simple functions should be faster
Are you looping through vowels instead of string(a) with just replacing the desired chars ???
!!!! W@S!!!! CLS*!!!! D@MN!!! L*L!!!!
Loading more items...