We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d76db70 commit 1bd06dbCopy full SHA for 1bd06db
scripts/algorithms/S/Simplified Fractions/Simplified Fractions.cpp
@@ -1,3 +1,4 @@
1
+// Runtime: 19 ms (Top 100.00%) | Memory: 22 MB (Top 65.01%)
2
class Solution {
3
public:
4
bool simplified(int n, int i){
@@ -8,7 +9,7 @@ class Solution {
8
9
if(n>1) return false;
10
else return true;
11
}
-
12
+
13
vector<string> simplifiedFractions(int n) {
14
vector<string> ans;
15
while(n>1){
@@ -38,4 +39,4 @@ class Solution {
38
39
40
return ans;
41
-};
42
+};
0 commit comments