You are not logged in. Please login at www.codechef.com to post your questions!

×

can anyone provide program for this

In a string, a "run" is a substring with consisting of consecutive occurrences of the same character. For example, the string "mississippi" contains the following runs - "ss", "ss" and "pp".

In this question, given a string, you have to output the length of the longest run in the string

asked 17 Sep '17, 16:52

jay1311's gravatar image

0★jay1311
1
accept rate: 0%


its pretty straight forward here

link

answered 17 Sep '17, 17:08

phantomhive's gravatar image

4★phantomhive
944
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,470

question asked: 17 Sep '17, 16:52

question was seen: 167 times

last updated: 17 Sep '17, 17:08