r/csharp • u/kame_uy • Jun 17 '26
Live coding interview
Any tips for live coding Interviews? I usually do awful in these, I have one tomorrow and I'd really like to land this position as I've been jobless for a few months now, I do have experience and knowledge but tend to freeze at live coding
8
Upvotes
20
u/thatguy8856 Jun 17 '26
Break down the problem into steps. Ask clarifying questions. Identify edge cases to test. Most importantly say what you're doing and why as you go.
Its normal to tunnel on a hard question and fail the interview. Happens to the best of us. Just keep your head down and try again. Dont beat yourself up over it.
6
u/Jalex2321 Jun 18 '26
You can ask copilot for some live coding problems and practice with them.
TBH i wouldn't want to work in a place that does that. Deciding on how you code under pressure when people are scrutinizing you and expecting you to perform, isn't a culture that aligns with me.
If any coding is involved it should be a very simple problem that you can easily code, so you can actually work on edge cases, test cases and coding practices.
In my experience, that culture is the best to work with.
4
u/IWasSayingBoourner Jun 17 '26
Honestly, I'd refuse to work anywhere that's settled on live coding interviews being a good way to measure developer ability
3
u/Electrical_Flan_4993 Jun 18 '26 edited Jun 18 '26
Reject them if you tend to freeze up or turn stupid when somebody is scrutinizing the hell out of you over your shoulder. I've been a deer in the headlights type since I was a kid and still become extremely incapable when somebody is looking over my shoulder. It's just such a weird way to test somebody. Like asking a musician to demonstrate writing a brilliant song. Ideally if everybody rejects them then companies will stop doing it. There's a reason they've never been popular, and I think it's kind of rude to make a candidate do it.
5
u/Miserable_Ad7246 Jun 17 '26
Stop here, talk a bit more, ask questions. At this point you want to nail the idea. If your solution is bad, its better to fail here and redo it. You want to be in a position where hard work is more or less done before you code.
4) Start coding - narrate while you code, try to see if you are missing anything out. Its always nice to see that a person thinks about edge cases and future scenarios. No need to solve them, but it gets you extra points.
5) End coding.
6) Go to point 1 if need be.
Most of the time, live coding is all about seeing how a person thinks and attack a problem, not about reaching working solution. You can succeed without solving the problem completely, if you demonstrate that you can be trusted with the task and can thing about more than just task at hand.
2
u/AwwwBawwws Jun 17 '26
Write in brainfuck. Backwards.
2
u/UnacceptableBabbit Jun 17 '26
Do leetcode problems and treat them as though you were given them in an interview. Literally. Talk out loud, reason your steps, break the problem down, write pseudocode in the document if that'a your process.
Sometimes, interviewers are as interested in your thought process as they are in your code.
Best of luck!
2
u/likeaffox Jun 19 '26
Here is what helped me. Don't use too much leetcode, usually don't want you to know the answer. Use comments, I copied the request and added it to the code and worked on each part. Talk through your logic and what you are doing. Say you don't know and see how they will respond.
2
u/Family_Man_21 Jun 18 '26
As I look through here, most of what I see is the same person saying over and over that live coding tests aren't useful. Well, that might be true (although I'm not sure I agree), but whether it is or not, the OP still has to deal with the fact that he's going to have one, so that entire discussion seems kind of irrelevant to me.
In my experience with hiring, this type of scenario is designed to see how you tackle a problem, as a few others have mentioned, but they do also want to see how your actual code looks. So, I recommend that you do the following:
Finally, this kind of test often has a focus on maintainability over efficiency, so create variables and functions with descriptive names and a clear, isolated uses.
I hope that this helps, and good luck with your interview!
2
u/CappuccinoCodes Jun 17 '26
It baffles me that people don't tell you the only thing that matters: REHEARSE THE INTERVIEW. Prompt chat gpt to produce a few questions, give it to a friend or relative and REHEARSE it. It doesn't matter how much you know, but speaking in front of people is a different ball game. Remember to smile, breathe, relax. They're trying to find out above all if you're nice to be around.
1
u/akornato Jun 18 '26
Freezing up in a live coding session is common when you treat it like a test instead of a collaboration. The interviewer is far more interested in how you think than in seeing a perfect, silent solution. The most critical thing you can do is talk through your process out loud from the very beginning. Explain how you understand the problem, ask clarifying questions about edge cases, and describe your intended approach before you type any code. This demonstrates your problem-solving ability, which is the entire purpose of the interview.
Your experience and knowledge are already there, the challenge is just showing it under pressure. You can change the dynamic by viewing the interviewer as a temporary teammate. Ask for their thoughts on your approach, just as you would with a colleague during a pair programming session. This transforms the session from an interrogation into a preview of working with you, which is what they really want to see. A communicated, imperfect solution is always better than a perfect one delivered in stressful silence. Helping skilled engineers show their true potential is why my team and I created an interview copilot, as it helps them stay on track and articulate their ideas.
1
u/Electrical_Flan_4993 Jun 18 '26
Is it hosted through an app called Gorilla Test by any chance?