Web Projects Outsourcing

MaxProductOfThree Demo Task at Codility.com

codility netbeansLesson 4 – Sorting – MaxProductOfThree demo task solution code written in php. Gives 100/100 score at the time of publishing. The description of the problem is copyrighted, so please see the following link for it: //codility.com/demo/take-sample-test/max_product_of_three

Solution in php:

Given “AS IS”, can be ported from other languages from solutions found on the internet, please use with care.

Please note: we think that codility.com does not give a correct assessment of your real-world programming skills. For instance, reading the below would bring more understanding why: //codility-test-questions.blogspot.com/2013/01/my-experience-with-codility-test.html

2 thoughts on “MaxProductOfThree Demo Task at Codility.com

  1. shraddha


    I have tried your solution and it works with 100% result. But I have some queries. I am not able to fully understand the solution.
    Belows is my solution. Which runs completely fine with my examples but do not pass with 100% result.

    rsort($A, SORT_NUMERIC);
    return $A[0]*$A[1]*$A[2];

    Can you help me out with this?

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.