Solution to Dwarfs-Rafting by codility

19 Nov

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

Question Name: Dwarfs-Rafting or DwarfsRafting

Need some simple mathematical knowledge. The code is unnecessarily long. A 2-d array is better to write much shorter code. However, I keep the long version for better readability.

Leave a Reply

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