Pergunta de entrevista da empresa Wayfair

Write a small program that checks for matching brackets. For example, the program would return true if it were given "( ( { ( { [ ] } ) } ) )" where all brackets pair correctly as they would in a program, and return false for something like "( ( [ ] )" or "( [ ) ]".

Respostas da entrevista

Sigiloso

29 de set. de 2016

Use a stack and push open brackets on it and pop when you see a close bracket. When did you interview and did you answer the question successfully?

Sigiloso

5 de out. de 2016

I interviewed in 2015, and I did answer the question successfully after a couple of quick revisions and talking it through with the interviewer. My interviewer said that Wayfair's development strategy is to start with something that works for a base case and make improvements upon that, so I kinda followed their methodology.