in reply to Re: The sum of absolute differences in the counts of chars in two strings.
in thread The sum of absolute differences in the counts of chars in two strings.
Your freqs[256]={0}; is unfamiliar syntax to me. Some gcc modernism to initialize the array?while (*s) {freq[*s++]++;} while (*t) {freq[*t++]--;}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The sum of absolute differences in the counts of chars in two strings.
by davido (Cardinal) on Nov 19, 2011 at 20:10 UTC | |
|
Re^3: The sum of absolute differences in the counts of chars in two strings.
by mbethke (Hermit) on Nov 20, 2011 at 06:07 UTC |