You are reading a single comment by @Greenbank and its replies. Click here to read the full conversation.
  • Both look good.

    The obvious optimisation for part2 is that if you're comparing A+B+C against B+C+D then you're only really comparing A against D as both have B+C in common. So it becomes much like part1 in that you only need to compare inputs[x] against inputs[x+3].

About

Avatar for Greenbank @Greenbank started