fork download
  1. class Interval(object):
  2. def __init__(self, s=0, e=0):
  3. self.start = s
  4. self.end = e
  5.  
  6. class Solution(object):
  7. def canAttendMeetings(self, intervals):
  8. """
  9. :type intervals: List[Interval]
  10. :rtype: bool
  11. """
  12. print type(intervals)
  13.  
  14. return True
  15.  
  16. B = Solution()
  17. print B.canAttendMeetings([Interval(20,30),Interval(25,30)])
  18.  
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
<type 'list'>
True