LA3547 Entertainment ( Like 2048-Game )

Revision en1, by bluemmb, 2016-11-06 10:26:22

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 ...

Tags live archive, 2048, data structure

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English bluemmb 2016-11-06 10:26:22 941 Initial revision (published)