Data

Longest Substring Without Repeating Characters
AskAI

This problem is asking for the longest substring without repeating characters within a given string. For example, if the input string is "abcabcbb", the output should be 3, since " abc" is the longest substring without repeating characters.

Array Sum
AskAI

This problem asks the user to write a function that returns the sum of the elements in an array. An example input and output are given.

Find all customers who have ordered a product with a price of $10 or more .
AskAI

The SQL query below will find the names of all customers who have placed an order for at least one product with a price of $10 or more. SELECT customers.name FR OM customers JOIN orders ON customers.id = orders.customer_id WHERE orders.price >= 10;

135
Mar 03
Two Sum: Given an array of integers, return the indices of the two numbers...
AskAI

The problem is to find the indices of two numbers in an array that add up to a specific target. There is guaranteed to be only one solution.

Joining Two Tables of Data in SQL
AskAI

Write a SQL query to join two tables of data and return the results.

134
Mar 03
Joining Two Tables on a Common Column
AskAI

Joining two tables on a common column can be accomplished using a SQL query. The query will return a table with the common ID column and the columns from both Table1 and Table2.

146
Mar 03
Longest Increasing Subsequence in an Array
AskAI

Given an array of integers, this problem looks for the longest subsequence in which the integers appear in increasing order. So, for the given array {3, 5, 2, 7}, the longest increasing subsequence would be {3, 5, 7}.

Find the maximum sum of a contiguous subarray in an array of integers.
AskAI

Given an array of n integers, the goal is to find the contiguous subarray whose sum is maximum. For example, given the array [-2, 1, -3, 4, - 1, 2, 1, -5, 4], the maximum sum would be [4, -1, 2, 1], for a sum of 6.