diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-23 07:32:18 +0300 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2019-12-23 07:32:18 +0300 |
| commit | 0d25b5d6957d76bab486e2279c99e130c19d5c31 (patch) | |
| tree | c8c7d6fe4766470bda03e49a004afaa03c967b16 /algorithms/algorithm.py | |
| parent | Travis: add badge to README (diff) | |
| download | sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.tar.gz sorting-algorithms-0d25b5d6957d76bab486e2279c99e130c19d5c31.zip | |
pylint/pep8 fixes
Diffstat (limited to 'algorithms/algorithm.py')
| -rw-r--r-- | algorithms/algorithm.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/algorithms/algorithm.py b/algorithms/algorithm.py index 74817de..66f8724 100644 --- a/algorithms/algorithm.py +++ b/algorithms/algorithm.py @@ -5,6 +5,7 @@ from . import input_kind + class Algorithm: def __init__(self, codename, display_name, f): self.codename = codename @@ -16,9 +17,7 @@ class Algorithm: #raise NotImplementedError('input generation is not defined for a generic algorithm') return input_kind.gen_input_for_sorting(n, case) -class SortingAlgorithm(Algorithm): - def __init__(self, codename, display_name, f): - super().__init__(codename, display_name, f) +class SortingAlgorithm(Algorithm): def gen_input(self, n, case=input_kind.InputKind.AVERAGE): return input_kind.gen_input_for_sorting(n, case) |
