Question 8

You have been given a string and a number. You need to find the longest common suffix between string and substring(0 to number)

Example : String = “ababa”

Number is 3

Take a substring from 0 to 2 which is aba

now find the longest matching suffix between “ababa” and “aba”.

[advanced_iframe securitykey=”undefined” src=”” width=”100%” height=”600″]

Register for the new batch at KodNest and start your journey to success.Secure Your Spot Now!Claim Your Seat

Request A Callback

Get a Free 30-minute Counseling session with our experts.