Ad
  • Custom User Avatar

    Yup that does make sense. I mentioned to start from index 0 to indicate starting from left to right but have added your line as it makes it much clearer, thanks!

  • Custom User Avatar

    Thanks!
    I didn't mean to make it repetitive as I thought I was testing different things (but maybe not).

  • Custom User Avatar

    I originally found the problem on Project Euler and did a quick search for it here but couldn't find it (clearly my search wasn't very thorough!).
    The last bit was just meant to add an extra element to the problem-solving that I thought utilised different skills.