about | help | code help+videos | done | prefs |
UIL2015_INVA_04_CONSONANTRUNS
Given a string, find the longest run of consonants, case insensitive and which may or may not be consecutive, that are either ascending or descending. In this problem the letter “Y” is a consonant. The following consonants are ascending – “b g t”. The following consonants are descending – “m h c”. Repeated consonants can be considered ascending when determining ascending runs and descending when considering descending runs. A string of a single consonant can be considered either ascending or descending.
UIL2015_INVA_04_CONSONANTRUNS("QWERTY") → 3 UIL2015_INVA_04_CONSONANTRUNS("Human") → 3 UIL2015_INVA_04_CONSONANTRUNS("A human must turn information into intelligence or knowledge.") → 6 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy