Hello! This <https://play.golang.org/p/vPqBAUroadV> is the code which I'm trying. The generation of map is the candidates from the string s1. However, the answer should be "345", which the count is not the most.
Thanks for your replying. Max Jan Mercl於 2020年8月19日星期三 UTC+8下午4時31分09秒寫道: > > On Wed, Aug 19, 2020 at 10:07 AM 洪嘉鴻 <[email protected] <javascript:>> > wrote: > > > Hello everyone: > > I use golang with Win10. The version of golang which I'm using is > go1.15. > > I want to find out the repeated string. > > For example, given a string which is "1134534534534534". > > I want the output string to be "345" > > I've tried to > > Could anyone help me to solve this problem? > > It would be nice if you can show the code that you wrote in an attempt > to solve this problem. Someone may then point out where a mistake was > made and/or suggest a better solution. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3da3891b-9bb7-4981-9262-03708aad1d7do%40googlegroups.com.
