Pregunta de entrevista de Amazon

Write a function that takes two strings A & B as arguments. Return a boolean that indicates if A is a substring of B. Explain the various test cases you would run on the function.

Respuesta de la entrevista

Anónimo

18 nov 2012

Java : Case1: A.contains(B){ return true; } Case2: (A.toLowerCase()).contains(B.toLowerCase()){ return true; }