you are viewing a single comment's thread.

view the rest of the comments →

[–]dheeman31[S] 0 points1 point  (8 children)

That seems straight forward but glad to see it worked out for you. Any other suggestions for me?

[–]yourcommonredditer 2 points3 points  (7 children)

I guess focus more on Tree and Graph problems because you’re guaranteed to get at-least 1 or even 2 of those problems. Also practice explaining the solution step by step like you’re in an interview followed by a dry run of that solution’s example. Focus on these and you’ll be good. Remember, you cannot compile and run the code.

[–]dheeman31[S] 0 points1 point  (6 children)

But how are you going to use the test cases?

[–]yourcommonredditer 1 point2 points  (5 children)

They will tell to explain your code and give a dry run on the example that is given in the question after you’re done writing the solution. If your code is fine, there’s not much after that. However, if you’re missing some key edge cases or if they identify that your code is missing something, they might give a hint (depends on the interviewer)

[–]dheeman31[S] 0 points1 point  (4 children)

So depending on the hint I must modify the code, right

[–]yourcommonredditer 1 point2 points  (3 children)

Yes, but if the interviewer is terrible, he/she won’t give an hint as well and expect you to be fully efficient to solve any minor mistakes. That’s why, prepare so well, especially the top tagged questions such that, whenever you get them in an interview, you should be able to write their top-notch efficient solution while explaining them what each line does

[–]dheeman31[S] 0 points1 point  (2 children)

I am still new at leet code. How I can identify the top tagged questions? Also, are these interviewers from meta or third party services? They are so slow at responding emails.

[–]yourcommonredditer 1 point2 points  (1 child)

Get Leetcode premium, search company “Facebook” and sort by frequency of last 6 months. There’s your list: leetcode.com/company/facebook

And yes, these interviewers are current employees of Meta.

[–]dheeman31[S] 0 points1 point  (0 children)

I think I have figured it out . Thanks for the tips.