Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 393 Bytes

822.md

File metadata and controls

24 lines (15 loc) · 393 Bytes

Card Flipping Game

Description

link


Solution

  • See Code

Code

class Solution:
    def flipgame(self, fronts: List[int], backs: List[int]) -> int:
        same = {x for x, y in zip(fronts, backs) if x == y}
        return min([i for i in fronts + backs if i not in same] or [0])