Accenture Coding Question | String Within a String | CodeWindow
String within String Given two strings, ‘X’ and ‘Y’ (length(X)>=1, length(Y)<=10000), find out if ‘Y’ is contained in ‘X’ Input specification:Input1: The string ‘X’.Input2: The string ‘Y’. Output Specification:Return “yes” if ‘Y’ is contained in ‘X’ else return no. Example 1:Input 1: abacInput 2: ab Output: yesExplanation:ab is present with abac Example 2:Input 1: xyacInput […]
Accenture Coding Question | String Within a String | CodeWindow Read More »