Блог пользователя bluemmb

Автор bluemmb, история, 8 лет назад, По-английски

Hi. How to solve this problme ? Link

Problem statement is simple : You are given a table of characters and Q queries. Each query is a cell in table (X=char in that cell) , you must delete all the cells which contain X and are reachable from it by passing over just X's. After each query you must shift the full cells into the empty cells of their left side and then bottom.

For example : query (1,1) step by step :

You must output the table after performing all the queries.

Thanks in advance ...

  • Проголосовать: нравится
  • +8
  • Проголосовать: не нравится