kyu_7.easy_line package
Submodules
kyu_7.easy_line.easyline module
Solution for -> Easy Line.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_7.easy_line.test_easyline module
Test for -> Easy Line.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_7.easy_line.test_easyline.EasyLineTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting ‘easyline’ function.
We want to calculate the sum of the squares of the binomial coefficients on a given line with a function called ‘easyline’ (or easyLine or easy-line).
Can you write a program which calculate ‘easyline(n)’ where ‘n’ is the line number?
The function will take n (with: n>= 0) as parameter and will return the sum of the squares of the binomial coefficients with line ‘n’.
- _classSetupFailed = False
- _class_cleanups = []
- test_calc_combinations_per_row = None
- test_calc_combinations_per_row_0(**kw)
Testing calc_combinations_per_row function [with n=0, i=0, expected=1].
- Returns:
- test_calc_combinations_per_row_1(**kw)
Testing calc_combinations_per_row function [with n=1, i=1, expected=1].
- Returns:
- test_calc_combinations_per_row_2(**kw)
Testing calc_combinations_per_row function [with n=2, i=1, expected=2].
- Returns:
- test_calc_combinations_per_row_3(**kw)
Testing calc_combinations_per_row function [with n=3, i=2, expected=3].
- Returns:
- test_calc_combinations_per_row_4(**kw)
Testing calc_combinations_per_row function [with n=4, i=3, expected=4].
- Returns:
- test_calc_combinations_per_row_5(**kw)
Testing calc_combinations_per_row function [with n=5, i=4, expected=5].
- Returns:
- test_calc_combinations_per_row_6(**kw)
Testing calc_combinations_per_row function [with n=6, i=5, expected=6].
- Returns:
- test_calc_combinations_per_row_7(**kw)
Testing calc_combinations_per_row function [with n=7, i=6, expected=7].
- Returns:
- test_easy_line = None
- test_easy_line_0(**kw)
Testing easy_line function with various test data [with n=0, expected=1].
- Returns:
- test_easy_line_1(**kw)
Testing easy_line function with various test data [with n=1, expected=2].
- Returns:
- test_easy_line_2(**kw)
Testing easy_line function with various test data [with n=4, expected=70].
- Returns:
- test_easy_line_3(**kw)
Testing easy_line function with various test data [with n=7, expected=3432].
- Returns:
- test_easy_line_4(**kw)
Testing easy_line function with various test data [with n=13, expected=10400600].
- Returns:
- test_easy_line_5(**kw)
Testing easy_line function with various test data [with n=17, expected=2333606220].
- Returns:
- test_easy_line_6(**kw)
Testing easy_line function with various test data [with n=19, expected=35345263800].
- Returns:
- test_easy_line_7(**kw)
Testing easy_line function with various test data [with n=22, expected=2104098963720].
- Returns:
- test_easy_line_8(**kw)
Testing easy_line function with various test data [with n=24, expected=32247603683100].
- Returns:
- test_easy_line_9(**kw)
Testing easy_line function with various test data [with n=50, expected=100891344545564193334812497256].
- Returns:
Module contents
Easy Line.