Ошибка в эталонном решении find_k_numbers.clj
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- clojure
- Domain
- testing-qa
Research direction
Open src/battle_asserts/issues/find_k_numbers.clj and reproduce the reported input ([1,2,3,4,5,6,6,7], 3). Check the reference solution’s handling of duplicate values; it is done when the result is 5 for this case and the existing task behavior remains valid.
Written by the indexing model from the issue text.
Description
В задаче КМК не верное эталонное решение:
https://github.com/hexlet-codebattle/battle_asserts/blob/master/src/battle_asserts/issues/find_k_numbers.clj
По заданию требуется вернуть K-ый по величине элемент, проблема проявляется, если в исходных данных есть несколько одинаковых значений, больше искомого, например:
solution = ([1,2,3,4,5,6,6,7], 3) должно быть равно 5 (7 -> 6 -> 5).
Но в эталонном решении ответ будет 6.
- Dominant language
- Clojure
- Stars
- 71
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hexlet-codebattle/battle_asserts
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
hexlet-codebattle/battle_asserts#1093 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
hexlet-codebattle/battle_asserts#1073 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
hexlet-codebattle/battle_asserts#1036 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
hexlet-codebattle/battle_asserts#1001 · 1 comment ·
All issues in hexlet-codebattle/battle_asserts
Similar issues
-
Disable the admin-console by default in the devenv frontendPossibly taken @niwinz claimed this today. Openneeds triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
`sequence` does not accept a transducer with more than one collectionPossibly taken @burinc claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
.Needs Triage .Team/Graphy Priority:P3 Type:Bug
Difficulty 2/5 1-2 days Newbie friendliness 65/100
metabase/metabase#87126 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 Under an hour Newbie friendliness 70/100