hell_hacker's blog

By hell_hacker, history, 8 years ago, In English

My approach for ChessMetric is to find all the positions reachable from position start, then put them in a queue of tuples where first and second elements are the co-ordinates and the third is number of moves. But it is giving Memory limit exceeded. Any idea how to make this efficient? I used unsigned short int for co-ordinates and number of moves.

Thank You.

Tags dp
  • Vote: I like it
  • 0
  • Vote: I do not like it