Ad
  • Custom User Avatar

    .

  • Custom User Avatar
    [ '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' ]
                                                              ^                     ^
                                                         T-8 and F-8           F-9 and T-9
    
  • Custom User Avatar

    ..

  • Custom User Avatar

    @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...

  • Custom User Avatar

    yeah thanx @vatsan

  • Custom User Avatar

    --delete--ignore

  • Custom User Avatar

    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..

  • Custom User Avatar

    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)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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

  • Custom User Avatar

    thanx, I m new here I forgot that i need to return the answer instead of directly printing it

  • Custom User Avatar

    You can't be serious raising an issue about fixed tests. Your code is not returning anything.

  • Custom User Avatar

    python

    Test Results:
    Log
    (((
    None should equal '((('
    Log
    ()()()
    None should equal '()()()'
    Log
    )())())
    should ignore case: None should equal ')())())'
    Log
    ))((
    None should equal '))(('