Skip to content

Commit

Permalink
anagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 13, 2024
1 parent 5053332 commit 51e25ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions kyu_5/where_my_anagrams_at/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Where my anagrams at."""
5 changes: 4 additions & 1 deletion kyu_5/where_my_anagrams_at/anagrams.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""
Solution for -> Where my anagrams at?
Solution for -> Where my anagrams at?.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""


def anagrams(word, words) -> list:
"""
anagrams function.
A function that will find all the anagrams of a word
from a list. You will be given two inputs a word and
an array with words. You should return an array of all
Expand Down
9 changes: 5 additions & 4 deletions kyu_5/where_my_anagrams_at/test_anagrams.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Solution for -> Where my anagrams at?
Test suite for -> Where my anagrams at?.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
Expand All @@ -26,12 +27,12 @@
name='Source/Kata')
# pylint: enable=R0801
class AnagramsTestCase(unittest.TestCase):
"""
Testing anagrams function
"""
"""Testing anagrams function."""

def test_anagrams(self):
"""
Testing anagrams function with various test data.
Test a function that will find all the anagrams of a word from a list.
You will be given two inputs a word and an array with words. You should
return an array of all the anagrams or an empty array if there are none.
Expand Down

0 comments on commit 51e25ab

Please sign in to comment.