Skip to content

Commit bb2cb51

Browse files
authored
Improved tasks 80-92
1 parent 7750bed commit bb2cb51

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/test/ts/g0001_0100/s0080_remove_duplicates_from_sorted_array_ii/solution.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { removeDuplicates } from 'src/main/ts/g0001_0100/s0080_remove_duplicates
33
import { expect, test } from 'vitest'
44

55
test('removeDuplicates', () => {
6-
expect(removeDuplicates([1,1,1,2,2,3])).toEqual(5)
6+
expect(removeDuplicates([1, 1, 1, 2, 2, 3])).toEqual(5)
77
})
88

99
test('removeDuplicates2', () => {
10-
expect(removeDuplicates([0,0,1,1,1,1,2,3,3])).toEqual(7)
10+
expect(removeDuplicates([0, 0, 1, 1, 1, 1, 2, 3, 3])).toEqual(7)
1111
})

src/test/ts/g0001_0100/s0082_remove_duplicates_from_sorted_list_ii/solution.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { expect, test } from 'vitest'
44
import { constructLinkedList } from '../../com_github_leetcode/linkedlistutils'
55

66
test('deleteDuplicates', () => {
7-
expect(deleteDuplicates(constructLinkedList([1,2,3,3,4,4,5])).toString()).toEqual('1, 2, 5')
7+
expect(deleteDuplicates(constructLinkedList([1, 2, 3, 3, 4, 4, 5])).toString()).toEqual('1, 2, 5')
88
})
99

1010
test('deleteDuplicates2', () => {
11-
expect(deleteDuplicates(constructLinkedList([1,1,1,2,3])).toString()).toEqual('2, 3')
11+
expect(deleteDuplicates(constructLinkedList([1, 1, 1, 2, 3])).toString()).toEqual('2, 3')
1212
})

src/test/ts/g0001_0100/s0086_partition_list/solution.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { expect, test } from 'vitest'
44
import { constructLinkedList } from '../../com_github_leetcode/linkedlistutils'
55

66
test('partition', () => {
7-
expect(partition(constructLinkedList([1,4,3,2,5,2]), 3).toString()).toEqual('1, 2, 2, 4, 3, 5')
7+
expect(partition(constructLinkedList([1, 4, 3, 2, 5, 2]), 3).toString()).toEqual('1, 2, 2, 4, 3, 5')
88
})
99

1010
test('partition2', () => {
11-
expect(partition(constructLinkedList([2,1]), 2).toString()).toEqual('1, 2')
11+
expect(partition(constructLinkedList([2, 1]), 2).toString()).toEqual('1, 2')
1212
})

src/test/ts/g0001_0100/s0088_merge_sorted_array/solution.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { merge } from 'src/main/ts/g0001_0100/s0088_merge_sorted_array/solution'
33
import { expect, test } from 'vitest'
44

55
test('merge', () => {
6-
const nums1 = [1,2,3,0,0,0]
7-
merge(nums1, 3, [2,5,6], 3)
8-
expect(nums1).toEqual([1,2,2,3,5,6])
6+
const nums1 = [1, 2, 3, 0, 0, 0]
7+
merge(nums1, 3, [2, 5, 6], 3)
8+
expect(nums1).toEqual([1, 2, 2, 3, 5, 6])
99
})
1010

1111
test('merge2', () => {

src/test/ts/g0001_0100/s0092_reverse_linked_list_ii/solution.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { expect, test } from 'vitest'
44
import { constructLinkedList } from '../../com_github_leetcode/linkedlistutils'
55

66
test('reverseBetween', () => {
7-
expect(reverseBetween(constructLinkedList([1,2,3,4,5]), 2, 4).toString()).toEqual('1, 4, 3, 2, 5')
7+
expect(reverseBetween(constructLinkedList([1, 2, 3, 4, 5]), 2, 4).toString()).toEqual('1, 4, 3, 2, 5')
88
})
99

1010
test('reverseBetween2', () => {

0 commit comments

Comments
 (0)