Ad
  • Custom User Avatar

    This is exactly how i did it, guess I'm a pro.
    except I had j being incremented seperately in the for loop, I'm a c++ noob.

  • Custom User Avatar

    People really just upvote the shortest answer for "Best Practices" even though there is a "clever" option.

    Golfing is fun, but not a good practice