Join our community to practice, learn, solve your problems with AI. Recruiters: create tests and evaluate candidates instantly.

#### Recent solutions:

Check these solutions from our community:
This technical problem deals with creating a function that will take in an array of integers and return the sum of all the even numbers in the array.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate's approach is also optimal, making use of a CASE statement to check if the number is even and then returning the number if it is even and 0 if it is not. The SUM function then adds up all the numbers in the column.
Oct 24
This problem asks whether a given singly linked list is a palindrome. A palindrome is a word, phrase, or sequence that reads the same backward as forward. In this case, the list is a palindrome if the elements in the list read the same forward as backward.
About this solution: The candidate's solution correctly checks if a singly linked list is a palindrome. The approach is to use a slow and fast pointer to find the middle of the list, reverse the second half of the list, and then compare the two halves. One potential improvement to the solution would be to use a stack to keep track of the first half of the list instead of reversing the second half. This would avoid having to reverse the second half of the list, which is unnecessary work.
Oct 23
This problem requires the use of a binary search algorithm to find a target value in a sorted array. If the target value is found, the index of that value is returned. If the target value is not found, -1 is returned.
About this solution: The candidate's solution is complete and solves the problem. The candidate uses a binary search, which is the most efficient way to search a sorted array.
Oct 23
This problem deals with using a cursor to loop through a table of employee data in order to print the employee's name and salary.
About this solution: The candidate's solution is complete and solves the problem. The candidate has used a cursor to loop through the table and print the employee's name and salary. This is the optimal solution.
Oct 23
This problem involves searching for a given value in a sorted array of integers. If the value is found, the index of the target value is returned; if not, -1 is returned.
About this solution: The candidate's solution is correct and demonstrates a level of completeness. The candidate has correctly identified the problem and has provided a solution that solves the problem. The candidate's approach is general and uses a binary search algorithm, which is the optimal solution for this problem.
Oct 22
To predict the price of a house, we can use linear regression to learn the relationship between house size and price. Then, to predict the price of a new house, we can simply plug in the size of the house into the trained model.
About this solution: The candidate's solution is correct and demonstrates a good understanding of the problem. The linear regression model is a good choice for this problem.
Oct 22
Databases / SQL DifficultyMedium SQL
The company needs a database to store information about the products, customers, and orders. The database should be able to track the quantity of products in stock and customer information so that the company can email customers updates about their orders.
About this solution: This solution is complete and solves the problem. The approach is normalized, which is optimal.
Oct 20
Given a table of transactions, this SQL query will find the total value of all transactions that occurred on each day.
About this solution: The candidate's solution is correct and solves the problem. The approach is straightforward and easy to understand.
Oct 18