Input a string output the starting position and length of


Question: Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

For example:

    ? XabXXXXXxxxXXXXXyyXX     position=4 length=5

If there are no Xs in the input string, print "no Xs".

You have to satisfy the requirements specific in the instruction.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Input a string output the starting position and length of
Reference No:- TGS0947080

Expected delivery within 24 Hours