Skip to content

Commit

Permalink
更新helper助手和README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aQua authored and aQua committed Jul 28, 2017
1 parent ad3cab5 commit 33d53cc
Show file tree
Hide file tree
Showing 568 changed files with 567 additions and 567 deletions.
2 changes: 1 addition & 1 deletion Algorithms/0016.3sum-closest/3sum-closest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0016(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0017(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0018.4sum/4sum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0018(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0019(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0020(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0021(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0022(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0023(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0024(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0025(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0026(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0027.remove-element/remove-element_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0027(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0028.implement-strstr/implement-strstr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0028(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0029(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0030(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0031.next-permutation/next-permutation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0031(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0032(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0033(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0034(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0035(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0036.valid-sudoku/valid-sudoku_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0036(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0037.sudoku-solver/sudoku-solver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0037(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0038.count-and-say/count-and-say_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0038(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0039.combination-sum/combination-sum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0039(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0040(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0041(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0042(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0043.multiply-strings/multiply-strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0043(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0044(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0045.jump-game-ii/jump-game-ii_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0045(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0046.permutations/permutations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0046(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0047.permutations-ii/permutations-ii_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0047(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0048.rotate-image/rotate-image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0048(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0049.group-anagrams/group-anagrams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0049(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0050.powx-n/powx-n_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0050(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0051.n-queens/n-queens_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0051(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0052.n-queens-ii/n-queens-ii_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0052(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0053.maximum-subarray/maximum-subarray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0053(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0054.spiral-matrix/spiral-matrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0054(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0055.jump-game/jump-game_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0055(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0056.merge-intervals/merge-intervals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0056(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0057.insert-interval/insert-interval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0057(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0058(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0059.spiral-matrix-ii/spiral-matrix-ii_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0059(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0060(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0061.rotate-list/rotate-list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0061(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0062.unique-paths/unique-paths_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0062(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0063.unique-paths-ii/unique-paths-ii_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0063(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0064.minimum-path-sum/minimum-path-sum_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0064(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
2 changes: 1 addition & 1 deletion Algorithms/0065.valid-number/valid-number_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ func Test_Problem0065(t *testing.T) {
a, p := q.ans, q.para
fmt.Printf("~~%v~~\n", p)

ast.Equal(a.one, (p.one), "输入:%!v(MISSING)", p)
ast.Equal(a.one, (p.one), "输入:%!s(MISSING)", p)
}
}
Loading

0 comments on commit 33d53cc

Please sign in to comment.