Pergunta de entrevista da empresa Amazon

Test if 2 sort arrays contained each other

Respostas da entrevista

Sigiloso

7 de abr. de 2012

what the heck does "contain each other" mean? given two sets, either s1 is a subset of s2, s2 is a subset of s1, they are equal, or they are not equal or subsets of each other. so the only way they can "contain each other" is if the are equal, and i don't think that's what the question is asking. the question is probably asking if one sorted array is contained in another sorted array.

Sigiloso

8 de abr. de 2012

Way to be an ungrateful j3rk, Jeff. You obviously understand what I wrote (even though it's bad English). Just kindly clarify it in your comment so that other people can see. That's how you respond to a stranger whose input is helping you in an interview. You'd better not show this side of you during the interview.