Skip to content

Commit ad3cab5

Browse files
aQuaaQua
aQua
authored and
aQua
committed
更新helper助手和README.md
1 parent 95b8e89 commit ad3cab5

File tree

568 files changed

+567
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

568 files changed

+567
-0
lines changed

Algorithms/0016.3sum-closest/3sum-closest_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0016
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0017.letter-combinations-of-a-phone-number/letter-combinations-of-a-phone-number_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0017
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0018.4sum/4sum_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0018
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0019.remove-nth-node-from-end-of-list/remove-nth-node-from-end-of-list_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0019
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0020.valid-parentheses/valid-parentheses_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0020
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0021.merge-two-sorted-lists/merge-two-sorted-lists_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0021
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0022.generate-parentheses/generate-parentheses_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0022
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0023.merge-k-sorted-lists/merge-k-sorted-lists_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0023
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0024.swap-nodes-in-pairs/swap-nodes-in-pairs_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0024
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0025.reverse-nodes-in-k-group/reverse-nodes-in-k-group_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0025
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0026.remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0026
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0027.remove-element/remove-element_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0027
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0028.implement-strstr/implement-strstr_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0028
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0029.divide-two-integers/divide-two-integers_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0029
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0030.substring-with-concatenation-of-all-words/substring-with-concatenation-of-all-words_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0030
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0031.next-permutation/next-permutation_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0031
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0032.longest-valid-parentheses/longest-valid-parentheses_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0032
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0033.search-in-rotated-sorted-array/search-in-rotated-sorted-array_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0033
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0034.search-for-a-range/search-for-a-range_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0034
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0035.search-insert-position/search-insert-position_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0035
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0036.valid-sudoku/valid-sudoku_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0036
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0037.sudoku-solver/sudoku-solver_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0037
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0038.count-and-say/count-and-say_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0038
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0039.combination-sum/combination-sum_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0039
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0040.combination-sum-ii/combination-sum-ii_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0040
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0041.first-missing-positive/first-missing-positive_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0041
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0042.trapping-rain-water/trapping-rain-water_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0042
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0043.multiply-strings/multiply-strings_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0043
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0044.wildcard-matching/wildcard-matching_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0044
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0045.jump-game-ii/jump-game-ii_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0045
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0046.permutations/permutations_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0046
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0047.permutations-ii/permutations-ii_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0047
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0048.rotate-image/rotate-image_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0048
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0049.group-anagrams/group-anagrams_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0049
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0050.powx-n/powx-n_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0050
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0051.n-queens/n-queens_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0051
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0052.n-queens-ii/n-queens-ii_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0052
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0053.maximum-subarray/maximum-subarray_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0053
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0054.spiral-matrix/spiral-matrix_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0054
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0055.jump-game/jump-game_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0055
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0056.merge-intervals/merge-intervals_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0056
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0057.insert-interval/insert-interval_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0057
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0058.length-of-last-word/length-of-last-word_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0058
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0059
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0060.permutation-sequence/permutation-sequence_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0060
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0061.rotate-list/rotate-list_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0061
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0062.unique-paths/unique-paths_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0062
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0063.unique-paths-ii/unique-paths-ii_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0063
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0064.minimum-path-sum/minimum-path-sum_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0064
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

Algorithms/0065.valid-number/valid-number_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package Problem0065
22

33
import (
44
"testing"
5+
"fmt"
56

67
"github.com/stretchr/testify/assert"
78
)

0 commit comments

Comments
 (0)