-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
25 lines (18 loc) · 676 Bytes
/
Copy pathtest.cpp
File metadata and controls
25 lines (18 loc) · 676 Bytes
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
#include "valid_palindrome_ii.hpp"
static void runTest(string s) {
Solution sol;
cout << (sol.validPalindrome(s) ? "true" : "false") << endl;
}
int main() {
std::cout << ">>>>>> example 1 <<<<<<" << std::endl;
runTest("aba");
std::cout << ">>>>>> example 2 <<<<<<" << std::endl;
runTest("abca");
std::cout << ">>>>>> example 3 <<<<<<" << std::endl;
runTest("abc");
std::cout << ">>>>>> example 4 <<<<<<" << std::endl;
runTest("cbbcc");
std::cout << ">>>>>> example 5 <<<<<<" << std::endl;
runTest("aguokepatgbnvfqmgmlcupuufxoohdfpgjdmysgvhmvffcnqxjjxqncffvmhvgsymdjgpfdhooxfuupuculmgmqfvnbgtapekouga");
return 0;
}