-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
38 lines (34 loc) · 909 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
import (
"algorithm/company"
"fmt"
)
var (
ArrInt = []int{0, 0, 1, 1, 1, 2, 2, 3, 3, 4}
StrChar = "qewrtyuiop"
StrTempOne = "wordgoodgoodgoodbestword"
StrArr = []string{"word", "good", "best", "word"}
)
func main() {
// medium.FindDuplicate(ArrInt)
// fmt.Println(medium.LengthOfLongestSubstring(StrChar))
// easy.RemoveDuplicates(ArrInt)
// PrintArrInt(ArrInt)
// fmt.Println(hard.FindSubstring(StrTempOne, StrArr))
// fmt.Println(medium.GrayCode(4))
// fmt.Println(medium.Exist([][]byte{
// {'A', 'B', 'C', 'E'},
// {'S', 'F', 'C', 'S'},
// {'A', 'D', 'E', 'E'},
// }, "ABCCED"))
// fmt.Println(medium.MovingCount(14, 14, 5))
// fmt.Println(easy.PrintNumbers(2))
// fmt.Println(easy.Exchange([]int{1, 2, 3, 4}))
// company.TestComputeIntersect()
company.TestLine()
}
func PrintArrInt(arr []int) {
for i, v := range arr {
fmt.Println(i, " : ", v)
}
}