kyu_7.sort_out_the_men_from_boys package

Submodules

kyu_7.sort_out_the_men_from_boys.men_from_boys module

Solution for -> Sort Out The Men From Boys.

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

kyu_7.sort_out_the_men_from_boys.men_from_boys.men_from_boys(arr: List[int]) List[int][source]

Sort out the men from the boys.

Men are the Even numbers and Boys are the odd.

Return an array/list where Even numbers come first then odds.

Since, Men are stronger than Boys, then Even numbers in ascending order while odds in descending. :param arr: List :return: List

kyu_7.sort_out_the_men_from_boys.test_men_from_boys module

Test for -> Sort Out The Men From Boys.

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

class kyu_7.sort_out_the_men_from_boys.test_men_from_boys.MenFromBoysTestCase(methodName='runTest')[source]

Bases: TestCase

Testing men_from_boys function.

_classSetupFailed = False
_class_cleanups = []
test_men_from_boys = None
test_men_from_boys_00(**kw)

Testing men_from_boys function with various test inputs [with arr=[7, 3, 14, 17], expected=[14, 17, 7, 3]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_01(**kw)

Testing men_from_boys function with various test inputs [with arr=[2, 43, 95, 90, 37], expected=[2, 90, 95, 43, 37]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_02(**kw)

Testing men_from_boys function with various test inputs [with arr=[20, 33, 50, 34, 43, 46], expected=[20, 34, 46, 50, 43, 33]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_03(**kw)

Testing men_from_boys function with various test inputs [with arr=[82, 91, 72, 76, 76, 100, 85], expected=[72, 76, 82, 100, 91, 85]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_04(**kw)

Testing men_from_boys function with various test inputs [with arr=[2, 15, 17, 15, 2, 10, 10, 17, 1, 1], expected=[2, 10, 17, 15, 1]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_05(**kw)

Testing men_from_boys function with various test inputs [with arr=[-32, -39, -35, -41], expected=[-32, -35, -39, -41]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_06(**kw)

Testing men_from_boys function with various test inputs [with arr=[-64, -71, -63, -66, -65], expected=[-66, -64, -63, -65, -71]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_07(**kw)

Testing men_from_boys function with various test inputs [with arr=[-94, -99, -100, -99, -96, -99], expected=[-100, -96, -94, -99]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_08(**kw)

Testing men_from_boys function with various test inputs [with arr=[-53, -26, -53, -27, -49, -51, -14], expected=[-26, -14, -27, -49, -51, -53]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_09(**kw)

Testing men_from_boys function with various test inputs [with arr=[-17, -45, -15, -33, -85, -56, -86, -30], expected=[-86, -56, -30, -15, -17, -33, -45, -85]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_10(**kw)

Testing men_from_boys function with various test inputs [with arr=[12, 89, -38, -78], expected=[-78, -38, 12, 89]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_11(**kw)

Testing men_from_boys function with various test inputs [with arr=[2, -43, 95, -90, 37], expected=[-90, 2, 95, 37, -43]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_12(**kw)

Testing men_from_boys function with various test inputs [with arr=[82, -61, -87, -12, 21, 1], expected=[-12, 82, 21, 1, -61, -87]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_13(**kw)

Testing men_from_boys function with various test inputs [with arr=[63, -57, 76, -85, 88, 2, -28], expected=[-28, 2, 76, 88, 63, -57, -85]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

test_men_from_boys_14(**kw)

Testing men_from_boys function with various test inputs [with arr=[49, 818, -282, 900, 928, 281, -282, -1], expected=[-282, 818, 900, 928, 281, 49, -1]].

Scenario Now that the competition gets tough it will Sort out the men from the boys .

Men are the Even numbers and Boys are the odd !alt !alt

Task Given an array/list [] of n integers , Separate The even numbers from the odds , or Separate the men from the boys !alt !alt

Notes Return an array/list where Even numbers come first then odds. Since , Men are stronger than Boys , Then Even numbers in ascending order While odds in descending. :return:

Module contents

Sort Out The Men From Boys.