Ask Mentors Anything
Get your questions/doubts directly answered by our mentors. Let's get started.
Mentee Question
Other than DSA, what others things are required such as how to present answers in interview and much more. Some points to keep in mind during the interview.
Mentors Answer
Answered By Mentor Priyansha Sharma
To build up answer/solution during interviews:
- Start with the brute force solution. It shows you understand the problem.
- Think out loud Always.
- Write your own 3-5 test cases.
- Write all the steps you are going to follow in your approach. It makes things easier for interviewer to follow along your approach.
- Start coding and Refer back to each step of your algorithm.
- Dry run your code line by line against your test cases.
- Check with the interviewer if you need to walk them through your approach.
- Tell time and space complexity of the solution.
- Offer to optimize the algorithm. Point out the inefficiency with first approach then explain what you can do differently.
Hope my answer helps you. if you have any other doubt, please reach out to me.
Priyansha Sharma
Software Engineer
Microsoft
Answered By Mentor Sachin Sinha
DSA is an aspect most often considered by companies when evaluating problem solving skills of an individual. But just being good with DSA is not sufficient enough, we need to consider different other aspects while being in interview. Few of them in order are-
- Clarifying question asked by interviewer.
- Coming up with a brute force approach first and have a small discussion on this solution and time and space complexity.
- Optimising logic to bring solution under given constraints.
- Keep speaking throughout what's going on in your mind.
- Ask for hints if stuck for long.
- Discuss the solution and T&S complexities with interviewer.
- Code it, make sure it's clean and readable.
- Do good testing of it, make sure you are not missing any edge cases.
- Ask interviewer to review your code.
- Ask some questions to interviewer about company/product/tech stacks.
Avoid asking for feedbacks at end of company interview as it is supposed to come via HR.
Above discussed points are for DSA interviews, there are certainly different aspect to be considered for Machine coding/Hiring Manager/ Design rounds.
Sachin Sinha
Software Development ...
Amazon
Top Performing Mentors This Week 🔥
Loading...