Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 255 Bytes

2446. Determine if Two Events Have Conflict.md

File metadata and controls

13 lines (10 loc) · 255 Bytes
class Solution:
    def haveConflict(self, event1: List[str], event2: List[str]) -> bool:

        if event1[0]>event2[1]:
            return False

        elif event2[0]>event1[1]:
            return False

        else:
            return True