LeetCode 806! ✅
Track line count & pixel width while iterating through the string. When pixels exceed 100, increment line count and reset width to current char's width. Return {lines, lastLineWidth}.
Simple greedy approach
#LeetCode #CodingPractice
0
0
0
0