Skip to content

Commit 466f0ef

Browse files
authored
Export majorityElement function
1 parent 7b97dd3 commit 466f0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leetcode/169_Majority-Element/20251030.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function majorityElement(nums: number[]): number {
1+
export function majorityElement(nums: number[]): number {
22
if (nums.length <= 2) {
33
return nums[0]
44
}

0 commit comments

Comments
 (0)