Skip to content
Snippets Groups Projects
Commit 7cfc80d6 authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Recorded work from Monday.

parent 20ae3c56
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ function chooseBackpointer(wordLengths, lineLength, backpointers) {
--start, characterCount += 1 + wordLengths[start]) {
const candidate = new Backpointer(
start,
backpointers[].totalPenalty + penalty(, ),
backpointers[start].totalPenalty + penalty(characterCount, lineLength),
);
if (candidate.totalPenalty < best.totalPenalty) {
best = candidate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment