DEV Community


Discussion on: Daily Challenge #29 - Xs and Os

vimmer9 profile image
Damir Franusic • Edited

Hi and no problem changing the code

The following is indeed not needed:

(xc == oc ? true : false);

The loop tests strings from both sides to be more performant. Try doing benchmarks of both versions and post the results. I don't have time right now but might do it in the evening and show you the difference. Or, I might just embarrass myself lol.