commit 0429b82834dc197ec54949683a732805990c9c98
parent f02c3256e18f4c335156c94319914a4548989115
Author: Dimitrije Dobrota <mail@dimitrijedobrota.com>
Date: Mon, 12 Jun 2023 14:42:02 +0200
Random Problem
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Problems/0367.cpp b/Problems/0367.cpp
@@ -0,0 +1,4 @@
+class Solution {
+public:
+ bool isPerfectSquare(int num) { return pow((int)sqrt(num), 2) == num; }
+};
diff --git a/README.md b/README.md
@@ -241,6 +241,7 @@ for solving problems.
| 0347 | Medium | [Top K Frequent Elements](Problems/0347.cpp) |
| 0350 | Easy | [Intersection of Two Arrays II](Problems/0350.cpp) |
| 0352 | Hard | [Data Stream as Disjoint Intervals](Problems/0352.cpp) |
+| 0367 | Easy | [Valid Perfect Square](Problems/0367.cpp) |
| 0371 | Medium | [Sum of Two Integers](Problems/0371.cpp) |
| 0374 | Easy | [Guess Number Higher or Lower](Problems/0374.cpp) |
| 0376 | Medium | [Wiggle Subsequence](Problems/0376.cpp) |