Skip to content

Commit e6fbbab

Browse files
authored
Update solution.ts
1 parent 1171d34 commit e6fbbab

File tree

1 file changed

+0
-2
lines changed
  • src/main/ts/g0701_0800/s0763_partition_labels

1 file changed

+0
-2
lines changed

src/main/ts/g0701_0800/s0763_partition_labels/solution.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ function partitionLabels(s: string): number[] {
99
if (!map.has(c)) map.set(c, [i, i])
1010
else map.get(c)[1] = i
1111
}
12-
1312
const arr = Array.from(map.values())
1413
arr.sort((v1, v2) => v1[0] - v2[0])
15-
1614
let start = 0,
1715
end = arr[0][1],
1816
result: number[] = []

0 commit comments

Comments
 (0)