Skip to content

Instantly share code, notes, and snippets.

View fullstackzach's full-sized avatar
🎯
Focusing

Zach Willard fullstackzach

🎯
Focusing
View GitHub Profile
/**
* @param {string[]} words
* @param {number} maxWidth
* @return {string[]}
*/
var fullJustify = function(words, maxWidth) {
let wordIndex = 0
let justified = []
let wordLengths = []
while (wordIndex < words.length) {