Gabryelf / Gabryelf/StartCours

Плюс один к индексу массива

Open Beginner friendly
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description


Алгоритмы и массивы







---

## Задача - сумма двух.

- [x] Вам дано большое целое число, представленное в виде массива целых чисел digits, где каждый digits[i] — это ith-я цифра целого числа.

- [x] Цифры расположены в порядке убывания значимости слева направо. Большое целое число не содержит ведущих 0'.

- [x] Увеличьте большое целое число на единицу и верните полученный массив цифр.

## Пример.

```Входные данные:```

``` digits = [1,2,3]```

```Выходные данные:```

``` [1,2,4]```

```Пояснение: ```

```Массив представляет собой число 123. Прибавив единицу, мы получим 123 + 1 = 124. Таким образом, результат должен быть таким: [1,2,4].```

---





---

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue specifies a JavaScript array algorithm but names no file or test. First inspect the repository structure for the relevant exercise entry point, then implement the stated increment operation and verify it against the [1,2,3] example, including the carry case where needed.

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
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.