In the second image it is 1 cut by dimension, 1 in x axis, 1 in y axis and 1 in z axis. The last image with 2 cuts by dimension, you get 27 cubes, but you only have 26 with paint on them.
The color issue is really important! Then think about counting all the cubes! How to do it the easiest way. In the end, the solution will be in your pocket.
no it doesnt
Looks great!
C Language
Problem With Test Cases:
I had an invalid array entry (empty string) and the exptected base was 299
Sorry, man
Please don't just write a spoiler and not flag it.
This comment is hidden because it contains spoiler information about the solution
tryMax - an extra variable. But it makes the solution more understandable.
Clear to understand!
In the second image it is 1 cut by dimension, 1 in x axis, 1 in y axis and 1 in z axis. The last image with 2 cuts by dimension, you get 27 cubes, but you only have 26 with paint on them.
The color issue is really important! Then think about counting all the cubes! How to do it the easiest way. In the end, the solution will be in your pocket.