Question: In Python, it is desired to place shapes of different sizes given in the specified canvas size. The shapes should not overlap. The edges where

In Python, it is desired to place shapes of different sizes given in the specified canvas size. The shapes should not overlap. The edges where the shapes intersect should be shown as graphics and coordinates. Two sample datasets are given below.
a)2020(canvas size)
212(shape 1)
712(shape 2)
86(etc)
36
35
55
312
37
57
26
32
42
34
44
92
112
b)2020(canvas size)
414(shape 1)
52(shape 2)
22(etc)
97
55
25
77
35
65
32
62
46
63
103
63
103

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!