From 64add9b5530888d99dbfc8ddceb2f51a9588d6ed Mon Sep 17 00:00:00 2001 From: Vinod Date: Sat, 15 Oct 2022 13:32:07 +0530 Subject: [PATCH] issue 196:fixed --- sort/pigeonhole_sort.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sort/pigeonhole_sort.dart b/sort/pigeonhole_sort.dart index 8415600d..64b27a67 100644 --- a/sort/pigeonhole_sort.dart +++ b/sort/pigeonhole_sort.dart @@ -21,7 +21,7 @@ void pigeonholeSort(List arr) { int range = max - min; range++; - List phole = new List(range); + List phole = []..length = range; for (int i = 0; i < range; i++) { phole[i] = 0; }