messages
listlengths
1
1
ground_truth
listlengths
0
6
dataset
stringclasses
1 value
question_id
int64
0
527
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nThere are three cards with letters $\\texttt{a}$, $\\texttt{b}$, $\\textt...
[ { "input": "6\nabc\nacb\nbac\nbca\ncab\ncba\n", "output": "YES\nYES\nYES\nNO\nNO\nYES\n" } ]
code_livecodebenchv6
0
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nSlavic is preparing a present for a friend's birthday. He has an array $a...
[ { "input": "4\n4\n2 2 1 2\n3\n0 1 2\n5\n4 3 2 3 4\n9\n9 9 9 9 9 9 9 9 9\n", "output": "16\n2\n432\n430467210\n" } ]
code_livecodebenchv6
1
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a strip of paper $s$ that is $n$ cells long. Each cell is e...
[ { "input": "8\n6 3\nWBWWWB\n7 3\nWWBWBWW\n5 4\nBWBWB\n5 5\nBBBBB\n8 2\nBWBWBBBB\n10 2\nWBBWBBWBBW\n4 1\nBBBB\n3 2\nWWW\n", "output": "2\n1\n2\n1\n4\n3\n4\n0\n" } ]
code_livecodebenchv6
2
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a string $s$ of length $n$, consisting of lowercase Latin l...
[ { "input": "14\n1 0\na\n2 0\nab\n2 1\nba\n3 1\nabb\n3 2\nabc\n6 2\nbacacd\n6 2\nfagbza\n6 2\nzwaafa\n7 2\ntaagaak\n14 3\nttrraakkttoorr\n5 3\ndebdb\n5 4\necadc\n5 3\ndebca\n5 3\nabaac\n", "output": "YES\nNO\nYES\nYES\nYES\nYES\nNO\nNO\nYES\nYES\nYES\nYES\nNO\nYES\n" } ]
code_livecodebenchv6
3
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an array of integers $a_1, a_2, \\ldots, a_n$ and a number ...
[ { "input": "15\n2 5\n7 3\n3 3\n7 4 1\n5 2\n9 7 7 3 9\n5 5\n5 4 1 2 3\n7 4\n9 5 1 5 9 5 1\n3 4\n6 3 6\n3 4\n6 1 5\n3 4\n1 5 9\n4 4\n1 4 1 1\n3 4\n3 5 3\n4 5\n8 9 9 3\n2 5\n1 6\n2 5\n10 10\n4 5\n1 6 1 1\n2 5\n7 7\n", "output": "2\n2\n1\n0\n2\n0\n1\n2\n0\n1\n1\n4\n0\n4\n3\n" } ]
code_livecodebenchv6
4
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nVanya and Vova are playing a game. Players are given an integer $n$. On t...
[ { "input": "6\n1\n3\n5\n100\n999\n1000\n", "output": "First\nSecond\nFirst\nFirst\nSecond\nFirst\n" } ]
code_livecodebenchv6
5
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nAlex is participating in the filming of another video of BrMeast, and BrM...
[ { "input": "5\n2\n1 2\n6\n10 2 3 6 1 3\n4\n1000000000 1000000000 1000000000 1000000000\n15\n60978 82265 78961 56708 39846 31071 4913 4769 29092 91348 64119 72421 98405 222 14294\n8\n19957 69913 37531 96991 57838 21008 14207 19198\n", "output": "1\n9\n0\n189114\n112141\n" } ]
code_livecodebenchv6
6
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nA subarray is a continuous part of array.\n\nYarik recently found an arra...
[ { "input": "7\n5\n1 2 3 4 5\n4\n9 9 8 8\n6\n-1 4 -1 0 5 -4\n4\n-1 2 4 -3\n1\n-1000\n3\n101 -99 101\n20\n-10 5 -8 10 6 -10 7 9 -2 -6 7 2 -4 6 -1 7 -6 -7 4 1\n", "output": "15\n17\n8\n4\n-1000\n101\n10\n" } ]
code_livecodebenchv6
7
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYarik is a big fan of many kinds of music. But Yarik loves not only liste...
[ { "input": "5\n1\n2\n4\n3 1 3 2\n2\n1000 1000\n3\n1 1 1\n19\n2 4 1 6 2 8 5 4 2 10 5 10 8 7 4 3 2 6 10\n", "output": "0\n2\n1\n3\n19\n" } ]
code_livecodebenchv6
8
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array of strings details. Each element of detai...
[]
code_livecodebenchv6
9
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed 2D integer array nums. Initially, your score is...
[]
code_livecodebenchv6
10
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums of length n and an integer k...
[]
code_livecodebenchv6
11
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums representing the score of st...
[]
code_livecodebenchv6
12
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed string s and a dictionary of words dictionary. ...
[]
code_livecodebenchv6
13
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer array prices representing the prices of various ...
[]
code_livecodebenchv6
14
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two numeric strings num1 and num2 and two integers max_sum ...
[]
code_livecodebenchv6
15
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums of length n.\nThe distinct differenc...
[]
code_livecodebenchv6
16
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nThere is a 0-indexed array nums of length n. Initially, all elements are ...
[]
code_livecodebenchv6
17
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums representing the strength of...
[]
code_livecodebenchv6
18
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed permutation of n integers nums.\nA permutation ...
[]
code_livecodebenchv6
19
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed string s that consists of digits from 0 to 9.\n...
[]
code_livecodebenchv6
20
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nThere are n friends that are playing a game. The friends are sitting in a...
[]
code_livecodebenchv6
21
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nA 0-indexed array derived with length n is derived by computing the bitwi...
[]
code_livecodebenchv6
22
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a string s consisting only of uppercase English letters.\nY...
[]
code_livecodebenchv6
23
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a positive integer n, return the punishment number of n.\nThe punis...
[]
code_livecodebenchv6
24
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two 0-indexed integer arrays, cost and time, of size n repr...
[]
code_livecodebenchv6
25
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums of size n representing the c...
[]
code_livecodebenchv6
26
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two integers, n and k.\nAn array of distinct positive integ...
[]
code_livecodebenchv6
27
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two integers, num and t.\nAn integer x is called achievable...
[]
code_livecodebenchv6
28
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a string s consisting of lowercase English letters, and you...
[]
code_livecodebenchv6
29
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed binary string s of length n on which you can ap...
[]
code_livecodebenchv6
30
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a positive integer num represented as a string, return the integer ...
[]
code_livecodebenchv6
31
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer n that consists of exactly 3 digits.\nWe call th...
[]
code_livecodebenchv6
32
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a 0-indexed string s, repeatedly perform the following operation an...
[]
code_livecodebenchv6
33
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums, and you are allowed to trav...
[]
code_livecodebenchv6
34
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a string s consisting of only lowercase English letters. In...
[]
code_livecodebenchv6
35
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums. A pair of indices i, j wher...
[]
code_livecodebenchv6
36
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums and an integer k.\nA subarra...
[]
code_livecodebenchv6
37
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer n denoting the total number of servers and a 2D ...
[]
code_livecodebenchv6
38
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums representing the initial pos...
[]
code_livecodebenchv6
39
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two integers num1 and num2.\nIn one operation, you can choo...
[]
code_livecodebenchv6
40
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two 0-indexed integer arrays nums1 and nums2, each of lengt...
[]
code_livecodebenchv6
41
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 1-indexed integer array nums of length n.\nAn element num...
[]
code_livecodebenchv6
42
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a positive integer array nums.\nPartition nums into two arr...
[]
code_livecodebenchv6
43
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array words consisting of distinct strings.\nTh...
[]
code_livecodebenchv6
44
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums containing n distinct positi...
[]
code_livecodebenchv6
45
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nThe imbalance number of a 0-indexed integer array arr of length n is defi...
[]
code_livecodebenchv6
46
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given three integers x, y, and z.\nYou have x strings equal to \"...
[]
code_livecodebenchv6
47
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array words containing n strings.\nLet's define...
[]
code_livecodebenchv6
48
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums of n integers and an integer target....
[]
code_livecodebenchv6
49
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an array nums consisting of positive integers.\nWe call a s...
[]
code_livecodebenchv6
50
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nA truck has two fuel tanks. You are given two integers, mainTank represen...
[]
code_livecodebenchv6
51
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums and an integer threshold.\nF...
[]
code_livecodebenchv6
52
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a binary array nums.\nA subarray of an array is good if it ...
[]
code_livecodebenchv6
53
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums. A subarray of nums is calle...
[]
code_livecodebenchv6
54
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two 0-indexed integer arrays nums1 and nums2 of length n.\n...
[]
code_livecodebenchv6
55
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums. A subarray s of length m is...
[]
code_livecodebenchv6
56
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums consisting of positive integers.\nYo...
[]
code_livecodebenchv6
57
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer n. We say that two integers x and y form a prime...
[]
code_livecodebenchv6
58
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nThere are n employees in a company, numbered from 0 to n - 1. Each employ...
[]
code_livecodebenchv6
59
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven three strings a, b, and c, your task is to find a string that has t...
[]
code_livecodebenchv6
60
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums and a positive integer k.\nY...
[]
code_livecodebenchv6
61
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a string s and an integer k, partition s into k substrings such tha...
[]
code_livecodebenchv6
62
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven an array of strings words and a character separator, split each str...
[]
code_livecodebenchv6
63
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven two positive integers n and x.\nReturn the number of ways n can be ...
[]
code_livecodebenchv6
64
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a binary string s, partition the string into one or more substrings...
[]
code_livecodebenchv6
65
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a string word and an array of strings forbidden.\nA string ...
[]
code_livecodebenchv6
66
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYour laptop keyboard is faulty, and whenever you type a character 'i' on ...
[]
code_livecodebenchv6
67
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a 0-indexed string s, permute s to get a new string t such that:\n\...
[]
code_livecodebenchv6
68
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nAn element x of an integer array arr of length m is dominant if freq(x) *...
[]
code_livecodebenchv6
69
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums and a non-negative integer k.\nIn on...
[]
code_livecodebenchv6
70
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer array nums. We consider an array good if it is a...
[]
code_livecodebenchv6
71
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums and a positive integer x.\nY...
[]
code_livecodebenchv6
72
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums. You have to find the maximu...
[]
code_livecodebenchv6
73
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums, an integer modulo, and an i...
[]
code_livecodebenchv6
74
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an array nums of length n and an integer m. You need to det...
[]
code_livecodebenchv6
75
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a 0-indexed integer array nums of length n and an integer target, r...
[]
code_livecodebenchv6
76
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array usageLimits of length n.\nYour task is to...
[]
code_livecodebenchv6
77
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums containing n integers.\nAt each seco...
[]
code_livecodebenchv6
78
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven two positive integers low and high represented as strings, find the...
[]
code_livecodebenchv6
79
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two 0-indexed integer arrays nums1 and nums2 of equal lengt...
[]
code_livecodebenchv6
80
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 2D integer array coordinates and an integer k, where coor...
[]
code_livecodebenchv6
81
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer array nums and two positive integers m and k.\nR...
[]
code_livecodebenchv6
82
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nInitially, you have a bank account balance of 100 dollars.\nYou are given...
[]
code_livecodebenchv6
83
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven an array of strings words and a string s, determine if s is an acro...
[]
code_livecodebenchv6
84
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an integer n representing the number of houses on a number ...
[]
code_livecodebenchv6
85
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two positive integers low and high.\nAn integer x consistin...
[]
code_livecodebenchv6
86
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two strings s1 and s2, both of length 4, consisting of lowe...
[]
code_livecodebenchv6
87
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array nums and an integer x.\nFind the ...
[]
code_livecodebenchv6
88
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given positive integers low, high, and k.\nA number is beautiful ...
[]
code_livecodebenchv6
89
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two 0-indexed strings str1 and str2.\nIn an operation, you ...
[]
code_livecodebenchv6
90
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a string moves of length n consisting only of characters 'L...
[]
code_livecodebenchv6
91
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two strings s and t of equal length n. You can perform the ...
[]
code_livecodebenchv6
92
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums consisting of non-negative powers of...
[]
code_livecodebenchv6
93
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nGiven a 0-indexed 2D integer matrix grid of size n * m, we define a 0-ind...
[]
code_livecodebenchv6
94
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed integer array receiver of length n and an integ...
[]
code_livecodebenchv6
95
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given two 0-indexed binary strings s1 and s2, both of length n, a...
[]
code_livecodebenchv6
96
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed 2D integer array nums representing the coordina...
[]
code_livecodebenchv6
97
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given an array nums of positive integers and an integer k.\nIn on...
[]
code_livecodebenchv6
98
[ { "role": "user", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\n### Question: \nYou are given a 0-indexed array nums of length n containing distinct posi...
[]
code_livecodebenchv6
99