Anonim_111, you probably used bit manipulations to get powers of 2. And fell into same trap as me: the result is way bigger then intager limit.
Чому не підходить 2^(N-1)*3?
Anonim_111 всё работает, но степень не правильно написона
think about factorial actually the tree for each color how many nodes can be created?😁