Skip to content

Commit

Permalink
feat: add missing export
Browse files Browse the repository at this point in the history
  • Loading branch information
upupming authored and harttle committed Jun 14, 2021
1 parent d2057b6 commit 49a2442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function reverse<T=number> (arr: T[], begin = 0, end = arr.length): void
swap(arr, begin++, --end)
}
}
function swap<T=number> (arr: T[], l: number, r: number): void {
export function swap<T=number> (arr: T[], l: number, r: number): void {
const tmp = arr[l]
arr[l] = arr[r]
arr[r] = tmp
Expand Down
2 changes: 1 addition & 1 deletion string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function rabinkarp (s: string, p: string): number {
}
}

function maxCharCode (s: string): number {
export function maxCharCode (s: string): number {
let D = 0
for (let i = 0; i < s.length; i++) {
D = Math.max(D, s.charCodeAt(i))
Expand Down

0 comments on commit 49a2442

Please sign in to comment.