adding bars to table's frequency column

This commit is contained in:
frankknoll
2023-04-18 16:48:25 +02:00
parent 8eb6f8ff9b
commit 71c7f8d261
5 changed files with 39 additions and 6 deletions

View File

@@ -7,6 +7,10 @@ class Utils {
return arr.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
}
static sum(numbers) {
return numbers.reduce((a, b) => a + b, 0);
}
static getKeysAlignedWithValues(dict) {
const keys = [];
const values = [];