From 1c9d4a39294b8dc1852717d89313d0f62744d125 Mon Sep 17 00:00:00 2001 From: Sanders Lin <45224617+SandersLin@users.noreply.github.com> Date: Sat, 18 Apr 2020 02:04:30 +0800 Subject: [PATCH] Update abbreviation.py (#1887) --- dynamic_programming/abbreviation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dynamic_programming/abbreviation.py b/dynamic_programming/abbreviation.py index 5432c2488..5175aa9ed 100644 --- a/dynamic_programming/abbreviation.py +++ b/dynamic_programming/abbreviation.py @@ -12,7 +12,7 @@ daBcd -> capitalize a and c(dABCd) -> remove d (ABC) """ -def abbr(a, b): +def abbr(a: str, b: str) -> bool: """ >>> abbr("daBcd", "ABC") True @@ -34,7 +34,6 @@ def abbr(a, b): if __name__ == "__main__": - # print(abbr("daBcd", "ABC")) # expect True import doctest doctest.testmod()