Queen's Attack II Discussions | Algorithms | HackerRank
  • + 0 comments

    How's this different from the following: Loop through cells in each direction (write 8 loops) and stop as soon as you encounter an obstacle. Add 1 every time you don't and return the sum.