I want to make full binary tree of height k with the given points in a page. each point has x & y parameters in Cartesian coordinates. edges of tree should not cut each other.
test case: k = 2 points:
x y
100 300
200 300
500 301
200 200
300 201
400 203
500 206
300 101
402 100
output: 4 1 0 2 0 3 6 5 7
enter image description here
1.4m articles
1.4m replys
5 comments
56.9k users