Oktatás * Programozás 2 * Szkriptnyelvek * levelezősök Félévek Linkek * kalendárium |
EnPy3 /
20130211aAnagramAn anagram is a type of word play, 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. Examples:
Write a function that receives two strings and decides if the second string is an anagram of the first one. The exercise can be solved in different ways. There is a trivial method, but I'd like to see a non-trivial solution. Thus, try to find at least two different approaches to solve this exercise. Tip As you can see from the examples, whitespaces and upper and lower case letters don't matter. Use a function that receives a string and returns it in a normalized form. Example: |
Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |