Sort Documents on a Figma Page
Given several documents on a 2D plane, sort these documents from left to right. The input consists of the x-coordinates and widths of the documents, and the output should be a list of documents sorted...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
