A program that prints the longest substring of s in which the letters occur in alphabetical order – codereview.stackexchange.com

Assume s is a string of lower case characters. Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "A program that prints the longest substring of s in which the letters occur in alphabetical order – codereview.stackexchange.com"