Thursday, October 25, 2012

Longest substring whose characters are continuous.


Given a string find the longest substring whose characters are continuous.
Input : "owadcbjkl"
Output: "adcb

No comments:

Post a Comment