This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from collections import defaultdict | |
matrix = defaultdict(list) | |
width = 30 | |
# each row in the tree, from top to bottom. | |
# [first led, middle led, last led], counting from 0 | |
input = [ |