chore(i18n,curriculum): update translations

This commit is contained in:
camperbot
2021-10-27 15:10:57 +00:00
committed by Mrugesh Mohapatra
parent e139fbcf13
commit c1fb339bbc
539 changed files with 3319 additions and 3352 deletions

View File

@ -1,6 +1,6 @@
---
id: 587d8259367417b2b2512c83
title: Invert a Binary Tree
title: Invertire un albero binario
challengeType: 1
forumTopicId: 301704
dashedName: invert-a-binary-tree
@ -8,11 +8,11 @@ dashedName: invert-a-binary-tree
# --description--
Here will we create a function to invert a binary tree. Given a binary tree, we want to produce a new tree that is equivalently the mirror image of this tree. Running an inorder traversal on an inverted tree will explore the nodes in reverse order when compared to the inorder traversal of the original tree. Write a method to do this called `invert` on our binary tree. Calling this method should invert the current tree structure. Ideally, we would like to do this in-place in linear time. That is, we only visit each node once and we modify the existing tree structure as we go, without using any additional memory. Good luck!
Qui creeremo una funzione per invertire un albero binario. Dato un albero binario, vogliamo produrre un nuovo albero che sia equivalente all'immagine speculare di questo albero. Eseguire un traversamento inorder su un albero invertito esplora i nodi in ordine inverso rispetto a un traversamento inorder sull'albero originale. Scrivi un metodo per farlo, chiamato `invert` sul nostro albero binario. Chiamare questo metodo dovrebbe invertire la struttura attuale dell'albero. Idealmente, vorremmo fare questo "in-place" (NdT: lavorando sull'array originale, senza crearne una copia) e in tempo lineare. Cioè, visitiamo ogni nodo solo una volta e modifichiamo la struttura di albero esistente mentre procediamo, senza usare memoria aggiuntiva. Buona fortuna!
# --hints--
The `BinarySearchTree` data structure should exist.
La struttura di dati `BinarySearchTree` dovrebbe esistere.
```js
assert(
@ -26,7 +26,7 @@ assert(
);
```
The binary search tree should have a method called `invert`.
L'albero binario di ricerca dovrebbe avere un metodo chiamato `invert`.
```js
assert(
@ -42,7 +42,7 @@ assert(
);
```
The `invert` method should correctly invert the tree structure.
Il metodo `invert` dovrebbe invertire correttamente la struttura dell'albero.
```js
assert(
@ -70,7 +70,7 @@ assert(
);
```
Inverting an empty tree should return `null`.
Invertire un albero vuoto dovrebbe restituire `null`.
```js
assert(