Ad
  • Custom User Avatar

    You could have used return x == 0 && y == 0 && count == 10; instead if-else stament.

    Also instead of using strlen, you could have used a pointer arithmetic so you don't have to iterate the array twice.