Skip to content

Commit 8fdc37b

Browse files
author
danghai
committed
reorganize strings
1 parent 0f0ff08 commit 8fdc37b

26 files changed

+51
-25
lines changed

algorithms/strings/__init__.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
from .add_binary import *
2+
from .breaking_bad import *
3+
from .decode_string import *
4+
from .delete_reoccurring import *
5+
from .domain_extractor import *
6+
from .encode_decode import *
7+
from .group_anagrams import *
8+
from .int_to_roman import *
9+
from .is_palindrome import *
10+
from .is_rotated import *
11+
from .license_number import *
12+
from .make_sentence import *
13+
from .merge_string_checker import *
14+
from .multiply_strings import *
15+
from .one_edit_distance import *
16+
from .rabin_karp import *
17+
from .reverse_string import *
18+
from .reverse_vowel import *
19+
from .reverse_words import *
20+
from .roman_to_int import *
21+
from .strip_url_params import *
22+
from .validate_coordinates import *
23+
from .word_squares 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.
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.

tests/test_strings.py

+28-25
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
from strings.add_binary import add_binary
2-
from strings.breaking_bad import match_symbol, match_symbol_1, bracket
3-
from strings.decode_string import decode_string
4-
from strings.delete_reoccurring import delete_reoccurring_characters
5-
from strings.domain_extractor import domain_name_1, domain_name_2
6-
from strings.encode_decode import encode, decode
7-
from strings.group_anagrams import group_anagrams
8-
from strings.int_to_roman import int_to_roman
9-
from strings.is_palindrome import is_palindrome, is_palindrome_reverse, \
10-
is_palindrome_two_pointer, is_palindrome_stack
11-
from strings.is_rotated import is_rotated
12-
from strings.license_number import license_number
13-
from strings.make_sentence import make_sentence
14-
from strings.merge_string_checker import is_merge_recursive, is_merge_iterative
15-
from strings.multiply_strings import multiply
16-
from strings.one_edit_distance import is_one_edit, is_one_edit2
17-
from strings.rabin_karp import rabin_karp
18-
from strings.reverse_string import *
19-
from strings.reverse_vowel import reverse_vowel
20-
from strings.reverse_words import reverse_words
21-
from strings.roman_to_int import roman_to_int
22-
from strings.strip_url_params import *
23-
from strings.validate_coordinates import *
24-
from strings.word_squares import word_squares
1+
from algorithms.strings import (
2+
add_binary,
3+
match_symbol, match_symbol_1, bracket,
4+
decode_string,
5+
delete_reoccurring_characters,
6+
domain_name_1, domain_name_2,
7+
encode, decode,
8+
group_anagrams,
9+
int_to_roman,
10+
is_palindrome, is_palindrome_reverse,
11+
is_palindrome_two_pointer, is_palindrome_stack,
12+
is_rotated,
13+
license_number,
14+
make_sentence,
15+
is_merge_recursive, is_merge_iterative,
16+
multiply,
17+
is_one_edit, is_one_edit2,
18+
rabin_karp,
19+
ultra_pythonic, iterative, recursive, pythonic,
20+
reverse_vowel,
21+
reverse_words,
22+
roman_to_int,
23+
strip_url_params1, strip_url_params2, strip_url_params3,
24+
is_valid_coordinates_0, is_valid_coordinates_1,
25+
is_valid_coordinates_regular_expression,
26+
word_squares
27+
)
2528

2629
import unittest
2730

@@ -380,4 +383,4 @@ def test_word_squares(self):
380383

381384

382385
if __name__ == "__main__":
383-
unittest.main()
386+
unittest.main()

0 commit comments

Comments
 (0)