+ 6

[CHALLENGE] How to get the longest substring which length more than one of one String.welcome to resolve.

how to get the longest substring which length more than one of String.output substring and times of repetition of substring.if there are no substring then output NONO. eg. "5555"=>"555" :2 "aabbcc"=>NONO "abcabcertert"=> abc:2 ert:2 https://www.sololearn.com/discuss/1157975/?ref=app

21st Mar 2018, 2:23 AM
wang
wang - avatar
5 Respostas
+ 7
This was a very nice challenge Thanks https://code.sololearn.com/cOhjKy89v0As/?ref=app
21st Mar 2018, 10:27 AM
Louis
Louis - avatar
+ 4
Mr Louis's answer is perfect.Thank you.I have implemented it by java. https://code.sololearn.com/c8E3HP00x2wE/?ref=app
21st Mar 2018, 5:28 PM
wang
wang - avatar
+ 2
html js java come on pls
3rd Sep 2018, 9:41 AM
wang
wang - avatar
+ 1
that is a very good question
30th Apr 2018, 7:26 PM
Kolawole Falase
Kolawole Falase - avatar
+ 1
thank you for your opinion
30th Apr 2018, 7:27 PM
Kolawole Falase
Kolawole Falase - avatar