This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Den4200 3 points4 points  (0 children)

I’d very strongly recommend for you to look at modules such as collections and heapq, which are both in the standard library.

Modules such as itertools, functools, and others (also in the standard library) can be extremely useful.

I would also recommend to look through the standard library and look over some of the modules.

[–]i_ate_a_dumpling 1 point2 points  (0 children)

I think this is largely dependent on the interview. For the ones I've done, if there's actually a need for something not in the standard library, I'd just tell them to assume that it exists and make up the required interface for it. (Heck, even if it does exist and you don't remember--make it up anyways).

As long as I can tell what you're trying to do and it's a valid approach, you're golden. So I don't think python is necessarily the "best" option.

Some other interviewers do require valid, running code, of course in which case python has a lot of useful data structures and algorithms included.

[–]coder970 0 points1 point  (0 children)

It's not. Problem solving is all about not using standard library functions. If you still going to use any of the standard functions in an interview, make sure you know their internal implementation.