Gabryelf / Gabryelf/StartCours
Решение задачи с массивами
- Dominant language
- HTML
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Алгоритмы и массивы
---
## Задача - сумма двух.
- [x] Дан массив целых чисел nums и целое число target, верните индексы двух чисел, сумма которых равна target
- [x] Можно предположить, что для каждого набора входных данных существует ровно одно решение, и вы не можете использовать один и тот же элемент дважды.
- [x] Вы можете возвращать ответ в любом порядке. Важно сделать функцию которая принимает массив целых чисел как аргумент и отдельно функцию для тестирования решения.
## Пример.
```Входные данные:```
``` nums = [2,7,11,15], target = 9```
```Выходные данные:```
``` [0,1]```
```Пояснение: ```
```Поскольку nums[0] + nums[1] == 9, мы возвращаем [0, 1].```
---
---
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue does not name a file or test path. First locate the JavaScript entry point and existing test conventions in the repository, then implement the requested array-sum function and a separate test function. Done means the example returns [0,1] and the stated uniqueness and no-reuse requirements are covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100