interview tips
1.) tell soln from BRUTE to BETTER to OPTIMAL
2.) Give good names to fn & var.
3.) Extra Space Used : given wale ko exclude karke batana hai.
Space Used : given wale ko include karke batana hai.
4.) never deep down in brute solution in interview, just tell upar upar se (IMP)
5.) tell method/steps upar upar se and u need not code in interview also (IMP)
6.) Don't make global variables while solving an interview ques.
-------------------------------------------------------------------------------------------------------------
7. don't change original given thing, instead make a copy of it & work on copy
⭐8. we can simplify our soln by explicitly handling edge cases and making generalized algo for the result
9. in general, interviewer do not ask for time complexity for reccurssion problem, but if asked then tell exponential
10. Do not use pow() function in interview, instead build your own multiplier function,
e.g., in nth root problem, we do not use pow() function since we need exact answer and pow() returns answers in floating point precision.
11. pow() & ceil() function works with floating values and returns answers in double
--------------------------------------------------------------------------------------------------------------
Comments
Post a Comment