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.
.
..
@vatsan just saw your solution I wanted my solution to be like yours but don't know how I end up writing this..
and also why the hell I m using mk = True when i could have just use continue..instead.... lol xD thanks anyways...
yeah thanx @vatsan
--delete--ignore
1st guy to put card in middle is Flash then turtle will put card in middle if it matches with flash card whoever says snap first wins( its always going to be flash) and all the card in middle will be given to flash (appended in flash pile hence now middle has been reset ie no card in middle) if flash and turtle card does'nt matches then flash is going to put card on top of last card in middle if it still doesn't matches turtle will put the card..nd so on..
I can't see any snap here, but it expects 2. How come?
Test.assertEquals(snap([ '3','K','5','A','5','6','7','J','7','9','10','Q','Q','6','8','7','4','J','8','9','K','J','10','4','K','4' ],
[ '2','8','9','Q','A','K','6','3','J','2','4','3','3','8','A','2','6','7','9','10','A','5','Q','10','2','5' ]),2)
This comment is hidden because it contains spoiler information about the solution
my code is passing all the sample test cases but not able to clear few random test cases in which expected output is either greater or smaller than mine by 1
Time: 517ms Passed: 101 Failed: 5 Exit Code: 1
thanx, I m new here I forgot that i need to return the answer instead of directly printing it
You can't be serious raising an issue about fixed tests. Your code is not returning anything.
python
Test Results:
Log
(((
None should equal '((('
Log
()()()
None should equal '()()()'
Log
)())())
should ignore case: None should equal ')())())'
Log
))((
None should equal '))(('