1071. Greatest Common Divisor of Strings
題目
翻譯
Example 1:
Input: str1 = "ABCABC", str2 = "ABC"
Output: "ABC"
Example 2:Input: str1 = "ABABAB", str2 = "ABAB"
Output: "AB"
Example 3:
Input: str1 = "LEET", str2 = "CODE"
Output: ""思路
一、極限值/特殊狀況
二、哪種資料結構解
三、大概會怎麼解
時間複雜度
解題
Last updated