Resources
Legal
Prepare for interviews with a database of questions from real interviews.
Showing 2,481–2,500 of 3,530
import unittest class Solution: def isvalid(self, s:str) -> bool: matching_brackets = { ")": "(", "]": "[", "}": "{", } stack: list[str] = [] for bracket in s: if bracket in "([{": stack.append(bracket) continue if bracket not in matching_brackets: return False if not stack or stack[-1] != matching_brackets[bracket]: return False stack.pop() return not stack class SolutionTest: def __init__(self): self.Solution = Solution() def run(self): test_cases = [ ("", True), ("()", True), ("(){}[]", True), ("(({}))", True), ("(", False), (")", False), ("(((", False), ("{[]}", False), ] for brackets, expected in test_cases: actual = self.Solution.isvalid(brackets) assert actual == expected, ( f"Ошибка для {brackets!r}" f"Хотели получить {expected}, а получили {actual}" ) print(f"Все тесты пройдены: {len(test_cases)}") if __name__ == "__main__": SolutionTest().run()
What is the variance of a random variable?
Why then will the ranker be trained? That is, will it be independent of the content — what is its target?
If the batch size is larger, will the gradient become smaller or larger?
What are conjugate distributions and why are they convenient?
What is the full model training pipeline?
So, these are inquiries from users, individuals/legal entities?
Why call optimizer.zero_grad() at the beginning of the train loop?
Have you had contact with clients? In what format?
How was the reduction in information search time measured (metric in minutes)?
What is hybrid search in RAG?
What is a clean-label backdoor?
Was it a test/pilot or did it go directly to production and was used by managers?.
How to reverse an array without using compilation?
Are you familiar with GigaChat? Do you have experience working with it?
Explain how the gradient boosting method on decision trees works.
Redis is non-persistent — what will happen if it restarts? Will we lose notifications?
How does the interaction with the client's team and the internal team proceed?
What is your setup when working on a new project using AI (for example, Claude Code or Codex)?
What is selective recomputation in large models?