you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 2 years ago (1 child)

That's not the point of the article though. Reversing an array is simply an exemple of a very simple CS puzzle. Of course it's common enough to have a builtin function. No, this won't be written in a code base, or asked for a code review. That's not the point.

  • source
  • parent
  • hideshow 2 child comments
  • [–] -2 points 2 years ago* (1 child)

    My point is I don't like complex solutions to simple problems.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 2 years ago

    It's an algorithm question. If somebody gave me your solution in an interview I would ask them to solve the problem without a dependency. These questions are about demonstrating your ability to code whilst understanding space & time complexity.

  • source
  • parent