Collections

Algorithms, Data Structures and Coding
AskAI

Technical coding problems for technical interviews. These problems are typical for most companies engineering interviews and may include algorithms, data structures and coding questions.

Dec 13
Machine Learning Engineer
AskAI

Problems and solutions for Machine Learning engineering interviews. Machine learning engineering interviews may include questions about designing machine learning systems, models and pipelines.

Nov 06
SQL Problems
AskAI

SQL problems from technical interviews at top technology companies. These problems apply to interviews for SQL developers, database administrators.

Feb 01

Recent solutions

Below is the list of recent solutions.
The candidate's solution is complete and solves the problem. The candidate's approach is to first find the adjacency matrix A, then the matrix giving the number of 3 step walks, then the generating function for walks from point i → j, and finally the generating function for walks from points 1 → 3.
Oct 25

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

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

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

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

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

This solution is complete and solves the problem. The approach is normalized, which is optimal.
Oct 20

The candidate's solution is correct and solves the problem. The approach is straightforward and easy to understand.
Oct 18