kyu_6.pyramid_array package

Submodules

kyu_6.pyramid_array.pyramid_array module

Solution for -> Pyramid Array.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_6.pyramid_array.pyramid_array.pyramid(n: int) list[source]

Pyramid function.

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: int :return: list

kyu_6.pyramid_array.test_pyramid_array module

Test for -> Pyramid Array.

Created by Egor Kostan. GitHub: https://github.com/ikostan

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

Bases: TestCase

Testing ‘pyramid’ function.

_classSetupFailed = False
_class_cleanups = []
test_pyramid()[source]

Testing ‘pyramid’ function with various test data.

The ‘pyramid’ function should return an Array of ascending length sub-arrays.

Note: the sub-arrays should be filled with 1s. :return:

Module contents

Pyramid Array.