标签:int boolean lse else class return bool java div
class Solution { public boolean isRectangleOverlap(int[] rec1, int[] rec2) { if(rec1[2]<=rec2[0]||rec1[0]>=rec2[2]||rec1[1]>=rec2[3]||rec1[3]<=rec2[1]){ return false; }else{ return true; } } }
标签:int boolean lse else class return bool java div
原文地址:https://www.cnblogs.com/NeverGiveUp0/p/12517240.html