FAQ: Technical Interviews: Whiteboarding - Coding the Solution

This community-built FAQ covers the “Coding the Solution” exercise from the lesson “Technical Interviews: Whiteboarding”.

Paths and Courses
This exercise can be found in the following Codecademy content:

FAQs on the exercise Coding the Solution

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Agree with a comment or answer? Like () to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

We’ve been preparing for the technical interview using JavaScript until this point, where I notice the instructor using a more Python-like syntax for coding the solution.

Is writing pseudo-code the preferred route to take in technical interviews? Would it ever be advantageous to use proper syntax in a particular language?

It’s something you’ll have to ask the interviewer. Writing in pseudo-code may be a preference to avoid spending too much time on syntax writing- and problems while others may prefer the language interviewed for to prove literacy in that programming language.

In the Pythagorean Theorem, c has to be the greatest length (hypotenuse). In his code, isn’t it true that 12 is never the c value? Doesn’t that mean his code would return false for input [5, 4, 3] even though it should be true?

UPDATE: Never mind he addresses this on the next page!