![]() |
Python
1.0
|
Checking for anagrams. More...
Functions | |
def | anagram (str1, str2) |
Checks whether two words are anagrams. More... | |
def | isAnagram (a, b) |
Checks whether two words or phrases are anagrams. More... | |
def | containsHiddenWord (hiddenWord, word) |
Determines whether the given hidden word can be obtained from the main word, by erasing some of its letters. More... | |
def | main () |
Checking for anagrams.
An anagram is a word or phrase formed by reordering the letters of another word or phrase, such as "satin" to "stain".
Examples:
def _06d_anagrama.anagram | ( | str1, | |
str2 | |||
) |
Checks whether two words are anagrams.
An anagram is a type of word play, which is the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once.
For example: "orchestra" can be rearranged into "carthorse".
str1 | first string. |
str2 | second string. |
Referenced by main().
def _06d_anagrama.containsHiddenWord | ( | hiddenWord, | |
word | |||
) |
Determines whether the given hidden word can be obtained from the main word, by erasing some of its letters.
hiddenWord | the word we're looking for |
word | main word |
Referenced by main().
def _06d_anagrama.isAnagram | ( | a, | |
b | |||
) |
Checks whether two words or phrases are anagrams.
An anagram is a type of word play, which is the result of rearranging the letters of a word or phrase to produce a new word or phrase, using all the original letters exactly once.
For example: "orchestra" can be rearranged into "carthorse".
a | first string. |
b | second string. |
Referenced by main().
def _06d_anagrama.main | ( | ) |
References anagram(), containsHiddenWord(), _01d_dec2bin.input, isAnagram(), and validateRoman.raw_input.