Longest Uniform Sub-String

Problem Statement Given a string, find the longest uniform sub-string in it. Return the repeating character and the number of times it repeats. Solution Let us take an example string like “abcdddss“. The question is asking us to return the longest sub-string with the same characters. In this case the longest uniform sub-string is “ddd”. […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top