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

This commit is contained in:
camperbot
2022-02-04 00:46:32 +05:30
committed by GitHub
parent 0d36c35207
commit f38d19132d
32 changed files with 374 additions and 354 deletions

View File

@ -1,6 +1,6 @@
---
id: 594d8d0ab97724821379b1e6
title: Averages/Mode
title: Medie/Moda
challengeType: 5
forumTopicId: 302226
dashedName: averagesmode
@ -8,27 +8,27 @@ dashedName: averagesmode
# --description--
Write a program to find the [mode](https://en.wikipedia.org/wiki/Mode (statistics) "wp: Mode (statistics)") value of a collection.
Scrivi un programma per trovare il valore [moda](https://it.wikipedia.org/wiki/Moda_(statistica) "Moda (statistica)") di una collezione.
The case where the collection is empty may be ignored. Care must be taken to handle the case where the mode is non-unique.
Il caso in cui una collezione è vuota può essere ignorato. Devi fare attenzione per gestire il caso dove la moda non è unica.
If it is not appropriate or possible to support a general collection, use a vector (array), if possible. If it is not appropriate or possible to support an unspecified value type, use integers.
Se non è appropriato o possibile supportare una collezione generale, usa un vettore (array), se possibile. Se non è appropriato o possibile supportare un tipo di valore non specificato, usa numeri interi.
# --hints--
`mode` should be a function.
`mode` dovrebbe essere una funzione.
```js
assert(typeof mode === 'function');
```
`mode([1, 3, 6, 6, 6, 6, 7, 7, 12, 12, 17])` should equal `[6]`
`mode([1, 3, 6, 6, 6, 6, 7, 7, 12, 12, 17])` dovrebbe essere uguale a `[6]`
```js
assert.deepEqual(mode(arr1), [6]);
```
`mode([1, 2, 4, 4, 1])` should equal `[1, 4]`.
`mode([1, 2, 4, 4, 1])` dovrebbe essere uguale a `[1, 4]`.
```js
assert.deepEqual(mode(arr2).sort(), [1, 4]);