Is Rectangle: Easy Solution In Two line C++

int Solution::solve(int a, int b, int c, int d) {
if((a==b and c==d) or (a==c and b==d) or (a==d and b==c)){return 1;}
else{ return 0;}
}

clever

Click here to start solving coding interview questions