We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0b869 commit f4c0c38Copy full SHA for f4c0c38
Count Total Number of Colored Cells/kata.go
@@ -0,0 +1,6 @@
1
+package kata
2
+
3
+func coloredCells(n int) int64 {
4
+ k := int64(n)
5
+ return k*k + (k-1)*(k-1)
6
+}
0 commit comments