What personal characteristics can create difficulties in your professional activity?
Python
How do you usually recover after a workday?
What are the differences in capabilities and approaches when using pydantic and dataclasses in Python?
Is there an option for multiple inheritance in Python?
What is Middleware in FastAPI and why is it needed?
What special methods need to be implemented when creating a custom context manager in Python?
How do NumPy and Pandas work with GIL?
Have you created a Kubernetes cluster from scratch?
Have you ever used YAML to describe configurations or manifests?
Have you had experience with containerization technologies and deploying applications in containers?
Maximum length of consecutive ones after deleting one element (Max Consecutive Ones After Deleting One Element) Condition: Given a non-empty array consisting of only zeros and ones. Find the maximum length of consecutive ones that can be obtained by deleting exactly one element from the array. Deleting one element is mandatory, even if the array consists entirely of ones. Input data: - nums – a non-empty array of integers, each element is 0 or 1 Output: - An integer – the maximum length of consecutive ones after deleting exactly one element Constraints: - 1 <= nums.length <= 10^5 - nums[i] is 0 or 1 Example: Go code: ```go // Available without import: sort, fmt, encoding/json package main func MaxOnes(nums []int) int { // TODO: write solution here return 0 } ``` Python code: ```python # Available without import: json, sys, io def max_ones(nums): # TODO: write solution here return 0 ```
Can you explain what is meant by sequential scanning of a table in a database?
What types of resource management mechanisms exist in Python?
How to implement A() + B() = C()? How to add two objects and get a third?
What is meant by the use of type annotations in Python code and how do they assist in development?
Can Python be considered a language that is compiled before execution?
How to set up and use Celery for asynchronous task execution in a Django project?
What is the role of the __iter__ method in implementing iterators in Python?
How does message passing occur in the RabbitMQ system?
In what cases should function parameters be specified in their declarations?