kyu_7.powers_of_3 package

Submodules

kyu_7.powers_of_3.largest_power module

Solution for -> Powers of 3.

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

kyu_7.powers_of_3.largest_power.largest_power(num: int) int[source]

Largest power function.

Given a positive integer N, return the largest integer k such that 3^k < N. :param num: int :return: int

kyu_7.powers_of_3.test_largest_power module

Test for -> Powers of 3.

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

class kyu_7.powers_of_3.test_largest_power.LargestPowerTestCase(methodName='runTest')[source]

Bases: TestCase

Testing largestPower function.

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

Testing largestPower function.

Returns:

Module contents

Powers of 3.