RSSAmplifier

Andrew Odendaal

Longest Vowel Substring in Python

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

The challenge Given a lowercase string of letters (no spaces, no digits), return the length of the longest substring that contains only vowels ( aeiou ). Examples: solve( 'codewarriors' ) # → 2 (the 'io' in warriors) solve( 'suoidea' ) # → 3 (the 'uoi') solve( 'aeioaexaeuoiou' ) # → 5 (the 'aeioa' or 'uoiou') solve( 'bcd' ) # → 0 solve( 'a' ) # → 1 The puzzle appears in Codewars in both Python and…

Read on andrewodendaal.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.