Questions tagged [longest-substring]

Longest Substring is a classic computer science problem: given two strings, find the common strings, then return the string(s) in common with the greatest length.

The longest common substring problem is a derivative of the edit distance problem, which focuses on the most common typing errors:

  • namely character omissions
  • insertions
  • substitutions
  • reversals

The idea is to compute the minimum number of operations that it would take to transform one string into another. The longest common substring problem follows with the following constraints:

  • substitutions are forbidden
  • only exact character match, insert, and delete are allowable edit operations

References

181 questions
-4
votes
1 answer

How to print the longest substring of vowels

I don't know how to PRINT the longest substring of vowels. I know to count and find length of the longest substring, but I don't know how to print. This is example: Input: 12 fg aaa bvcf ssd ae Output: aaa ``` int isVowel(char c) { char…
Milica Simic
  • 11
  • 1
  • 3
1 2 3
12
13