252. Meeting Rooms

class Solution {
public:
    
    static bool compare1(vector<int> & a, vector<int>& b){
        return a[0] < b[0];
    }
    
    bool canAttendMeetings(vector<vector<int>>& intervals) {
        sort(intervals.begin(),intervals.end(),compare1);
        priority_queue<int, vector<int>, greater<int> > pq ;
        
        for(int i=0; i<intervals.size();i++){
            if(pq.empty()==false && pq.top() <= intervals[i][0]){
                pq.pop();
                pq.push(intervals[i][1]);
            }else{
                pq.push(intervals[i][1]);
            }
        }
        printf("pq.size=%d\n",pq.size());
        
        if(pq.size()>1){
            return false;
        }else{
            return true;
        }
    }
};

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1. "Effective Meeting Room Booking Management System Design Based on Wi-Fi Technology" by Faustino Sampedro-Cuesta, Manuel Ángel Sánchez-Roldán, and Carlos Torrecilla-Sánchez. In this study, the authors propose a meeting room booking management system that utilizes Wi-Fi technology to automate the reservation process and improve efficiency. The system also includes features that allow users to check the availability of meeting rooms in real-time. 2. "A web-based system for scheduling and reserving meeting rooms" by Ying Zhang and Susana Sánchez. This paper describes the development of a web-based meeting room scheduling system that enables users to reserve meeting rooms, view the availability of rooms, and manage reservations. The system also includes features such as email notification and calendar integration. 3. "Digital Signage and Meeting Room Management System Integrating IoT Sensor Network" by Shinichi Sato, Takashi Okada, and Yoshihiro Shigematsu. The authors propose a meeting room management system that incorporates IoT sensor technology to monitor room temperature, occupancy, and lighting conditions. The system also includes digital signage to provide real-time information about room availability and reservations. 4. "An Integrated Meeting Room Reservation System" by Myung Kuk Ji and Seung Hwan Kim. This paper presents an integrated meeting room reservation system that uses an RFID-based room access control system to automate the reservation process. The system also includes features such as online booking, room availability checking, and automatic cancellation. 5. "Smart Meeting Room Scheduling System using IoT and Machine Learning Techniques" by S.H. Lee, J.P. Moon, and J.H. Park. The authors propose a smart meeting room scheduling system that utilizes IoT sensor technology and machine learning techniques to optimize room usage and improve efficiency. The system also includes features such as automatic scheduling and predictive analysis. 6. "A Cloud-Based Meeting Room Reservation System with Wireless Sensor Networks" by Yu-Chee Tseng, You-Ren Wang, and Chun-Ying Huang. This paper describes a cloud-based meeting room reservation system that incorporates wireless sensor networks to monitor room conditions and automate the reservation process. The system also includes features such as real-time monitoring and multi-device support. 7. "Meeting Room Reservation System based on Bluetooth Low Energy" by J.A. Kimari and P.K. Rana. The authors propose a meeting room reservation system that utilizes Bluetooth Low Energy technology to automate the reservation process and improve efficiency. The system also includes features such as instant room booking and real-time reservation status checking. 8. "Automatic Meeting Room Reservation System based on ZigBee Technology" by K.S. Rajeswari and K. Thamilarasu. This paper describes an automatic meeting room reservation system that uses ZigBee technology to automate the reservation process and improve efficiency. The system also includes features such as automatic cancellation and real-time reservation checking. 9. "A Reliable Meeting Room Reservation System using Near Field Communication Technology" by S. Anitha and R. Muralikrishnan. The authors propose a reliable meeting room reservation system that utilizes Near Field Communication technology to automate the reservation process and improve efficiency. The system also includes features such as automatic cancellation and real-time monitoring. 10. "A Lightweight, Web-Based Meeting Room Reservation System" by Y. Christian Tinajero and Jeffrey L. Popyack. This paper presents a lightweight, web-based meeting room reservation system that enables users to reserve meeting rooms, view availability, and manage their reservations. The system also includes features such as room status checking and email notifications.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值