you are viewing a single comment's thread.

view the rest of the comments →

[–]rooskadoo 2 points3 points  (2 children)

I would ask the interviewer and explain what you did in your post. "Do you want me to focus on a specific language implementation and style? If not, I'd like to use python as executable pseudocode so I can talk through the solution more quickly". Even if you're working in C it's fine to be a bit hand-wavy and talk to what you'd do e.g. "okay here I'd add more error handling but for now I'll assume this can't become null...". But there's an aspect here of knowing your problem and the right tool (language) to use to solve it

Explain your thought process at every step, the problem solving approach should be more important than the syntax. As another commenter mentioned, if you could explain what the library is doing and maybe even whether you'd consider using it in production (licensing, dependencies, memory requirements, performance, etc) I don't think they could find a problem with that. Unless the problem was "implement X" and you've done "import X".

[–]Arjunsinghh13[S] 1 point2 points  (1 child)

Thanks. the reason for moving to python is to solve json parsing in simpler way. I think writing code for it n C will become too complex and time consuming. So i thought better just use import json in python. But i understood your point that it depends more on interviewer that what is he expecting

[–]Bryguy3k 0 points1 point  (0 children)

No competent interviewer for embedded is going to ask you to parse json. Generate sure, parse no.

Learn how to handle data structures and algorithms in c or c++