+ 2

Help me with this ..give me a code to solve this

Find the longest consecutive 1s in the given string (110010101110101) using c++ or java for example I)10101110001101= 3 2) 10101= 1 please someone answer this question for me.

27th Sep 2017, 3:58 PM
karthik
karthik - avatar
5 Answers
+ 10
You need to work with regular expressions. See this tutorial to get the point [http://www.informit.com/articles/article.aspx?p=2079020]
27th Sep 2017, 4:58 PM
Babak
Babak - avatar
+ 10
Thanks Gordie for pointing out to the easiest solution. Here is your code my friend. But before using it give Gordie the best answer. https://code.sololearn.com/cOSBmGJV360X
27th Sep 2017, 5:58 PM
Babak
Babak - avatar
+ 1
Gordie help me with a code pls...
27th Sep 2017, 5:56 PM
karthik
karthik - avatar
+ 1
thanks Babak sheykhan
27th Sep 2017, 6:02 PM
karthik
karthik - avatar