problem
stringlengths 89
1.15k
| solution
stringlengths 9
80
|
---|---|
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((36, 42), '[2, 8, 11, 5, 18]') | \boxed{2, 8, 11, 18}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find two numbers in the list that add up to the target value. The input is (5, '[6, 9, 18, 0, 5]') | \boxed{0, 5} |
Given a list of numbers separated by spaces, find the smallest number. The input is [111, 11, 6, 2387, 56, 0, 54, 8, 222] | \boxed{0} |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [0, 9, 6, 1] | \boxed{0, 9, 6, 1} |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [999, 68, 330] | \boxed{999, 68, 330} |
Given a list of numbers $l$ separated by spaces and a target value $k$, find four numbers in the list that add up to the target value. The input is (68, '[4, 4, 55, 89, 5]') | \boxed{4, 4, 55, 5}\ |
Given a list of numbers separated by spaces, find three numbers in the list that add up to be a multiple of 10. The input is [4, 4, 9, 5, 7] | \boxed{4, 9, 7}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find four numbers in the list that add up to the target value. The input is (23, '[9, 3, 5, 9, 0]') | \boxed{9, 5, 9, 0}\ |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [0, 4, 6, 2, 555, 2, 890, 7, 2, 1, 29, 8, 3, 26, 2, 5, 8] | \boxed{2} |
Given a list of numbers separated by spaces, find four numbers in the list that add up to be a multiple of 10. The input is [4, 1, 4, 1, 5] | \boxed{4, 1, 4, 1}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find three numbers in the list that add up to the target value. The input is (17, '[6, 4, 8, 2, 0, 4, 3]') | \boxed{6, 8, 3}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((18, 20), '[5, 1, 7, 0, 6, 2, 7]') | \boxed{5, 1, 7, 6}\ |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [4, 3] | \boxed{4, 3} |
Given a list of numbers $l$ separated by spaces and a positive integer $k$, find the $k$th largest number. The input is ([3, 1, 2, 100], '2') | \boxed{3}\ |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [28, 1, 1, 3, 4, 0, 4, 6] | \boxed{28, 4, 1, 6, 3, 0} |
Your task is to solve the Traveling Salesman Problem (TSP). Given a list of cities and the distances between each pair of cities, your goal is to find the shortest path that visits every city once and returns to the starting city. The input is [[60, 105, 95, 24], [67, 108, 654, 0], [88, 113, 7, 5], [93, 0, 0, 20]] | \boxed{0, 2, 3, 1, 0}\ |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [8, 10, 3, 5, 9, 5, 2] | \boxed{10}\ |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [7, 0, 4, 1, 10, 2, 6] | \boxed{0}\ |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [0, 4] | \boxed{0, 4} |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [52, 100, 7, 4, 7] | \boxed{7} |
Given a list of numbers $l$ separated by spaces and a target value $k$, find a set of numbers in the list that add up to the target value. The input is (906, '[906, 3, 5, 5, 10, 6, 7, 7, 8, 7, 3, 7, 15]') | \boxed{906}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((13, 15), '[0, 346, 5, 1, 8, 6, 8, 2]') | \boxed{6, 8}\ |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [1, 1, 1] | \boxed{1} |
Given a list of numbers $l$ separated by spaces and a positive integer $k$, find the $k$th largest number. The input is ([3, 7, 3, 4, 1], '2') | \boxed{4}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find three numbers in the list that add up to the target value. The input is (25, '[6, 1, 18, 5, 5]') | \boxed{6, 1, 18}\ |
Given a list of numbers separated by spaces, find the largest number. The input is [23, 52, 908, 10, 88, 99, 78, 4, 111, 6] | \boxed{908} |
Given a list of numbers separated by spaces, find the smallest number. The input is [486, 53, 1, 35, 10, 10000, 123, 0, 0, 487] | \boxed{0} |
Given a list of numbers $l$ separated by spaces and a positive integer $k$, find the $k$th largest number. The input is ([1000, 4, 3, 3, 98], '2') | \boxed{98}\ |
Given a list of numbers separated by spaces, find three numbers in the list that add up to be a multiple of 10. The input is [56, 1, 6, 3, 7, 2] | \boxed{56, 1, 3}\ |
Given a list of numbers $l$ separated by spaces and a positive integer $k$, find the $k$th largest number. The input is ([10, 3, 0, 100], '2') | \boxed{10}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((16, 18), '[2, 5, 6, 6, 7, 7, 6]') | \boxed{5, 6, 6}\ |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [3, 1, 8, 6, 1, 5, 2, 0] | \boxed{0}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find three numbers in the list that add up to the target value. The input is (39, '[8, 2, 5, 11, 9, 13, 8, 0, 9, 5, 15, 5]') | \boxed{11, 13, 15}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find four numbers in the list that add up to the target value. The input is (15, '[4, 1, 7, 3, 6]') | \boxed{4, 1, 7, 3}\ |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [7, 0, 901, 7, 7] | \boxed{901, 7, 0} |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((29, 31), '[1, 7, 9, 6, 18, 5, 3, 3, 4, 4]') | \boxed{3, 9, 18}\ |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [5, 39, 24, 3] | \boxed{5, 39, 3, 24} |
Your task is to solve the Traveling Salesman Problem (TSP). Given a list of cities and the distances between each pair of cities, your goal is to find the shortest path that visits every city once and returns to the starting city. The input is [[190, 21, 7, 7], [4, 739, 5, 55], [0, 5, 124, 124], [6, 78, 410, 6]] | \boxed{0, 2, 1, 3, 0}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [1, 0, 3, 4, 2, 15, 8, 3, 1, 3, 9, 3, 8, 3] | \boxed{1, 3, 4, 8, 9}\ |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [4, 16, 8, 46, 56789, 27, 2, 13, 72, 7, 41] | \boxed{13, 72, 27, 8, 2, 7, 4, 56789, 46, 16, 41} |
Given a list of numbers separated by spaces, find three numbers in the list that add up to be a multiple of 10. The input is [5, 0, 1, 3, 36, 7] | \boxed{0, 3, 7}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((13, 15), '[3, 745, 6, 1, 1, 3, 0, 4]') | \boxed{1, 3, 4, 6}\ |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [4, 2, 6, 99, 5] | \boxed{6, 99, 4, 5, 2} |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [4, 6, 7, 16, 3, 6, 4, 11, 19, 6, 9] | \boxed{6} |
Given a list of numbers separated by spaces, find the largest number. The input is [126, 1, 50, 0, 4, 444] | \boxed{444} |
Given a list of numbers $l$ separated by spaces and a target value $k$, find a set of numbers in the list that add up to the target value. The input is (14, '[6, 7, 3, 14, 24, 6]') | \boxed{14}\ |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [5, 5, 15, 0] | \boxed{15, 5, 0} |
Given a list of numbers $l$ separated by spaces and a positive integer $k$, find the $k$th largest number. The input is ([3, 3, 4, 0], '2') | \boxed{3}\ |
Given a list of numbers separated by spaces, find the largest number. The input is [5168, 5, 352, 64, 215, 3, 98, 512] | \boxed{5168} |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((21, 25), '[8, 4, 5, 11, 1]') | \boxed{8, 4, 11, 1}\ |
Given a list of numbers separated by spaces, find the smallest number. The input is [0, 1, 9, 1] | \boxed{0} |
Given a list of numbers separated by spaces, find the largest number. The input is [651, 987, 1, 0, 3, 949, 77, 500, 2] | \boxed{987} |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [3, 61, 2, 7, 1, 6, 3, 3, 12, 1, 2, 7, 15, 5, 1, 25, 8, 14, 56, 0] | \boxed{1, 3} |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [9, 0, 10, 5, 5, 8, 2, 5, 7] | \boxed{0}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [5, 8, 3] | \boxed{5, 8}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find two numbers in the list that add up to the target value. The input is (19, '[0, 19, 11, 5]') | \boxed{0, 19} |
Given a list of numbers separated by spaces, find the largest number. The input is [789, 5583, 8437, 3, 2, 1024, 0, 65, 13, 2] | \boxed{8437} |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [2, 10, 5, 5, 3, 3, 51, 1, 8, 67, 28, 98, 9, 5, 1, 0, 1, 2, 36, 8, 3, 5] | \boxed{5} |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((28, 79), '[59, 8, 6, 722, 4, 10]') | \boxed{59, 8, 6, 4}\ |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [43, 7, 6, 5, 3, 0] | \boxed{0, 3, 6, 43, 5, 7} |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [1, 13, 300, 0, 5, 2, 8, 26, 3, 1, 6, 10, 5] | \boxed{1, 2, 3, 6, 10}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [4, 8, 1, 12, 0, 9, 5, 18, 7, 1, 40, 4, 2, 19, 10] | \boxed{4, 8, 12, 18, 40}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [6, 6, 3, 3, 3, 9, 4, 12, 13, 4] | \boxed{6, 9, 12, 13}\ |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [9, 2, 19, 15, 1, 2, 17, 6, 0, 0, 9] | \boxed{2, 0, 9} |
Given a list of numbers $l$ separated by spaces and a target value $k$, find two numbers in the list that add up to the target value. The input is (15, '[13, 2, 10]') | \boxed{13, 2} |
Given a list of numbers $l$ separated by spaces and a target value $k$, find four numbers in the list that add up to the target value. The input is (48, '[0, 3, 0, 42, 6]') | \boxed{0, 0, 42, 6}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [4, 93, 2, 2, 22, 4, 9, 5, 9, 3, 4, 4] | \boxed{2, 4, 5, 9}\ |
Given a list of numbers separated by spaces, find the mode of the numbers. The input is [3, 5, 5, 7, 4, 5, 11, 50, 4, 3, 0, 13, 6, 5, 1, 4, 52] | \boxed{5} |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [1, 7, 8, 9, 6, 2, 10, 3, 2] | \boxed{10}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find three numbers in the list that add up to the target value. The input is (8, '[1, 4, 5, 2, 15, 6]') | \boxed{1, 5, 2}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [51, 9] | \boxed{51}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find two numbers in the list that add up to the target value. The input is (30, '[6, 12, 10, 20, 91]') | \boxed{10, 20} |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((61, 64), '[27, 5, 6, 2, 0, 56, 3]') | \boxed{5, 2, 0, 56}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find three numbers in the list that add up to the target value. The input is (20, '[9, 12, 5, 0, 8]') | \boxed{12, 0, 8}\ |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [1, 0] | \boxed{1, 0} |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [78, 2, 33, 2, 4, 319, 56, 7, 2, 82, 10, 77, 3] | \boxed{33, 3, 82, 2, 7, 56, 319, 4, 10, 78, 77} |
Given a list of numbers separated by spaces, find three numbers in the list that add up to be a multiple of 10. The input is [3, 4, 2, 5] | \boxed{3, 2, 5}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find four numbers in the list that add up to the target value. The input is (28, '[5, 2, 8, 10, 8]') | \boxed{2, 8, 10, 8}\ |
Your task is to solve the Traveling Salesman Problem (TSP). Given a list of cities and the distances between each pair of cities, your goal is to find the shortest path that visits every city once and returns to the starting city. The input is [[678, 12, 8], [123, 80, 20], [2, 15, 558]] | \boxed{0, 1, 2, 0}\ |
Given two integer arrays $l_1$ and $l_2$, return the longest common subarray that appears in both arrays. A subarray is a contiguous sequence of numbers within an array. The input is [33, 5, 6, 3, 1, 3, 3, 2, 14, 16, 2, 24, 7, 5] | \boxed{5, 6, 14, 16, 24}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find a set of numbers in the list that add up to the target value. The input is (110, '[5, 4, 5, 85, 2, 2, 3, 7]') | \boxed{5, 4, 5, 85, 2, 2, 7}\ |
Given a list of numbers separated by spaces, find the largest number. The input is [3, 7, 987, 507, 351, 54, 100, 12345, 4, 3, 10000, 512, 67, 88, 63, 538, 0, 0, 250, 3619] | \boxed{12345} |
Given a list of numbers separated by spaces, find the smallest number. The input is [729, 36, 24, 6, 0, 23, 65, 7, 1, 2, 7, 5, 3, 98, 1, 21, 100, 20, 2, 6861] | \boxed{0} |
Given a list of numbers separated by spaces, sort the numbers in ascending order. The input is [10, 8, 6, 27, 0, 32, 0, 11, 1] | \boxed{10, 32, 1, 27, 6, 11, 0, 8} |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [5, 2, 4, 4, 0, 2, 2, 10, 8, 2] | \boxed{0}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((13, 15), '[5, 1, 0, 0, 8, 100, 6, 9, 6, 2]') | \boxed{5, 1, 0, 8}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((13, 15), '[6, 4, 5, 0, 7, 10, 3, 2, 8, 4]') | \boxed{4, 10}\ |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [1, 10, 2, 11, 5, 9, 3, 9] | \boxed{10}\ |
Given a list of numbers separated by spaces, find a subset in the list that adds up to be a multiple of 10. The input is [3, 7, 5, 2, 3, 5, 3] | \boxed{3, 7}\ |
Your task is to solve the Traveling Salesman Problem (TSP). Given a list of cities and the distances between each pair of cities, your goal is to find the shortest path that visits every city once and returns to the starting city. The input is [[1593, 82, 10, 57, 0], [9, 10, 0, 0, 890], [109, 14, 2, 176, 74], [0, 9, 903, 789, 75], [108, 127, 14, 156, 8]] | \boxed{0, 4, 2, 1, 3, 0}\ |
Your task is to solve the Traveling Salesman Problem (TSP). Given a list of cities and the distances between each pair of cities, your goal is to find the shortest path that visits every city once and returns to the starting city. The input is [[234, 78, 68, 121, 10], [13, 0, 998, 0, 0], [82, 8, 61, 632, 0], [345, 36, 8, 650, 0], [235, 345, 93, 22, 81]] | \boxed{0, 4, 3, 2, 1, 0}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((93, 95), '[2, 8, 3, 21, 2, 4, 5, 2, 5, 75]') | \boxed{2, 4, 5, 8, 75}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find a set of numbers in the list that add up to the target value. The input is (0, '[4, 0, 6, 5, 8, 10, 9, 15, 7, 310]') | \boxed{}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find three numbers in the list that add up to the target value. The input is (27, '[10, 8, 7, 10, 5, 3, 1, 8, 4]') | \boxed{10, 7, 10}\ |
Given a list of numbers $l$ separated by spaces and a positive integer $k$, find the $k$th largest number. The input is ([0, 31, 3, 6, 0], '2') | \boxed{6}\ |
Your task is to solve the Traveling Salesman Problem (TSP). Given a list of cities and the distances between each pair of cities, your goal is to find the shortest path that visits every city once and returns to the starting city. The input is [[483, 8, 3, 4, 0], [54, 89, 0, 123, 816], [0, 857, 2, 85, 710], [0, 9, 0, 966, 330], [2, 78, 448, 15, 382]] | \boxed{0, 4, 3, 1, 2, 0}\ |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find four numbers in the list that add up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$.The input is ((15, 23), '[2, 2, 5, 62451, 6, 13]') | \boxed{2, 2, 5, 13}\ |
Given a list of numbers separated by spaces, remove duplicate numbers so that every number appears only once, and output the remaining numbers in their original order.The input is [7, 7, 3] | \boxed{7, 3} |
Given a list of numbers $l$ separated by spaces and two numbers $a$ and $b$, find a subset in the list that adds up to a value that is in the range $(a, b)$, i.e. greater than $a$ and less than $b$. The input is ((1, 3), '[3, 1, 14, 0, 8, 2, 5]') | \boxed{2}\ |
Given a list of numbers $l$ separated by spaces and a target value $k$, find a set of numbers in the list that add up to the target value. The input is (0, '[2, 0, 3, 18, 4, 11, 89, 1, 5, 116]') | \boxed{}\ |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 26