Алексей Золотыx, домашнее задание №2#20
Open
zolotyh wants to merge 7 commits intoClojure-Developer:mainfrom
Open
Алексей Золотыx, домашнее задание №2#20zolotyh wants to merge 7 commits intoClojure-Developer:mainfrom
zolotyh wants to merge 7 commits intoClojure-Developer:mainfrom
Conversation
| (defn is-pangram [test-string]) | ||
| (defn is-pangram [test-string] | ||
|
|
||
| (= alphabet |
There was a problem hiding this comment.
вот тут опасно сравнивать со строкой. дело в том что множества это не упорядоченные коллекции и в зависимости от используемой хэш функции можно получить разный порядок элементов. множества всегда безопасней сравнивать с другими множествами
| (cond | ||
| (= (rem n 3) 0) "Fizz" | ||
| (= (rem n 5) 0) "Buzz" | ||
| :else "FizzBuzz")] |
There was a problem hiding this comment.
не верно указана ветка :else
например
(fizz-buzz 4)
=> "FizzBuzz"
хотя должно быть 4. FizzBuzz возвращаем только если кратно 5 и 3 одновременно
| (recur 1 (inc j) matrix)) | ||
| matrix))) | ||
|
|
||
| (defn common-child-length [first-string second-string] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.