-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsketch.py
40 lines (29 loc) · 939 Bytes
/
sketch.py
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
39
40
#!/usr/bin/env python
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
if __name__ == "__main__":
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
logger.addHandler(ch)
logger.info("this is a test harness.")
#print isPalindrome("ABBA")
#print isPalindrome("ABCBA")
#print isPalindrome("DAVE")
#print findLargest("ABBAXYZZYX")
tmp_values_01 = [[ 'I', 'T', 'N', 'D', 'O' ],
[ 'S', 'A', 'K', 'X', 'N' ],
[ 'L', 'B', 'Z', 'M', 'E' ],
[ 'P', 'E', 'L', 'M', 'E' ],
[ 'O', 'P', 'L', 'S', 'T' ]]
tmp_values_02 = [[ 'I', 'T', 'N', 'D' ],
[ 'S', 'A', 'K', 'X' ],
[ 'L', 'B', 'Z', 'M' ],
[ 'P', 'E', 'L', 'M' ]]
tmp_values_03 = [[ 'I', 'T', 'N' ],
[ 'S', 'A', 'K' ],
[ 'L', 'B', 'Z' ]]
from src import locate2d
found_words = locate2d.find_larger_words(tmp_values_02)
print found_words
print len(found_words)