Skip to content

Commit

Permalink
重新生成了文件夹
Browse files Browse the repository at this point in the history
  • Loading branch information
aQua authored and aQua committed Jul 25, 2017
1 parent 58480df commit eabf455
Show file tree
Hide file tree
Showing 1,715 changed files with 31,986 additions and 10 deletions.
11 changes: 11 additions & 0 deletions Algorithms/0011.container-with-most-water/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [11. Container With Most Water](https://leetcode.com/problems/container-with-most-water/)

## 题目


## 解题思路


## 总结


Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0011

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package Problem0011

import (
"testing"

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

type question struct {
para
ans
}

// para 是参数
// one 代表第一个参数
type para struct {
one string
}

// ans 是答案
// one 代表第一个答案
type ans struct {
one string
}

func Test_Problem0011(t *testing.T) {
ast := assert.New(t)

qs := []question{

question{
para{""},
ans{""},
},

}

for _, q := range qs {
a, p := q.ans, q.para

ast.Equal(a.one, p.one, "输入:%v", p)
}
}
11 changes: 11 additions & 0 deletions Algorithms/0012.integer-to-roman/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [12. Integer to Roman](https://leetcode.com/problems/integer-to-roman/)

## 题目


## 解题思路


## 总结


2 changes: 2 additions & 0 deletions Algorithms/0012.integer-to-roman/integer-to-roman.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0012

43 changes: 43 additions & 0 deletions Algorithms/0012.integer-to-roman/integer-to-roman_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package Problem0012

import (
"testing"

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

type question struct {
para
ans
}

// para 是参数
// one 代表第一个参数
type para struct {
one string
}

// ans 是答案
// one 代表第一个答案
type ans struct {
one string
}

func Test_Problem0012(t *testing.T) {
ast := assert.New(t)

qs := []question{

question{
para{""},
ans{""},
},

}

for _, q := range qs {
a, p := q.ans, q.para

ast.Equal(a.one, p.one, "输入:%v", p)
}
}
11 changes: 11 additions & 0 deletions Algorithms/0013.roman-to-integer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [13. Roman to Integer](https://leetcode.com/problems/roman-to-integer/)

## 题目


## 解题思路


## 总结


2 changes: 2 additions & 0 deletions Algorithms/0013.roman-to-integer/roman-to-integer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0013

43 changes: 43 additions & 0 deletions Algorithms/0013.roman-to-integer/roman-to-integer_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package Problem0013

import (
"testing"

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

type question struct {
para
ans
}

// para 是参数
// one 代表第一个参数
type para struct {
one string
}

// ans 是答案
// one 代表第一个答案
type ans struct {
one string
}

func Test_Problem0013(t *testing.T) {
ast := assert.New(t)

qs := []question{

question{
para{""},
ans{""},
},

}

for _, q := range qs {
a, p := q.ans, q.para

ast.Equal(a.one, p.one, "输入:%v", p)
}
}
11 changes: 11 additions & 0 deletions Algorithms/0014.longest-common-prefix/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [14. Longest Common Prefix](https://leetcode.com/problems/longest-common-prefix/)

## 题目


## 解题思路


## 总结


Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0014

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package Problem0014

import (
"testing"

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

type question struct {
para
ans
}

// para 是参数
// one 代表第一个参数
type para struct {
one string
}

// ans 是答案
// one 代表第一个答案
type ans struct {
one string
}

func Test_Problem0014(t *testing.T) {
ast := assert.New(t)

qs := []question{

question{
para{""},
ans{""},
},

}

for _, q := range qs {
a, p := q.ans, q.para

ast.Equal(a.one, p.one, "输入:%v", p)
}
}
2 changes: 2 additions & 0 deletions Algorithms/0015.3sum/3sum.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0015

43 changes: 43 additions & 0 deletions Algorithms/0015.3sum/3sum_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package Problem0015

import (
"testing"

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

type question struct {
para
ans
}

// para 是参数
// one 代表第一个参数
type para struct {
one string
}

// ans 是答案
// one 代表第一个答案
type ans struct {
one string
}

func Test_Problem0015(t *testing.T) {
ast := assert.New(t)

qs := []question{

question{
para{""},
ans{""},
},

}

for _, q := range qs {
a, p := q.ans, q.para

ast.Equal(a.one, p.one, "输入:%v", p)
}
}
11 changes: 11 additions & 0 deletions Algorithms/0015.3sum/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [15. 3Sum](https://leetcode.com/problems/3sum/)

## 题目


## 解题思路


## 总结


2 changes: 2 additions & 0 deletions Algorithms/0016.3sum-closest/3sum-closest.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0016

43 changes: 43 additions & 0 deletions Algorithms/0016.3sum-closest/3sum-closest_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package Problem0016

import (
"testing"

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

type question struct {
para
ans
}

// para 是参数
// one 代表第一个参数
type para struct {
one string
}

// ans 是答案
// one 代表第一个答案
type ans struct {
one string
}

func Test_Problem0016(t *testing.T) {
ast := assert.New(t)

qs := []question{

question{
para{""},
ans{""},
},

}

for _, q := range qs {
a, p := q.ans, q.para

ast.Equal(a.one, p.one, "输入:%v", p)
}
}
11 changes: 11 additions & 0 deletions Algorithms/0016.3sum-closest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [16. 3Sum Closest](https://leetcode.com/problems/3sum-closest/)

## 题目


## 解题思路


## 总结


11 changes: 11 additions & 0 deletions Algorithms/0017.letter-combinations-of-a-phone-number/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [17. Letter Combinations of a Phone Number](https://leetcode.com/problems/letter-combinations-of-a-phone-number/)

## 题目


## 解题思路


## 总结


Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package Problem0017

Loading

0 comments on commit eabf455

Please sign in to comment.