Browse Source

updating final print statement in both letter coverages

master
Charles Reid 2 years ago
parent
commit
6f3da0a366
2 changed files with 4 additions and 2 deletions
  1. +1
    -1
      letter_coverage.py
  2. +3
    -1
      letter_coverage_dbg.py

+ 1
- 1
letter_coverage.py View File

@@ -74,7 +74,7 @@ if __name__=="__main__":
N = 15

words = get_words()
#words = words[:1000]
words = words[:1000]


# Initialization:


+ 3
- 1
letter_coverage_dbg.py View File

@@ -266,5 +266,7 @@ if __name__=="__main__":
min_key = ix
min_val = ones_bv[ix]

pprint(list(btsolution(min_key, min_val, words, bt)))
solution = list(btsolution(min_key, min_val, words, bt))
print("Takes "+str(len(solution))+" words to cover "+str(N)+" letters")
pprint(solution)


Loading…
Cancel
Save