Help Kiyo きよ solve her problems LCM Fun!

From codewars.com by Edxael  (that’s me)

Description:

Help Kiyo きよ solve her problems LCM Fun!

Kiyo has been given a series of problems and she needs your help to solve them!

You will be given a two-dimensional array such as the one below.

Integers are between 0 and 9. Sub-array size is always 9. The number of sub-arrays varies between 9 and 18.

Watch out for non-integers mixed in the arrays. If all arrays are empty return 0.

My solution:

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: Kazk

Note:  The following code is not written by me, it was created by another user of codewars.com it belongs to the user: njohnson7

.



Copyright 2017. All rights reserved.

Posted January 12, 2017 by Edmundo in category "Ruby Examples