Design Candy Crush Saga Game


  • 1
    M

    Design the Candy Crush Saga game, there are five kinds of candy, the goal is to initialize the game and the same candy will not appear three times continuously in a row or column. and the board size is 10 * 10
    e.g. (1,2,3,4,5 mean different types of candy)
    1 2 2 1 2 2 3 3 5 1
    2 2 1 2 2 3 3 5 1 4
    3 3 5 1 4 5 4 1 2 2
    1 2 3 5 1 1 4 1 2 2
    4 2 3 3 5 1 2 3 4 4
    1 4 2 1 2 2 3 3 5 1
    1 2 2 1 4 1 1 2 5 1
    5 2 5 4 2 2 3 3 4 2


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.