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

bird-watcher: Fix typos #676

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions exercises/concept/bird-watcher/.docs/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

- The [`every?`][every?] function can be used to check if all items in a collection satisfy a given predicate.

- The [`pos?`][pos?] predicate returns true if a number is greater than zero.
- The [`pos?`][pos?] predicate returns `true` if a number is greater than zero.

- The [`not`][not] function returns true if an expression evaluates to logical false.
- The [`not`][not] function returns `true` if an expression evaluates to logical false.

## 5. Calculate the number of visiting birds for the first number of days

- The [`take`][take] function can be used return a sequence of the first n items in a collection.
- The [`take`][take] function can be used to return a sequence of the first n items in a collection.

- The [`reduce`][reduce] function can be used to add a collection of values together.

Expand All @@ -36,7 +36,7 @@

## 7. Check for odd week

- The [`=`][equality] function can be used to test equality.
- The [`=`][equality] function can be used to test for equality.

[count]: https://clojuredocs.org/clojure.core/count
[dec]: https://clojuredocs.org/clojure.core/dec
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/bird-watcher/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Implement the `busy-days` function to return the number of busy days:

## 7. Check for odd week

Over the last year, you've found that some weeks for the same, odd pattern, where the counts alternate between one and zero birds visiting. Implement the `odd-week?` function that returns `true` if the bird count pattern of this week matches the odd pattern:
Over the last year, you've found that some weeks form the same, odd pattern, where the counts alternate between one and zero birds visiting. Implement the `odd-week?` function that returns `true` if the bird count pattern of this week matches the odd pattern:

```clojure
(odd-week? [1 0 1 0 1 0 1])
Expand Down
Loading