Link Details

Link 902035 thumbnail
User 1059807 avatar

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.
  • 5
  • 2
  • 501
  • 617

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (2)



Node.js
Written by: Bert Belder
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Debugging JavaScript
  2. OO JS
  3. JSON
  4. Ajax
  5. REST