Input length must be >= n
Aperta
bug
help wanted
- Lingua principale
- JavaScript
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The following currently throws:
```js
median([1])
```
```js
quantile(3, [1, 2])
```
Not entirely certain what would be mathematically correct.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Look at the median and quantile functions in the source code to understand their current input validation. The issue is about handling small arrays where length < n. Check test files for existing behavior and decide what error message or return value is mathematically appropriate for edge cases.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100