Python
What are the disadvantages of asynchronous code?
Apart from government services, what other integrations have you implemented?
Why might a server respond to ping but be unavailable over TCP/UDP, for example, via HTTP or FTP?
Do you have any questions about the vacancy and conditions?
Is the metaclass built into Python?
What is SOLID? Tell me about the principles.
What are the results of expressions with == and is for integers, including small numbers and numbers outside the cache?
Have you ever optimized SQL queries or analyzed performance? What tools did you use? What does EXPLAIN show?
If you have seen slow queries, how did you analyze the problem and what solutions did you implement? Is there a real case?
What are the advantages of microservices architecture? Has it always been possible to make services completely independent?
Tell us what you did at your previous jobs. Let's start with the company [company].
What is the algorithmic complexity of the expression 999999 in range(1,99999999)?
Tell me about authentication. How does a JWT token work?
"""Write code that extracts links from raw text and sorts them according to certain rules. The list of links returned should not contain duplicates. Sorting rules are as follows: - Priority 1: The first detected links, up to self.first_extracted_links - Priority 2: Links to cloud drives and documents (Yandex Disk, etc.) - Priority 3: Links to files (ending with extensions like .exe, .pdf, .rar, etc.) - Priority 4: Remaining links sorted from longer to shorter strings Also, consider the limit on the number of links and implement a context manager. Can be run, for example, at [link] Total: - 30 minutes are given for execution - Write functions apply, process, and functions for the context manager - All tests must pass - Tests cannot be modified - You can use imports - After writing, you can check by running locally, and fix if something is wrong on this page Regex for link detection: (?:https?|ftp):\/\/(?:[a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?::\d+)?(?:\/[^\s()]*)? """ class LinkExtractor: DEFAULT_CLOUDS = frozenset(( "drive.google.com", "mediafire.com", "yadi.sk", "disk.yandex.ru", "cloud.mail.ru", "mega.nz" )) # You can extend this method or rewrite it def __init__(self, max_links: int = 7, first_extracted_links: int = 2, clouds = None): # Maximum number of links to return in the array self.max_links = max_links # Number of links extracted for the first condition self.first_extracted_links = first_extracted_links # List of domains considered as clouds for the second condition self.clouds = clouds or self.DEFAULT_CLOUDS self._results = [] # Write this method, adds a part of text to analyze later def apply(self, text) -> "LinkExtractor": ... return self"""}]}]}
Do you have favorite conferences, speakers, or YouTube channels that you follow?
Tell me about the team and how the processes were conducted.
How do cookies work at the HTTP level? How can they be set?
What is your attitude towards mutual code review in a small team?
[name] asked: Imagine you have two offers — from our company and another. What criteria will you use to choose, and what might sway you towards the other company?
[x for x in y] versus (x for x in y)