Skip to content

Commit b8702f3

Browse files
update 1071 with complexity analysis
1 parent 8d74b1e commit b8702f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/main/java/com/fishercoder/solutions/secondthousand

src/main/java/com/fishercoder/solutions/secondthousand/_1071.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
public class _1071 {
44
public static class Solution1 {
5+
/** Time: O(min(m, n) * (m+n)) Space: O(min(m, n)) */
56
public String gcdOfStrings(String str1, String str2) {
67
int len1 = str1.length();
78
int len2 = str2.length();

0 commit comments

Comments
 (0)