mirror of
https://github.com/cubixle/codekata-golang.git
synced 2026-04-24 19:54:43 +01:00
28 lines
360 B
Go
28 lines
360 B
Go
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 ""
|
|
}
|