Leetcode top75

Riguz留言 | 贡献2026年3月24日 (二) 15:13的版本 (创建页面,内容为“Array/String: * 1768. Merge Strings Alternately: use StringBuilder * 1071. Greatest Common Divisor of Strings: if str1 and str2 can be divided, then <math> str1 + str2 = str2 + str1 \gcd(a,b)=\gcd(b,a \bmod b) </math> just get the substring of gcd length”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Array/String:

  • 1768. Merge Strings Alternately: use StringBuilder
  • 1071. Greatest Common Divisor of Strings:

if str1 and str2 can be divided, then [math]\displaystyle{ str1 + str2 = str2 + str1 \gcd(a,b)=\gcd(b,a \bmod b) }[/math] just get the substring of gcd length