网站首页 站内搜索

搜索结果

查询Tags标签: rec1,共有 2条记录
  • leetcode 矩形重叠 简单

    看代码:class Solution { public:bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {int x1 = max(rec1[0], rec2[0]), y1 = max(rec1[1], rec2[1]);int x2 = min(rec1[2], rec2[2]), y2 = min(rec1[3], rec2[3]);if(x1 >= x2 || …

    2021/8/30 23:06:22 人评论 次浏览
  • leetcode 矩形重叠 简单

    看代码:class Solution { public:bool isRectangleOverlap(vector<int>& rec1, vector<int>& rec2) {int x1 = max(rec1[0], rec2[0]), y1 = max(rec1[1], rec2[1]);int x2 = min(rec1[2], rec2[2]), y2 = min(rec1[3], rec2[3]);if(x1 >= x2 || …

    2021/8/30 23:06:22 人评论 次浏览
扫一扫关注最新编程教程