.
+
+Soddisfa le seguenti [user story](https://en.wikipedia.org/wiki/User_story) e fai passare tutti i test. Usa il tuo stile personale.
+
+Puoi utilizzare HTML, JavaScript, e CSS per completare questo progetto. CSS è raccomandato perché è l'argomento delle lezioni viste finora e dovresti fare pratica con il CSS di base. Se lo desideri puoi anche utilizzare Bootstrap o SASS. Ulteriori tecnologie (solo per fare un esempio jQuery, React, Angular, o Vue) non sono raccomandate per questo progetto, e usarle è a tuo rischio. Altri progetti ti daranno la possibilità di lavorare con diversi stack tecnologici come React. Accetteremo e cercheremo di risolvere tutte le segnalazioni di problemi che utilizzano lo stack tecnologico suggerito per questo progetto. Happy coding!
+
+**User story #1:** La mia pagina di tributo dovrebbe avere un elemento con un corrispondente `id="main"`che contiene tutti gli altri elementi.
+
+**User Story #2:** Dovrei vedere un elemento con un corrispondente `id="title"`che contiene una stringa (cioè un testo) che descrive l'oggetto della pagina di tributo (ad esempio "Dr. Norman Borlaug").
+
+**User story #3:** Dovrei vedere un elemento `figure` oppure un elemento `div` con un corrispondente `id="img-div"`.
+
+**User story #4:** All'interno dell'elemento `img-div`, dovrei vedere un elemento `img` con un corrispondente `id="image"`.
+
+**User story #5:** All'interno dell'elemento `img-div`, dovrei vedere un elemento con un corrispondente `id="img-caption"` che contiene un testo che descrive l'immagine mostrata in `img-div`.
+
+**User Story #6:** Dovrei vedere un elemento con un corrispondente `id="tribute-info"`, che contiene dei testi che descrivono l'oggetto della pagina di tributo.
+
+**User story #7:** Dovrei vedere un elemento `a` con un corrispondente `id="tribute-link"`, che si collega a un sito esterno che contiene ulteriori informazioni sull'oggetto della pagina di tributo. SUGGERIMENTO: Dovresti dare al tuo elemento un attributo `target` e impostarlo a `_blank` in modo che il link si apra in una nuova scheda (`target="_blank"`).
+
+**User story #8:** L'elemento `img` dovrebbe ridimensionarsi responsivamente, rispetto alla larghezza dell'elemento principale, senza superare la dimensione originale.
+
+**User story #9:** L'elemento `img` dovrebbe essere centrato all'interno del suo elemento genitore.
+
+Puoi costruire il tuo progetto usando questo modello CodePen e facendo clic su `Save` per creare il tuo pen. Oppure puoi usare questo link CDN per eseguire i test in qualsiasi ambiente tu voglia: `https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js`.
+
+Una volta fatto, invia l'URL del tuo progetto di lavoro con tutti i suoi test passati.
+
+# --solutions--
+
+```html
+// solution required
+```
diff --git a/curriculum/challenges/japanese/03-front-end-development-libraries/react/render-conditionally-from-props.md b/curriculum/challenges/japanese/03-front-end-development-libraries/react/render-conditionally-from-props.md
index 62d5b97a86..f2c265a8d9 100644
--- a/curriculum/challenges/japanese/03-front-end-development-libraries/react/render-conditionally-from-props.md
+++ b/curriculum/challenges/japanese/03-front-end-development-libraries/react/render-conditionally-from-props.md
@@ -8,7 +8,7 @@ dashedName: render-conditionally-from-props
# --description--
-ここまで、いつ、何をレンダーするのかを条件で決める方法として、`if/else`、`&&`、および三項演算子 (` 条件 ? True の場合の式 : False の場合の式`) を使用する方法を紹介しました。 しかし、まだ説明していない重要なトピックが一つあります。それは、これらの概念はそのいずれかまたはすべてを、React の別の強力な機能である props と組み合わせることができる、ということです。 props を使用してコードを条件付きでレンダーすることは、React の開発者にとってはごく一般的な作業です。つまり、与えられた prop の値を利用することで、何を表示するかを自動的に決めることができます。
+So far, you've seen how to use `if/else`, `&&`, and the ternary operator (`condition ? expressionIfTrue : expressionIfFalse`) to make conditional decisions about what to render and when. However, there's one important topic left to discuss that lets you combine any or all of these concepts with another powerful React feature: props. Using props to conditionally render code is very common with React developers — that is, they use the value of a given prop to automatically make decisions about what to render.
このチャレンジでは、props に基づいてレンダー処理を決定する子コンポーネントを設定します。 また、三項演算子も使用しますが、前のチャレンジで説明した他のいくつかの概念が、このチャレンジでも同じように役立つかもしれません。
diff --git a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md
index 396f67965c..ee407b5769 100644
--- a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md
+++ b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md
@@ -27,8 +27,8 @@ dashedName: circles-of-given-radius-through-two-points
- 2点が直径上にある場合は、1 点を返します。 ただし、半径もゼロの場合は、
"Radius Zero"
を返します。
- - 2点が完全に一致する場合は、
"Coincident point. Infinite solutions"
を返します。
- - 2点が直径よりも離れている場合は、
"No intersection. Points further apart than circle diameter"
を返します。
+ - If points are coincident, return
"Coincident point. Infinite solutions"
.
+ - If points are farther apart than the diameter, return
"No intersection. Points further apart than circle diameter"
.
**入力例**
@@ -61,13 +61,13 @@ assert.deepEqual(getCircles(...testCases[0]), answers[0]);
assert.deepEqual(getCircles(...testCases[1]), answers[1]);
```
-`getCircles([0.1234, 0.9876], [0.1234, 0.9876], 2.0)` は `Coincident point. Infinite solutions `を返します。
+`getCircles([0.1234, 0.9876], [0.1234, 0.9876], 2.0)` should return `Coincident point. Infinite solutions`
```js
assert.deepEqual(getCircles(...testCases[2]), answers[2]);
```
-`getCircles([0.1234, 0.9876], [0.8765, 0.2345], 0.5)` は、`No intersection. Points further apart than circle diameter ` を返します。
+`getCircles([0.1234, 0.9876], [0.8765, 0.2345], 0.5)` should return `No intersection. Points further apart than circle diameter`
```js
assert.deepEqual(getCircles(...testCases[3]), answers[3]);
diff --git a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/discordian-date.md b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/discordian-date.md
index 89ef17353f..a887ea8d01 100644
--- a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/discordian-date.md
+++ b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/discordian-date.md
@@ -36,7 +36,7 @@ assert(
);
```
-`discordianDate(new Date(2012, 1, 29))` は `"Setting Orange, the 60th day of Chaos in the YOLD 3178. Celebrate St. Tib\'s Day!" ` を返します。
+`discordianDate(new Date(2012, 1, 29))` should return `"Setting Orange, the 60th day of Chaos in the YOLD 3178. Celebrate St. Tib\'s Day!"`.
```js
assert(
@@ -54,7 +54,7 @@ assert(
);
```
-`discordianDate(new Date(2010, 0, 5))` は `"Setting Orange, the 5th day of Chaos in the YOLD 3176. Celebrate Mungday!" ` を返します。
+`discordianDate(new Date(2010, 0, 5))` should return `"Setting Orange, the 5th day of Chaos in the YOLD 3176. Celebrate Mungday!"`.
```js
assert(
@@ -63,7 +63,7 @@ assert(
);
```
-`discordianDate(new Date(2011, 4, 3))` は `"Pungenday, the 50th day of Discord in the YOLD 3177. Celebrate Discoflux!" ` を返します。
+`discordianDate(new Date(2011, 4, 3))` should return `"Pungenday, the 50th day of Discord in the YOLD 3177. Celebrate Discoflux!"`.
```js
assert(
diff --git a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md
index e55e133678..7b9e45aa50 100644
--- a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md
+++ b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md
@@ -168,7 +168,7 @@ assert.deepEqual(markov(rules[1], tests[1]), outputs[1]);
assert.deepEqual(markov(rules[2], tests[2]), outputs[2]);
```
-`markov(["_+1 -> _1+","1+1 -> 11+","1! -> !1",",! -> !+","_! -> _","1*1 -> x,@y","1x -> xX","X, -> 1,1","X1 -> 1X","_x -> _X",",x -> ,X","y1 -> 1y","y_ -> _","1@1 -> x,@y","1@_ -> @_",",@_ -> !_","++ -> +","_1 -> 1","1+_ -> 1","_+_ -> "],"_1111*11111_")` は「11111111111111111111」を返します。
+`markov(["_+1 -> _1+","1+1 -> 11+","1! -> !1",",! -> !+","_! -> _","1*1 -> x,@y","1x -> xX","X, -> 1,1","X1 -> 1X","_x -> _X",",x -> ,X","y1 -> 1y","y_ -> _","1@1 -> x,@y","1@_ -> @_",",@_ -> !_","++ -> +","_1 -> 1","1+_ -> 1","_+_ -> "],"_1111*11111_")` should return "11111111111111111111".
```js
assert.deepEqual(markov(rules[3], tests[3]), outputs[3]);
diff --git a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/factorial.md b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/factorial.md
index 31317b8c5b..8dcbb49e83 100644
--- a/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/factorial.md
+++ b/curriculum/challenges/japanese/10-coding-interview-prep/rosetta-code/factorial.md
@@ -22,7 +22,7 @@ dashedName: factorial
4! = 4 * 3 * 2 * 1 = 24
-**注記:** `0! = 1`
+**Note:** `0! = 1`
# --hints--
diff --git a/curriculum/challenges/portuguese/03-front-end-development-libraries/react/render-conditionally-from-props.md b/curriculum/challenges/portuguese/03-front-end-development-libraries/react/render-conditionally-from-props.md
index 80e9d5cae5..e07ca148ec 100644
--- a/curriculum/challenges/portuguese/03-front-end-development-libraries/react/render-conditionally-from-props.md
+++ b/curriculum/challenges/portuguese/03-front-end-development-libraries/react/render-conditionally-from-props.md
@@ -8,7 +8,7 @@ dashedName: render-conditionally-from-props
# --description--
-Até agora, você viu como usar a condição `if/else`, `&&` e o operador ternário (`condition ? expressionIfTrue : expressionIfFalse`) para tomar decisões condicionais sobre o que renderizar e quando. No entanto, resta um tópico importante para discutir que permite que você combine todos esses conceitos com outro poderoso recurso React: props. Usar props para renderizar código condicionalmente é muito comum entre desenvolvedores React — isto é, eles usam o valor de uma determinada propriedade para tomar decisões automaticamente sobre o que renderizar.
+Até agora, você viu como usar o `if/else`, `&&` e o operador ternário (`condition ? expressionIfTrue : expressionIfFalse`) para tomar decisões condicionais sobre o que renderizar e quando. No entanto, resta um tópico importante para discutir que permite que você combine todos esses conceitos com outro poderoso recurso do React: props. Usar props para renderizar código condicionalmente é muito comum entre desenvolvedores React — isto é, eles usam o valor de uma determinada propriedade para tomar decisões automaticamente sobre o que renderizar.
Neste desafio, você vai configurar um componente filho para tomar decisões de renderização com base em props. Você também usará o operador ternário, mas você pode ver como vários dos outros conceitos que foram abordados nos últimos desafios poderão ser igualmente úteis neste contexto.
diff --git a/curriculum/challenges/portuguese/10-coding-interview-prep/data-structures/check-if-binary-search-tree.md b/curriculum/challenges/portuguese/10-coding-interview-prep/data-structures/check-if-binary-search-tree.md
index f3196fa705..88747f986f 100644
--- a/curriculum/challenges/portuguese/10-coding-interview-prep/data-structures/check-if-binary-search-tree.md
+++ b/curriculum/challenges/portuguese/10-coding-interview-prep/data-structures/check-if-binary-search-tree.md
@@ -39,6 +39,24 @@ assert(
);
```
+`isBinarySearchTree()` deve retornar false quando verificado com uma árvore que não seja uma árvore binária de busca.
+
+```js
+assert(
+ (function () {
+ var test = false;
+ if (typeof BinarySearchTree !== 'undefined') {
+ test = new BinarySearchTree();
+ } else {
+ return false;
+ }
+ test.push(1);
+ test.root.left = new Node(1);
+ return isBinarySearchTree(test) == false;
+ })()
+);
+```
+
# --seed--
## --after-user-code--
@@ -114,7 +132,7 @@ function isBinarySearchTree(tree) {
function checkTree(node) {
if (node.left != null) {
const left = node.left;
- if (left.value > node.value) {
+ if (left.value >= node.value) {
isBST = false;
} else {
checkTree(left);
diff --git a/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md b/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md
index b90cd091d3..33a5cadcf7 100644
--- a/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md
+++ b/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/circles-of-given-radius-through-two-points.md
@@ -27,8 +27,8 @@ Implementa uma função que recebe dois pontos e um raio e retorna os dois círc
- Se os pontos estão no diâmetro, retorne um ponto. No entanto, se o raio também for zero, retorne
"Radius Zero"
.
- - Se os pontos forem coincidentes, retorne
"Coincident point. Infinite solutions"
.
- - Se os pontos estiverem mais distantes do que o diâmetro, retorne
"No intersection. Points further apart than circle diameter"
.
+ - Se os pontos forem coincidentes, retornar
"Coincident point. Infinite solutions"
.
+ - Se os pontos forem mais distantes do que o diâmetro, retornar
"No intersection. Points further apart than circle diameter"
.
**Exemplo de entradas:**
diff --git a/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md b/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md
index 18fcf08121..9e6db66901 100644
--- a/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md
+++ b/curriculum/challenges/portuguese/10-coding-interview-prep/rosetta-code/execute-a-markov-algorithm.md
@@ -80,17 +80,17 @@ O texto de exemplo `I bought a B of As W my Bgage from T S.` deve gerar `I bough
Esta regra testa a ordem correta de varredura das regras e pode capturar rotinas de substituição que fazem a varredura na ordem errada. Ela implementa um mecanismo de multiplicação unária geral. (Observe que a expressão de entrada deve ser colocada dentro dos sublinhados nesta implementação.)
-### Mecanismo de multiplicação unária, para testar implementações do algoritmo de Markov
-### Por Donal Fellows.
+### Mecanismo de multiplicação unária para testar implementações do Algoritmo de Markov
+### De Donal Fellows.
# Mecanismo de adição unária
_+1 -> _1+
1+1 -> 11+
-# Passada para converter da divisão de multiplicação em simples
-# adição
+# Passe para converter da divisão da multiplicação para uma
+# adição comum
1! -> !1
,! -> !+
_! -> _
-# Multiplicação unária pela duplicação do lado esquerdo, o lado direito de vezes
+# Multiplicação unária duplicando o lado esquerdo o número de vezes igual ao lado direito
1*1 -> x,@y
1x -> xX
X, -> 1,1