7 kyu
Invisible cubes
1,307 of 4,542TheOpti
Description:
Imagine there's a big cube consisting of small cubes. Calculate, how many small cubes are not visible from outside.
For example, if we have a cube which has 4 cubes in a row, then the function should return 8, because there are 8 cubes inside our cube (2 cubes in each dimension)
For a visual representation: --> https://imgur.com/a/AN8A5DJ
Puzzles
Similar Kata:
Stats:
Created | Oct 1, 2015 |
Published | Oct 1, 2015 |
Warriors Trained | 9220 |
Total Skips | 1114 |
Total Code Submissions | 13033 |
Total Times Completed | 4542 |
JavaScript Completions | 1307 |
C# Completions | 541 |
Ruby Completions | 333 |
Python Completions | 1351 |
Java Completions | 807 |
Haskell Completions | 179 |
C++ Completions | 159 |
C Completions | 87 |
COBOL Completions | 10 |
Total Stars | 57 |
% of votes with a positive feedback rating | 87% of 549 |
Total "Very Satisfied" Votes | 438 |
Total "Somewhat Satisfied" Votes | 83 |
Total "Not Satisfied" Votes | 28 |