You are viewing a single comment's thread. Return to all comments →
Can make it slightly faster in your comparison
for (int i = 0; i < x.Length; i++) { char result = x[i]-y[i]; if (result) return result; }
Just calculate the difference directly and return the difference if it's non-zero.
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Can make it slightly faster in your comparison
Just calculate the difference directly and return the difference if it's non-zero.