kyu_6.pyramid_array package

Submodules

kyu_6.pyramid_array.pyramid_array module

kyu_6.pyramid_array.pyramid_array.pyramid(n)[source]

Write a function that when given a number >= 0, returns an Array of ascending length subarrays.

Note: the subarrays should be filled with 1s :param n: :return:

kyu_6.pyramid_array.test_pyramid_array module

class kyu_6.pyramid_array.test_pyramid_array.PyramidTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing ‘pyramid’ function

test_pyramid()[source]

The ‘pyramid’ function should return an Array of ascending length subarrays.

Note: the subarrays should be filled with 1s. :return:

Module contents