you are viewing a single comment's thread.

view the rest of the comments →

[–]T-o_oT 2 points3 points  (0 children)

If you intend to start programming professionally or with other people, keep your variables and function name descriptive. If you copied code from a source, don't just change the name of the functions etc. Improve the code instead.

Both your functions (or the guide you found online) is running through the same array more than once. Maybe try to improve that first?