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