2 ms·
If you save the break between each line, you wouldn't have to scan to the end of the line, you would just look at the next line break.
by BubRoss 6y ago
If you save the break between each line, you wouldn't have to scan to the end of the line, you would just look at the next line break.
- afiodorov 6y agothis would work, but once I start sorting lines I'll need a copy of original line breaks array; so in the end I'd need 16 bytes per line anyway