kt: add «2579. Count Total Number of Colored Cells»

URL:	https://leetcode.com/problems/count-total-number-of-colored-cells/
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2025-03-05 09:26:30 +01:00
parent 513547c2f2
commit 7ee0a7cce6
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -0,0 +1,3 @@
class Solution {
fun coloredCells(n: Int): Long = 1L + 2L * n * (n - 1)
}