@@ -0,0 +1,501 @@
+public class Solution %7B%0A    public int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) %7B%0A        int area1 = (C-A)*(D-B);%0A        int area2 = (G-E)*(H-F); %0A        if(C%3CE %7C%7C G%3CA)%7B%0A            return area1 + area2;%0A        %7D%0A        if(B%3E H %7C%7C F%3ED)%7B%0A            return area1+area2;%0A        %7D%0A        %0A        int r2 = Math.min(D,H);%0A        int r1 = Math.min(C,G);%0A        int l2 = Math.max(B,F);%0A        int l1 = Math.max(A, E);%0A        return area1+area2-(r1-l1)*(r2-l2);%0A%0A    %7D%0A%7D

A math Question