# encoding: utf-8
"""
Created by misaka-10032 (longqic@andrew.cmu.edu).

TODO: purpose
"""


# Definition for an interval.
class Interval(object):
    def __init__(self, s=0, e=0):
        self.start = s
        self.end = e


class Solution(object):
    def canAttendMeetings(self, intervals):
        """
        :type intervals: List[Interval]
        :rtype: bool
        """
        if not intervals:
            return True

        intervals = sorted(intervals, key=lambda i: i.start)
        for prev, this in zip(intervals, intervals[1:]):
            if prev.end > this.start:
                return False
        return True

cdef69baa81a7de7d53d8f032095857ead0c5cf2
<mask token>


class Solution(object):
    <mask token>

<mask token>


class Solution(object):

    def canAttendMeetings(self, intervals):
        """
        :type intervals: List[Interval]
        :rtype: bool
        """
        if not intervals:
            return True
        intervals = sorted(intervals, key=lambda i: i.start)
        for prev, this in zip(intervals, intervals[1:]):
            if prev.end > this.start:
                return False
        return True

<mask token>


class Interval(object):
    <mask token>


class Solution(object):

    def canAttendMeetings(self, intervals):
        """
        :type intervals: List[Interval]
        :rtype: bool
        """
        if not intervals:
            return True
        intervals = sorted(intervals, key=lambda i: i.start)
        for prev, this in zip(intervals, intervals[1:]):
            if prev.end > this.start:
                return False
        return True

<mask token>


class Interval(object):

    def __init__(self, s=0, e=0):
        self.start = s
        self.end = e


class Solution(object):

    def canAttendMeetings(self, intervals):
        """
        :type intervals: List[Interval]
        :rtype: bool
        """
        if not intervals:
            return True
        intervals = sorted(intervals, key=lambda i: i.start)
        for prev, this in zip(intervals, intervals[1:]):
            if prev.end > this.start:
                return False
        return True

# encoding: utf-8
"""
Created by misaka-10032 (longqic@andrew.cmu.edu).

TODO: purpose
"""


# Definition for an interval.
class Interval(object):
    def __init__(self, s=0, e=0):
        self.start = s
        self.end = e


class Solution(object):
    def canAttendMeetings(self, intervals):
        """
        :type intervals: List[Interval]
        :rtype: bool
        """
        if not intervals:
            return True

        intervals = sorted(intervals, key=lambda i: i.start)
        for prev, this in zip(intervals, intervals[1:]):
            if prev.end > this.start:
                return False
        return True
