From 35f6e7f21f07d24a8716d6484c2610db13d1b6a1 Mon Sep 17 00:00:00 2001 From: Quinta <0pietroquintavalle0@gmail.com> Date: Sun, 30 Jun 2024 23:34:10 +0200 Subject: [PATCH] Fixing deployment --- app/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 2d9ca98..bbc4a2e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -825,8 +825,8 @@ export default function Component() { const radixSort = async () => { let newArray = [...array]; - const getMax = (arr) => Math.max(...arr); - const countingSortForRadix = async (arr, exp) => { + const getMax = (arr: number[]): number => Math.max(...arr); + const countingSortForRadix = async (arr: number[], exp: number): Promise => { let output = new Array(arr.length).fill(0); let count = new Array(10).fill(0); @@ -901,7 +901,7 @@ export default function Component() { const max = Math.max(...newArray); const bucketCount = Math.floor((max - min) / bucketSize) + 1; - let buckets = Array.from({ length: bucketCount }, () => []); + let buckets: number[][] = Array.from({ length: bucketCount }, () => []); for (let i = 0; i < newArray.length; i++) { if (await checkPauseAndStop()) return;