kyu_5.moving_zeros_to_the_end package

Submodules

kyu_5.moving_zeros_to_the_end.move_zeros module

kyu_5.moving_zeros_to_the_end.move_zeros.move_zeros(array: list)[source]

An algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements. :param array: :return:

kyu_5.moving_zeros_to_the_end.test_move_zeros module

class kyu_5.moving_zeros_to_the_end.test_move_zeros.MoveZerosTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing move_zeros function

test_move_zeros()[source]

Test an algorithm that takes an array and moves all of the zeros to the end, preserving the order of the other elements. :return:

Module contents