Conduct live coding interviews with precision.
The ultimate collaborative platform for technical screens. Interviewers construct questions and test cases, candidates write syntax-highlighted code, and results are executed live—all in a seamlessly integrated virtual room with built-in chat.
1. Two Sum
EasyGiven an array of integersnums and an integertarget, return indices of the two numbers such that they add up totarget.
classSolution:
deftwoSum(self, nums: List[int], target: int) List[int]:
# Track seen numbers and their indices
seen =
for i, numinenumerate(nums):
complement = target - num
if complementin seen:
return[seen[complement], i]Candidate