

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Interviews
incomplete
2: Relax
incomplete
3: Confidence
incomplete
4: Humility
incomplete
5: Structure
incomplete
6: Be on the Team
incomplete
7: Ask Questions
incomplete
8: Prepare
incomplete
9: Practice
incomplete
This lesson's interactive features are locked, please to keep using them
One of the best tactics for a technical interview is to reframe the situation in your mind.
Rather than thinking of it as an exam, think of it as a collaboration. Generally, you're not being left high and dry by your interviewer, you're able to ask clarifying questions and suggest solutions rather than provide them. Let me show you some examples.
Interviewer: "Write a function that accepts a string and returns the string reversed."
You: "Ok"
You: writes function
You: "Here you go"
Interviewer: "Write a function that accepts a string and returns the string reversed."
You: "Got it, how concerned about memory are we? Should I try to reverse the string in place, or should I create a new string?"
Interviewer: "Let's say we're not concerned about memory, we just want a solution that works."
You: writes signature of function
You: "Ok, so we just want a single string in and a single string out... like this, right?"
Interviewer: "Yep!"
You, while writing the rest of the function: "Ok, so I'll just create a new string, loop through the input string backwards, and add each character to the new string.
This should handle cases of empty strings automatically."
The second example is better for many reasons: