Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instructions in animal-sanctuary-registry #65

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions challenges/animal-sanctuary-registry/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Your task is to implement the following functions:

1. `add_animal_to_section`: This function should add an animal to a section in the registry. If the section does not exist, it should be created. If the animal is already in the section, it should not be added again.

2. `get_animals_in_section`: This function should return a list of animals sorted **alphabetically** in a given section. If the section does not exist, it should return an empty list.
2. `get_animals_in_section`: This function should return a list of animals **sorted alphabetically** in a given section. If the section does not exist, it should return an empty list.

3. `get_all_animals`: This function should return a copy of the entire registry with all animals **sorted alphabetically** in each section.
3. `get_all_animals_sorted`: This function should return a copy of the entire registry with all animals **sorted alphabetically** in each section.

## Example

Expand Down
Loading