Pergunta de entrevista da empresa 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.

Resposta da entrevista

Sigiloso

18 de nov. de 2012

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