Идея для задачи (без кода): Коля и Кола

Open
#1,001 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
clojure
Domain
backend

Research direction

The issue does not name a file, test, or entry point, so first locate the relevant problem definition in the repository. Read how similar function tasks specify arguments and return values, then implement the described selection behavior and verify that the result is the greatest affordable volume.

Written by the indexing model from the issue text.

Description

Коля любит пить колу. Помогите ему выбрать в каком обьеме он может купить напиток, если у него есть определенная сумма.

Функция принимает на вход два аргумента
Хеш, где ключ - это объем (для простоты - строка в формате X.XX с двумя числами после запятой/точки), а значение - цена (целое число)
Сумма которая есть на руках.

Функция должна вернуть число (float) с максимальным объемом, который можно позволить на эти деньги.

Dominant language
Clojure
Stars
71
Forks
67
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hexlet-codebattle/battle_asserts

All issues in hexlet-codebattle/battle_asserts

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.