Solution to Rectangle-Builder-Greater-Area by codility

20 Nov

Question: https://codility.com/demo/take-sample-test/rectangle_builder_greater_area/

Question Name: Rectangle-Builder-Greater-Area or RectangleBuilderGreaterArea

This key is the binary search.

One Reply to “Solution to Rectangle-Builder-Greater-Area by codility”

  1. This is my C++ solution achieving 100% and O(N log N):
    https://app.codility.com/demo/results/trainingMF64A3-VSY/
    This code smells verbose. I have a feeling that someone somewhere knows an obscure Integer theorem in order to make it O(N). Anyway, this is my code and test cases:

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!