3 ms·
I don't think 'j' nor 'j-1' would make sense here. 'i' would make sense, if you also terminate the condensed string. Maybe it would be clearer if the names of
by nkurz 16y ago
I don't think 'j' nor 'j-1' would make sense here. 'i' would make sense, if you also terminate the condensed string.
Maybe it would be clearer if the names of the index variables better described their purpose?
http://gist.github.com/416298 http://gist.github.com/416298 (no peaking if you're submitting!)
I think these names make it clearer that neither "z_terminated[condensed]" nor "z_terminated[condensed - 1]" are reliable ways to find the end of the original string.