messages listlengths 3 3 |
|---|
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an integer n. Determine whether n i... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers and an integ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a list of n integers. Find the mini... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. Find the le... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums, return the maxim... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of n integers, determine if there ex... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of n integers, find the maximum sum ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n and a... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nThere are N cities and M bidirectional roads conn... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums and an integer ta... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven two sorted arrays A and B of lengths n and ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of n integers, find the maximum sum ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers, find the length of th... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of N integers, find the maximum poss... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers, find the maximum sum ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a string s of length n consisting only of l... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers, find the length of th... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a string S consisting of lowercase English ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an integer array nums of length n. ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of n positive integers, find the max... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. Your task i... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. Your task i... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S containing only lowercas... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n positive integers. Fi... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S of length n consisting o... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a tree with N nodes (numbered 1 to N) and N... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a string s consisting of lowercase English ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string s consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, find... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S of length n consisting o... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a list of n integers. Find the mini... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of n positive integers, find the m... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of integers. Determine if ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, find... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of n integers, find the maximum su... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an integer n and a string s of leng... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nThere are N cities and M bidirectional roads betw... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an integer n, find the smallest integer gre... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of N integers, find the maximum su... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an integer N, output the sum of all even nu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. For each in... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array A of n positive integers. ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a string S consisting of lowercase English ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of N integers, find the length of ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of N integers, find the length of ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of n integers, determine the numbe... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, find... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of length n, determine whether it ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven two integers n and k, and an array of n pos... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven two arrays of integers A and B, both of len... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an undirected graph with n vertices... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of positive integers, determine if... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of N integers, determine if it is po... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a sequence of n positive integers. ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n positive integers. De... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven n distinct points in the plane with integer... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of n integers, find the minimum nu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a grid of n rows and m columns cons... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string s of length n consisting o... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a grid of size n × m consisting of only 0s ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of n integers, determine the lengt... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a grid of size n x m, filled with i... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven two strings A and B of the same length, det... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n distinct integers. Yo... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a grid of N rows and M columns consisting o... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string s consisting of lowercase ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. Find the mi... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums and an integer ta... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of N integers. Find the nu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. Find the le... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of n positive integers, find the sma... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a string s consisting of lowercase English ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a string S of length n consisting of lowerc... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an undirected graph with n nodes an... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven two strings S and T, determine the minimum ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an array of n integers. Find the mi... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a tree with n nodes, rooted at node... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an undirected graph with N nodes and M edge... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of n integers, determine if there ... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven two integers n and k, find the number of di... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an undirected graph with n nodes an... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given an integer n and a list of n intege... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nYou are given a string S of length n consisting o... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven an array of integers nums of length n, retu... |
[
{
"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.",
"role": "system"
},
{
"content": "### Question:\nGiven a list of N integers, count how many number... |
End of preview. Expand
in Data Studio
- Downloads last month
- 5