kyu_7.remove_the_minimum package

Submodules

kyu_7.remove_the_minimum.remove_the_minimum module

Solution for -> The museum of incredible dull things.

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

kyu_7.remove_the_minimum.remove_the_minimum.remove_smallest(numbers: list) list[source]

Remove the smallest function.

Given an array of integers, remove the smallest value. Do not mutate the original array/list. If there are multiple elements with the same value, remove the one with a lower index. If you get an empty array/list, return an empty array/list.

Don’t change the order of the elements that are left. :param numbers: list :return: list

kyu_7.remove_the_minimum.test_remove_the_minimum module

Test for -> The museum of incredible dull things.

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

class kyu_7.remove_the_minimum.test_remove_the_minimum.RemoveSmallestTestCase(methodName='runTest')[source]

Bases: TestCase

Testing remove_smallest function.

_classSetupFailed = False
_class_cleanups = []
static random_list()[source]

Create random list helper function.

Returns:

test_remove_smallest()[source]

Test lists with multiple digits.

Returns:

test_remove_smallest_empty_list()[source]

Test with empty list.

Returns:

test_remove_smallest_one_element_list()[source]

Returns [] if list has only one element.

Returns:

test_remove_smallest_random_list()[source]

Returns a list that misses only one element.

Returns:

Module contents

The museum of incredible dull things.