Skip to content

Commit 0f0ff08

Browse files
author
danghai
committed
reorganize stack
1 parent 5224102 commit 0f0ff08

13 files changed

+21
-10
lines changed

algorithms/stack/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from .stack import *
2+
from .is_consecutive import *
3+
from .is_sorted import *
4+
from .remove_min import *
5+
from .stutter import *
6+
from .switch_pairs import *
7+
from .valid_parenthesis import *
8+
from .simplify_path import *
9+
from .stack import *
10+
from .ordered_stack import *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

stack/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/test_stack.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
from stack.is_consecutive import first_is_consecutive, second_is_consecutive
2-
from stack.is_sorted import is_sorted
3-
from stack.remove_min import remove_min
4-
from stack.stutter import first_stutter, second_stutter
5-
from stack.switch_pairs import first_switch_pairs, second_switch_pairs
6-
from stack.valid_parenthesis import is_valid
7-
from stack.simplify_path import simplify_path
8-
from stack.stack import ArrayStack, LinkedListStack
9-
from stack.ordered_stack import OrderedStack
1+
from algorithms.stack import (
2+
first_is_consecutive, second_is_consecutive,
3+
is_sorted,
4+
remove_min,
5+
first_stutter, second_stutter,
6+
first_switch_pairs, second_switch_pairs,
7+
is_valid,
8+
simplify_path,
9+
ArrayStack, LinkedListStack,
10+
OrderedStack
11+
)
1012

1113
import unittest
1214
class TestSuite(unittest.TestCase):

0 commit comments

Comments
 (0)