Given an area function: float area(float P) { } This function is defined for us and you can use it. The function returns the area under the curve. The curve is an increasing curve i.e. area increases as far as the point is from the origin. | | ________----|----- |___---- | | | | | ---------------------------------> P Given a point D, you have to find a point that divides the area wrt D into half.
Anonymous
To give a clue I used binary search.
Check out your Company Bowl for anonymous work chats.