Skip to content

Commit e7000fe

Browse files
committed
Runtime: 4 ms (Top 68.31%) | Memory: 7.2 MB (Top 64.47%)
1 parent 050de77 commit e7000fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/G/Greatest Common Divisor of Strings/Greatest Common Divisor of Strings.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 4 ms (Top 68.31%) | Memory: 7.2 MB (Top 64.47%)
12
class Solution {
23
public:
34
string gcdOfStrings(string str1, string str2) {
@@ -7,4 +8,4 @@ class Solution {
78
if(str1 + str2 == str2 + str1) str = str1.substr(0, temp);
89
return str;
910
}
10-
};
11+
};

0 commit comments

Comments
 (0)