𝑺𝑼𝑪𝑪𝑬𝑺𝑺 𝑴𝑨𝑵𝑻𝑹𝑨𝑺 𝑭𝑶𝑹 𝒀𝑶𝑼𝑹 𝑵𝑬𝑿𝑻 𝑪𝑶𝑫𝑰𝑵𝑮 𝑰𝑵𝑻𝑬𝑹𝑽𝑰𝑬𝑾
What can be the Success Mantra before going for your next Coding Interview
▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️
✅ Clarify the problem
(eg:"Describe a good algorithm for sorting a million numbers"
-What is the range of the numbers?/ How are they distributed?/ Are the numbers integers or floating points?/ How much memory is available?/ Are there duplicates?)
✅ Define your approach
✅ Propose a solution
(Propose a solution before coding. Faster to find mistakes verbally than coding out a solution that may be incorrect/ Feel free to say that your first solution will be refined later/ Run through at least one or two examples to check for correctness/ Use reasonable variable names or clean up the code after the first pass/ Ask if the interviewer has any questions before refinement)
✅ Propose an alternative solution
(Ask your interviewer if you have time to find a better solution/ If so, clarify assumptions (e.g., improving performance)/ Rinse, repeat/ Compare the solutions)
✅ Implementation
▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️▶️
Some useful Mock Interview video Channels :