Python/strings
Christian Clauss 366a0f1839
Fix validate_initial_digits of credit_card_validator.py (#5600)
* Fix validate_initial_digits of credit_card_validator.py

@Bhargavishnu I think that I broke the logic of validate_initial_digits which should require that credit_card_number[0] is 3 before checking that credit_card_number[1] is 4, 5, or 7.  Please verify the new changes and the new test cases to make sure that this is correct.  Thanks!

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-10-26 14:32:34 +02:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
aho_corasick.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
alternative_string_arrange.py add alternative_string_arrange method (#4595) 2021-08-06 12:15:42 +02:00
anagrams.py Moved "other/anagrams.py" to the string folder (#4289) 2021-03-22 11:40:23 +01:00
autocomplete_using_trie.py Move files to strings folder (#4283) 2021-03-21 12:05:10 +01:00
boyer_moore_search.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
can_string_be_rearranged_as_palindrome.py [mypy] Fix type annotations for strings (#4637) 2021-08-19 14:08:20 +02:00
capitalize.py Optimized recursive_bubble_sort (#2410) 2020-09-10 10:31:26 +02:00
check_anagrams.py Fixed grammar on Anagram Description (#5512) 2021-10-22 16:07:57 +02:00
check_pangram.py Create check_pangram.py (#4389) 2021-05-04 08:49:41 +02:00
credit_card_validator.py Fix validate_initial_digits of credit_card_validator.py (#5600) 2021-10-26 14:32:34 +02:00
detecting_english_programmatically.py Move files to strings folder (#4283) 2021-03-21 12:05:10 +01:00
dictionary.txt Move files to strings folder (#4283) 2021-03-21 12:05:10 +01:00
frequency_finder.py Move files to strings folder (#4283) 2021-03-21 12:05:10 +01:00
indian_phone_validator.py Added doctest (#5182) 2021-10-10 20:00:04 +02:00
is_palindrome.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
jaro_winkler.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
join.py Remove wrongly placed double qoutes (#5530) 2021-10-23 01:14:08 +08:00
knuth_morris_pratt.py Pyupgrade to Python 3.9 (#4718) 2021-09-07 13:37:03 +02:00
levenshtein_distance.py [mypy] Fix type annotations for strings (#4637) 2021-08-19 14:08:20 +02:00
lower.py Fixed typo in docstring (#4326) 2021-04-12 13:40:10 +02:00
manacher.py [mypy] Fix type annotations for strings (#4641) 2021-08-25 13:35:36 +02:00
min_cost_string_conversion.py [mypy] Fix type annotations for strings (#4641) 2021-08-25 13:35:36 +02:00
naive_string_search.py [mypy] Fix type annotations for strings/naive_string_search.py (#4611) 2021-08-13 09:10:52 +02:00
palindrome.py Move files to strings folder (#4283) 2021-03-21 12:05:10 +01:00
prefix_function.py Fix word typos in comments (#4928) 2021-10-04 12:07:58 +08:00
rabin_karp.py Add type hints for "strings" folder (#2882) 2020-10-06 14:01:15 +05:30
remove_duplicate.py Fixed remove duplicate (#2470) 2020-09-24 19:14:52 +08:00
reverse_letters.py Added reverse_letters.py (#3730) 2020-10-27 12:05:37 +08:00
reverse_long_words.py add an algorithm to spin some words (#5597) 2021-10-25 19:18:41 +02:00
reverse_words.py Fixed reverse words algorithm (#2469) 2020-09-24 19:12:52 +08:00
split.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
upper.py Modified comments on upper.py (#3884) 2020-11-18 12:07:30 +05:30
wildcard_pattern_matching.py Add wildcard pattern matching using dynamic programming (#5334) 2021-10-20 16:30:58 +08:00
word_occurrence.py [mypy] Fix type annotations for strings (#4637) 2021-08-19 14:08:20 +02:00
word_patterns.py [mypy] Fix type annotations for strings (#4637) 2021-08-19 14:08:20 +02:00
words.txt Moved "other/anagrams.py" to the string folder (#4289) 2021-03-22 11:40:23 +01:00
z_function.py Fix syntax for flake8 passing (#2096) 2020-06-12 06:51:47 +02:00