Lego Blocks

  • + 0 comments

    Q1: why {n:1 m:5} would be 0, and {n:1 m:3} would be want 1

    A1: m > 4, and the widest wall is 4, so the wall must has at least two block, and that cause a vertical break, and is invalid

    Q2: how to understand the calculation of invalid wall? (valid left part) * (all right part)

    A2:

    1. left part is valid, that is said left part does not have vertical break

    2. at least one vertical break is between left part and right part

    3. [ left part | right part ] the two part combined together is a wall that has at least one vertical break wall, and that is invalid