I think it asks to sort the pieces w.r.t. locations of top-left anchor points of the rectangular regions. (Not the locations of raisins w.r.t. top-left point of the whole cake!)
There are ambiguities in test cases.
For ex: is "111" a 'T' (when time unit = 1) or an 'E' (when time unit = 3)?
Since we dont know what the time unit is, both interpretions are possible.
I think it asks to sort the pieces w.r.t. locations of top-left anchor points of the rectangular regions. (Not the locations of raisins w.r.t. top-left point of the whole cake!)
This comment is hidden because it contains spoiler information about the solution
c#
Really nobody had a problem with Execution Timed Out (12000 ms)? Average Test execution is about 2500 ms, and Attempt is failing...
No, there isn't.
There are ambiguities in test cases.
For ex: is "111" a 'T' (when time unit = 1) or an 'E' (when time unit = 3)?
Since we dont know what the time unit is, both interpretions are possible.