Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-145-how-many-reversible-numbers-are-there-below-one-billion.md

43 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f3fd1000cf542c50ff10
title: 'Завдання 145: скільки існує оборотних чисел, які менші за один мільярд?'
challengeType: 5
forumTopicId: 301774
dashedName: problem-145-how-many-reversible-numbers-are-there-below-one-billion
---
# --description--
Деякі додатні цілі числа $n$ мають властивість, що сума [ $n + reverse(n)$ ] складається з зовсім непарних (десяткових) цифр. Наприклад, $36 + 63 = 99$ та$409 + 904 = 1313$. Називатимемо такі числа оборотними; таким чином 36, 63, 409 і 904 є оборотними. Провідні нулі не можна використовувати в $n$ або $reverse(n)$.
Існують 120 оборотних чисел менших за тисячу.
Скільки існує оборотних чисел, що менші за один мільярд (${10}^9$)?
# --hints--
Функція `reversibleNumbers()` повинна повернути `608720`.
```js
assert.strictEqual(reversibleNumbers(), 608720);
```
# --seed--
## --seed-contents--
```js
function reversibleNumbers() {
return true;
}
reversibleNumbers();
```
# --solutions--
```js
// solution required
```