From 5a75276d60d6608c82f94fc041881a1527a3a484 Mon Sep 17 00:00:00 2001 From: moein Date: Thu, 1 Aug 2024 01:01:08 +0330 Subject: [PATCH] =?UTF-8?q?Fix=20typo=20in=20hamkaran=20system=20?= =?UTF-8?q?=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hamkaran-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hamkaran-system.md b/src/hamkaran-system.md index 74971f9..b283bad 100644 --- a/src/hamkaran-system.md +++ b/src/hamkaran-system.md @@ -116,7 +116,7 @@ Find the most repeated item in this array `[1,4,7,4,3,8,4]`. return `item` and ` ```go func getMostRepeatedNum(nums []int) (int, int) { - numMap := make(map[int]int, len(nums uh)) + numMap := make(map[int]int, len(nums)) maxCount, maxNum := 0, 0 for _, i := range nums { numMap[i]++