Code review & understanding interview questions
Python interview questions I can use in interviews
How should I prepare for Python interview?
Cracking the code interview code review
It doesn’t work. Just converting to a set destroys information you need. For example consider “aba”, “a”. You’re halfway on the rails but you didn’t pick quite the right data structure.
You can use a - b rather than a.difference(b). Maybe you don’t have to, either, just making sure you know.
People will advise not to use string as a name since Python has a builtin module named string. I personally would use s, t (for string and next string, a la i,j,k,… for index and next indexes) but there are those who don’t like the mathy variable names too so it’s a judgment call. Regardless, I don’t like string_edited as a name. The string isn’t an edited string. It’s a candidate edited string.
How are objections passed in Python: by value or by reference? Explain with reasoning.
What are the key benefits of using Python as a programming language?
What role does PEP 8 play in Python programming?
Videos
This is a sample from a real application I started on a few years ago, the sample above is from the earliest skeleton version of the application, and is (only) the SQL data model and some utility functions.
Others were asking about Coding interviews and this is our version of it.
So, take your time, read it through, explain it and see if you can tell me:
-
What does the webapp do?
-
How do the views look?
-
Why does this code exist?