Ad
  • Default User Avatar

    Most likely because whoever wrote this didn't realize it can be solved in O(1). Or because this kata is listed in the section "LINQ excercises" so the author tried to solve it using System.Linq library. I don't think it can be solved in O(1) using language integrated query.

  • Custom User Avatar

    Same here, that is a bit inexpected tbh.