6 kyu
Longest alphabetical substring
1,174 of 3,154Avanta
Description:
Find the longest substring in alphabetical order.
Example: the longest alphabetical substring in "asdfaaaabbbbcttavvfffffdf"
is "aaaabbbbctt"
.
There are tests with strings up to 10 000
characters long so your code will need to be efficient.
The input will only consist of lowercase characters and will be at least one letter long.
If there are multiple solutions, return the one that appears first.
Good luck :)
Fundamentals
Strings
Similar Kata:
Stats:
Created | Feb 10, 2018 |
Published | Feb 10, 2018 |
Warriors Trained | 6688 |
Total Skips | 382 |
Total Code Submissions | 11548 |
Total Times Completed | 3154 |
Python Completions | 1174 |
JavaScript Completions | 1201 |
Haskell Completions | 51 |
Elixir Completions | 20 |
Ruby Completions | 265 |
Java Completions | 524 |
Nim Completions | 9 |
Total Stars | 133 |
% of votes with a positive feedback rating | 93% of 538 |
Total "Very Satisfied" Votes | 470 |
Total "Somewhat Satisfied" Votes | 60 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 5 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |