Data

Find Customers Who Have Purchased Both Product A and Product B
AskAI

This technical problem deals with finding customers who have purchased both Product A and Product B from a database. An example input and output is given.

127
Mar 07
Permutation Check
AskAI

Given two strings, this function will check if one is a permutation of the other.

Finding matching rows in two tables
AskAI

Given two tables, A and B, this SQL query will find all pairs of rows where the values in the columns match.

143
Mar 06
Array Sum
AskAI

This problem asks you to find the sum of all the elements in an array. For example, given the array [1, 2, 3, 4, 5], the sum would be 15 .

Customers with orders over $1000
AskAI

This technical problem involves writing a SQL query to find the names of customers who have placed orders with a value greater than $1000.

141
Mar 06
Two Sum
AskAI

The "Two Sum" problem is a code problem in the "Data Structures and Algorithms" category. Given an array of integers, the goal is to return the indices of the two numbers that add up to a specific target. For example, given nums = [2, 7, 11, 15] and target = 9, the solution would be to return [0, 1] because nums[0] + nums[1] = 2 + 7 = 9.

Length of longest substring without repeating characters
AskAI

This problem asks for the length of the longest substring without repeating characters. For example, given the string "abcabcbb", the answer would be 3, since the substring "abc " has a length of 3.

SQL Query to Find Customers with Orders Greater than $1000
AskAI

This technical problem deals with writing a SQL query to find customers who have placed orders with a total value greater than $1000.

134
Mar 06