You are viewing a single comment's thread. Return to all comments →
You can optimize it a bit more by removing the if clause inside your second for loop.
for (x=0;x<26;x++) { odds += (lettercounts[x]&1); }
I just check if odds > 1. Not huge but eliminating conditionals boosts performance quite a bit.
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Thrones - I
You are viewing a single comment's thread. Return to all comments →
You can optimize it a bit more by removing the if clause inside your second for loop.
I just check if odds > 1. Not huge but eliminating conditionals boosts performance quite a bit.