Python
Where are you geographically located?
Tell about your current responsibilities as a backend engineer.
Have you worked with an ML model: did you build the backend infrastructure and the surrounding framework without touching the model itself?
What is 'unknown' in TypeScript and how does it differ from 'any'?
What is your notice period for resignation?
Why is a WAL file needed in PostgreSQL?
Do you need sponsorship support for a work visa to work in Poland?
There is a module that accepted a task and is dependent. What will you do?
What are the limitations and issues with in-memory cache, especially when scaling microservices across multiple workers?
What is the difference between a function and a procedure in PostgreSQL?
# Write code for the cache function. It is a decorator that should # remember what the decorated function returned, and return the remembered # value when called again with the same arguments. # Assume all arguments are hashable. # Use only the Python standard library. def cache(backend=None): if backend is None: backend = {} def decorator(func): def wrapper(*args, **kwargs): key = (args, tuple(sorted(kwargs.items()))) result = backend.get(key) if result is not None: return result result = func(*args, **kwargs) backend[key] = result return result return wrapper return decorator calls = {"count": 0} backend = {} @cache(backend=backend) def add(a, b): calls["count"] += 1 return a + b assert add(1, 2) == 3 assert calls["count"] == 1 assert add(1, 2) == 3 assert calls["count"] == 1 assert len(backend) == 1 print("OK")
How are the job searches going now: are there finals or offers?
What is important to you when choosing a company and an offer?
Have you worked with Scrum or another process?
Why is the value for the key `True` equal to `3` in the dictionary `{True: 1, 1: 2, 1.0: 3, "1": 4}`, and not `1`?
Tell me more about the product tasks you have done.
What is the difference between `__new__` and `__init__`?
How did your code review go and did you cover the code with tests?
What salary level are you aiming for: what is the comfortable and minimum threshold?
Are you actively seeking a new role? Why are you considering a job change?