Open In App

Tesco Interview Experience | Set 3 (Online Test)

Improve
Improve
Like Article
Like
Save
Share
Report

Q.1> Given a string, find the longest subseqence of chars from string that conntains all vowels may be repeated but in a e i o u order
Examples:

Input : aaejkioou
Output : 7

Q.2> Given a string, e. g., abababaa it can have many suffixes including whole string. Return sum of max common prefix length of given string with all its suffixes
Examples:

Input :  ababaaa
Output : 13

Last Updated : 27 Oct, 2017
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads