Navigation Menu

Skip to content

halfghaninne/python-toy__check-if-anagrams

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy Problem - Python

Check if Anagrams

Objectives

  1. Practice thinking through abstract algorithms.
  2. Properly use common data structures.

Anagrams are words made from the same set of characters. Like this:

We would say that "chaser" and "search" are anagrams; because if you rearrange the letters in one of the words, you can end up with the other word. Anagrams have exactly the same letters--no more or less of any letter--but arranged differently.

Write an algorithm that figures out if two strings are anagrams for each other. If the strings are anagrams, the algorithm should return True as its final response. Otherwise, it should return False.

Getting Started

After forking this repo and opening it in your development environment (e.g. Cloud9), run bin/setup. This will install any software that this exercise depends upon.

Your work belongs in the file called test_something_something.py. There is no lib/ directory for this project. Modify the function(s) in the provided Python file(s). To check if you have passed this exercise, run bin/check. This will run a series of automated tests and provide you with errors and/or feedback.

Do not change the name of the function. Simply alter the body of the function to get the tests passing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.3%
  • Shell 4.7%