leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE | |
commit | 504e4aa8a26d7d5a9d6e4a98138fb5a0f1e6da63 |
parent | 0615ec828290fa7131cb882fbd3d0fd1e536cfbb |
author | Dimitrije Dobrota <mail@dimitrijedobrota.com> |
date | Thu, 27 Apr 2023 09:17:38 +0200 |
Daily Problem
Diffstat:A | Problems/0319.cpp | | | ++++ |
M | README.md | | | + |
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Problems/0319.cpp b/Problems/0319.cpp
@@ -0,0 +1,4 @@
class Solution {
public:
int bulbSwitch(int n) { return sqrt(n); }
};
diff --git a/README.md b/README.md
@@ -223,6 +223,7 @@ for solving problems.
| 0304 | Medium | [Range Sum Query 2D - Immutable](Problems/0304.cpp) |
| 0309 | Medium | [Best Time to Buy and Sell Stock with Cooldown](Problems/0309.cpp) |
| 0310 | Medium | [Minimum Height Trees](Problems/0310.cpp) |
| 0319 | Medium | [Bulb Switcher](Problems/0319.cpp) |
| 0322 | Medium | [Coin Change](Problems/0322.cpp) |
| 0326 | Easy | [Power of Three](Problems/0326.cpp) |
| 0328 | Medium | [Odd Even Linked List](Problems/0328.cpp) |