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 a grid of size n × m consisting 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:\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:\nYou are given a string S. Determine if it is 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:\nYou are given a tree with N nodes labeled from 1 ... |
[
{
"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, 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:\nGiven a tree with n nodes rooted at node 1, and e... |
[
{
"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. Find the number of pa... |
[
{
"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), each... |
[
{
"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 it is ... |
[
{
"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 rooted at node 1, each ... |
[
{
"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 n intervals on a number line. 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 integers, find the number of pa... |
[
{
"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 two strings a and b of equal length... |
[
{
"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 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 a tree with n nodes (numbered 1 to n), wher... |
[
{
"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, rooted at node 1, each... |
[
{
"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, each node has a value.... |
[
{
"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 2D grid of size n x m consisting ... |
[
{
"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 (numbered 1 thr... |
[
{
"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 a string consisting of lowercase En... |
[
{
"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 x m consisting of empty ce... |
[
{
"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 points on a 2D plane, determine if any 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:\nYou are given a sequence of N numbers. Find the 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:\nYou are given a list of N integers. Find the smal... |
[
{
"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 intervals, each defined... |
[
{
"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 positive integer n, print all its divisor... |
[
{
"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 vertices and m e... |
[
{
"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, print the number of d... |
[
{
"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:\nYou are given a list of n integers. For each elem... |
[
{
"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 2D grid of size n x m consisting ... |
[
{
"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 positive integers N and K, determine wh... |
[
{
"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 tree with n nodes rooted at node 1, each ... |
[
{
"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 ... |
[
{
"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 n points on a plane, determine the number 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 N integers, determine whether 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 of length N. Count the 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 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 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 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 tree with n nodes rooted at node 1, where... |
[
{
"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 directed graph with n nodes and m edges, ... |
[
{
"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 positive integers n and k, 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:\nYou are given a tree with N nodes (1-indexed). Ea... |
[
{
"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, partition ... |
[
{
"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. Find the number of pa... |
[
{
"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. Count the number of p... |
[
{
"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 (nodes are numbered 1 t... |
[
{
"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 grid of n rows and m columns fill... |
[
{
"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 binary tree in the form of its 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 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:\nGiven a positive integer n, print all possible wa... |
[
{
"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 x m filled with 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:\nA directed graph with n nodes and m edges is give... |
[
{
"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 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:\nGiven a positive integer n, find the smallest int... |
[
{
"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. 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:\nGiven two integers n and k, count the number of w... |
[
{
"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:\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 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 grid of size N x M filled with 0s and 1s,... |
[
{
"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. 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 a list of n pairs of integers. 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 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, partition it into t... |
[
{
"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 points on a 2D plane, find the minimum Eu... |
[
{
"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 positive integer n, count the number of w... |
[
{
"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 min... |
[
{
"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:\nGiven a matrix of size n x m consisting of only 0... |
[
{
"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 a tree with n nodes rooted at node 1, 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 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 a sequence of n positive integers, find the... |
[
{
"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 with N rows and M columns, e... |
[
{
"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 lo... |
[
{
"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 array of length N, 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 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:\nGiven a sequence of n integers, determine if it 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 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:\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 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 n integers, partition the array... |
[
{
"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 grid of size N x M filled with 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 undirected connected graph with n nodes ... |
[
{
"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 n x m grid filled with digits from 0 to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.