This commit is contained in:
VicRen
2020-12-29 08:54:40 +08:00
parent f51292dc00
commit 6ed6173f36
2 changed files with 149 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package main
func main() {
}
func isEqual(s, t string) bool {
return process(s) == process(t)
}
func process(s string) string {
var ret []rune
for _, c := range s {
if string(c) == "#" {
if len(ret) > 0 {
ret = ret[:len(ret)-1]
}
continue
}
ret = append(ret, c)
}
return string(ret)
}
func process2(s string) string {
return ""
}