-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
27 lines (22 loc) · 674 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
package main
import (
"fmt"
"time"
"./my_strings"
)
func main() {
fmt.Printf("This is the main function begin:\n");
fmt.Printf("================================\n");
fmt.Printf("Run the RotatingTest \n");
my_strings.Rotating();
fmt.Printf("================================\n");
fmt.Printf("Run the IsPalindrome \n");
fmt.Printf("%t \n", my_strings.IsPalindrome("ABABABA"));
fmt.Printf("================================\n");
fmt.Printf("Run the Manacher \n");
start_time := time.Now();
fmt.Printf("%d \n",my_strings.Manacher("ABABABA"));
end_time := time.Now();
fmt.Println(end_time.Sub(start_time));
fmt.Printf("================================\n");
}