interview

Technical Interviews

November 13, 2020
interview

General Advice when solving problems Understand the problem being asked Don’t forget to handle edge cases Expressing your answer is just as important as understanding the problem, and solving it! Problems with Stacks # Checking parenthesis # Examples: Input: () Output: true Input: ()[]{} Output: true Input: ([)] Output: false Input: {[]} Output: true Input : {[]{()}} Output : true Input : [{}{}(] Output :false The logic here is to push a new item on to a stack when we notice an input with an opener, and pop when there is a closer. ...