Mid-level React Interview

57,160
0
Published 2022-10-08
I do a mock interview with a developer at work, Cody. He crushes it!

Join our Front End Guild Discord server: discord.gg/HXpRtNxnvx

We built a platform to guarantee your resume gets seen by a human: hackerrelay.com/

All Comments (21)
  • @licokr
    As a person who preparing for frontend interviews, it really helped. Many people talk about the question because the question may seem like focused on algorithm. I don't know if this is the best interview for the md-level "react" interview though, the point is that. This video is really helpful for me. I really appreciate it you made this video and uploaded it on youtube. Thank you very much! I'm looking forward to further mock interview videos!
  • Pretty easy to do it faster than n^2 at home, but I would probably freeze up in an interview lol. I could feel that guys anxiety haha
  • @Kreshel1
    react interview... 2 react questions and then 90% of the video a leet code exercise
  • @devzozo
    I think a good way to practice would be to copy a hackerrank problems into a react app, display the result(s) in a component, then make an input for the user to see different results from whatever the hackerrank question is asking to do. That seems to be the theme for many of the early-mid level questions. Cody kept saying something along the lines of "Theres probably a better way to do this" and I think that's ok to say, but if you say it too frequently, it makes you seem less confident or qualified. You might want to reword it in a more 'impressive' way by saying something like "I would probably review the documentation to make sure this is the best way to do this...".
  • ahh.. btw the solution that they agreed on is not correct, consider "ABCDAFG", their code will output "ABCD" but the correct answer is "BCDAFG". also this is an easy two-pointers problem.
  • @mooosafir74
    I like the concept of structuring the interview , very scientific.
  • @khalidben9940
    The use of Array.includes method will affect the time complexity that will be O(n^2), nested loop so to speak.
  • @AAmorim1989
    - He did not crush it, he would have been rejected. - This is not a mid level interview, more like an entry level one.
  • @gombosmm
    Would this not be a junior/entry interview...? I am on that level, and I feel like I could've done exactly the same
  • In that getTheLargestSubString problem, u can probably use 'continue' to just skip that repeating char that u don't want in ur array
  • @SuperYoda7
    in reality we would use chatGPT for that function and then just build the component.
  • @horne1395
    My first thought about the first problem is to have a way to know which characters has already been iterated to. Maybe something like a Set or a Map, array could definitely be used but that would be O(n). then whenever the current iterated character is already in the set or map, that means we have to reset the tracker.
  • @ahmedAltariqi
    I remember watching this video when it was released and I didn't understand anything at all. Now, I solved it without watching the video and I feel really happy! 😂
  • as a self taugh i feel that its hard to organize what you need to know to get a job
  • @preslavgetov1330
    I would just add (based on my interview experience) that perhaps stating that you have never touched something or don't know it (in the redux/jotai question) does not really add anything to conversation other then name drop. If you don't have any knowledge to share, a simple don't know about it would suffice.
  • @kashmyr8
    Nice video but I think the candidate overall would have failed in my book. 1. They answered all the React questions in the beginning pretty well. 2. The solution for the coding challenge is pretty much O(n^2) due to the includes nested in the for loop. The solution is not optimal and a pretty messy. 3. The react code was messy. The util method should have been brought in from another file instead of residing in the component. The util function itself should have been "pure" and should not include any React state setter methods. That should be done outside of the util method. Not knocking the interviewee at all though, it's a lot harder under pressure obviously.
  • @nr7343
    He did not complete the exercise. maxLength=currentVal
  • Man, I'm struggling to get entry/junior level job and could answer those questions anytime.
  • i won't lie, i did not expect the materials for mid-level position interview would be like this; i understand and can kind of solve the problem by myself which was surprising i always thought that i am more of a junior position guy despite having more than 1.5 yoe because i am never get confident enough of my skills.. but then maybe that's why i am still not good enough for a mid-senior level because i'm still not confident? no telling honestly lol