Google DeepMind Interview Question

Coding interview - Part 1 (theory and practice, general chat) - All questions were very open-ended. - Difference between [two of your languages of choice]. - Practical implications of the differences? - When you use variables in C++ vs Python, what are the types? (Hinted at python variables not having a fixed type.) - Memory leaks, memory management. Python vs C++. - Private variables in C++ and Python. So does this mean that you can't use Python to write secure software? - Object oriented programming. What are the advantages? When can it be good? - How would you implement Python dictionary if Python interpreter didn't exist? - Explained implementation using hash table. - Q: Another way of implementing it? - All complexity results from the start of the century hold. But some things have changed in our software and hardware. How does it affect things? - Part 2: - Showed me a google slides presentation describing a geometric algorithm for calculating the value of pi. - Task: implement it (took longer in the first part, so only had 15 minutes). - (Roughly: Approximate arc by piecewise-linear function, calculate length of a segment, multiply by number of segments.) - At the end, asked which extra steps would I do if this was to be usable by other people.