Wissen Interview Question

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.

Interview Answer

Anonymous

Jul 17, 2023

To give a clue I used binary search.