By acoin
via java.dzone.com
Published: Jan 08 2013 / 00:03
Remembering to ignore lines that only have whitespace makes the problem even harder. Here's some Dart code that I wrote to do it. I do believe the performance is O(num_lines * max_line_length), which I think is optimal.
Add your comment