diff --git a/src/leetcode/169_Majority-Element/20251106.ts b/src/leetcode/169_Majority-Element/20251106.ts index fd5b496..93bfd22 100644 --- a/src/leetcode/169_Majority-Element/20251106.ts +++ b/src/leetcode/169_Majority-Element/20251106.ts @@ -7,9 +7,9 @@ export function majorityElement(nums: number[]): number { majority = nums[i]; count = 1; } else if (nums[i] === majority) { - count++ + count++; } else { - count-- + count--; } }