chore(i18n,learn): processed translations (#44866)

This commit is contained in:
camperbot
2022-01-22 20:38:20 +05:30
committed by GitHub
parent d039479e66
commit 43a2a0a395
324 changed files with 2907 additions and 2916 deletions

View File

@ -1,6 +1,6 @@
---
id: 5992e222d397f00d21122931
title: Fibonacci word
title: フィボナッチ列
challengeType: 5
forumTopicId: 302269
dashedName: fibonacci-word
@ -8,33 +8,33 @@ dashedName: fibonacci-word
# --description--
The Fibonacci Word may be created in a manner analogous to the Fibonacci Sequence [as described here](https://hal.archives-ouvertes.fr/docs/00/36/79/72/PDF/The_Fibonacci_word_fractal.pdf):
[文書で説明されているように](https://hal.archives-ouvertes.fr/docs/00/36/79/72/PDF/The_Fibonacci_word_fractal.pdf)、フィボナッチ列は、フィボナッチ数列と類似した方法で作成されます。
<pre>Define F_Word<sub>1</sub> as <strong>1</strong>
Define F_Word<sub>2</sub> as <strong>0</strong>
Form F_Word<sub>3</sub> as F_Word<sub>2</sub> concatenated with F_Word<sub>1</sub> i.e.: <strong>01</strong>
Form F_Word<sub>n</sub> as F_Word<sub>n-1</sub> concatenated with F_word<sub>n-2</sub>
<pre>F_Word<sub>1</sub> <strong>1</strong> と定義します
F_Word<sub>2</sub> <strong>0</strong> と定義します
F_Word<sub>3</sub> F_Word <sub>1</sub> と結びついた F_Word<sub>2</sub> として作成します 例: <strong>01</strong>
F_Word<sub>n</sub> F_word <sub>n-2</sub> と結びついた F_Word<sub>n-1</sub> として作成します
</pre>
# --instructions--
Write a function to return the Fibonacci Words up to `n`. `n` will be provided as a parameter to the function. The function should return an array of objects. The objects should be of the form: `{ N: 1, Length: 1, Entropy: 0, Word: '1' }`.
`n` までのフィボナッチ列を返す関数を作成します。 関数のパラメータとして `n` が与えられます。 この関数はオブジェクトの配列を返します。 オブジェクトは `{ N: 1, Length: 1, Entropy: 0, Word: '1' }` の形式である必要があります。
# --hints--
`fibWord` should be a function.
`fibWord` という関数です。
```js
assert(typeof fibWord === 'function');
```
`fibWord(5)` should return an array.
`fibWord(5)` は配列を返します。
```js
assert(Array.isArray(fibWord(5)));
```
`fibWord(5)` should return `[{ N:1, Length:1, Entropy:0, Word:"1" },{ N:2, Length:1, Entropy:0, Word:"0" },{ N:3, Length:2, Entropy:1, Word:"01" },{ N:4, Length:3, Entropy:0.9182958340544896, Word:"010" },{ N:5, Length:5, Entropy:0.9709505944546688, Word:"01001" }]`.
`fibWord(5)` `[{ N:1, Length:1, Entropy:0, Word:"1" },{ N:2, Length:1, Entropy:0, Word:"0" },{ N:3, Length:2, Entropy:1, Word:"01" },{ N:4, Length:3, Entropy:0.9182958340544896, Word:"010" },{ N:5, Length:5, Entropy:0.9709505944546688, Word:"01001" }]` を返します。
```js
assert.deepEqual(fibWord(5), ans);