leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
2579.cpp (104B)
0 class Solution { 1 public: 2 long long coloredCells(int n) const { return 1 + 2ll * n * (n - 1); } 3 };