Chegg : you are given an array consisting of 2 types of operations. [0,a,b] - create and save a rectangle of size axb [1,a,b] - check whether every previous saved rectangle can be fit inside this rectangle of axb. you can rotate rectangles by 90 degrees. we try to fit each rectangle one at a time and not together. return an array of booleans representing answers to second operation in the order in which they appear.



Answer :

Other Questions