Dataset Viewer
Auto-converted to Parquet Duplicate
problem_id
int64
trajectory_id
int64
question
string
messages
string
num_turns
int64
final_reward
float64
terminated
bool
truncated
bool
interactions
string
tests
string
is_successful
bool
rendered
string
0
0
You are given two positive integers n and limit. Return the total number of ways to distribute n candies among 3 children such that no child gets more than limit candies. Example 1: Input: n = 5, limit = 2 Output: 3 Explanation: There are 3 ways to distribute 5 candies such that no child gets more than 2 candies: (1...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
5
-0.4
true
true
[]
{"inputs": ["5\n2", "3\n3", "2\n5", "1\n7", "1\n4", "6\n2", "6\n1", "1\n1", "1\n3", "2\n1", "48\n42", "49\n41", "50\n49", "49\n48"], "outputs": ["3", "10", "6", "3", "3", "1", "0", "3", "3", "3", "1162", "1167", "1323", "1272"], "fn_name": "distributeCandies"}
false
================================================================================ Question: You are given two positive integers n and limit. R... Reward: -0.40 | Turns: 5 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codi...
0
1
You are given two positive integers n and limit. Return the total number of ways to distribute n candies among 3 children such that no child gets more than limit candies. Example 1: Input: n = 5, limit = 2 Output: 3 Explanation: There are 3 ways to distribute 5 candies such that no child gets more than 2 candies: (1...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
5
-0.4
true
true
[]
{"inputs": ["5\n2", "3\n3", "2\n5", "1\n7", "1\n4", "6\n2", "6\n1", "1\n1", "1\n3", "2\n1", "48\n42", "49\n41", "50\n49", "49\n48"], "outputs": ["3", "10", "6", "3", "3", "1", "0", "3", "3", "3", "1162", "1167", "1323", "1272"], "fn_name": "distributeCandies"}
false
================================================================================ Question: You are given two positive integers n and limit. R... Reward: -0.40 | Turns: 5 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codi...
0
2
You are given two positive integers n and limit. Return the total number of ways to distribute n candies among 3 children such that no child gets more than limit candies. Example 1: Input: n = 5, limit = 2 Output: 3 Explanation: There are 3 ways to distribute 5 candies such that no child gets more than 2 candies: (1...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
5
-0.3
true
false
[{"code": "class Solution:\n def distributeCandies(self, n: int, limit: int) -> int:\n # Total ways without restriction (a + b + c = n)\n total = (n + 2) * (n + 1) // 2\n \n # Subtract cases where at least one child gets more than limit\n # If a child gets at least (limit + 1) cand...
{"inputs": ["5\n2", "3\n3", "2\n5", "1\n7", "1\n4", "6\n2", "6\n1", "1\n1", "1\n3", "2\n1", "48\n42", "49\n41", "50\n49", "49\n48"], "outputs": ["3", "10", "6", "3", "3", "1", "0", "3", "3", "3", "1162", "1167", "1323", "1272"], "fn_name": "distributeCandies"}
false
================================================================================ Question: You are given two positive integers n and limit. R... Reward: -0.30 | Turns: 5 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful cod...
0
3
You are given two positive integers n and limit. Return the total number of ways to distribute n candies among 3 children such that no child gets more than limit candies. Example 1: Input: n = 5, limit = 2 Output: 3 Explanation: There are 3 ways to distribute 5 candies such that no child gets more than 2 candies: (1...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
5
-0.4
true
true
[]
{"inputs": ["5\n2", "3\n3", "2\n5", "1\n7", "1\n4", "6\n2", "6\n1", "1\n1", "1\n3", "2\n1", "48\n42", "49\n41", "50\n49", "49\n48"], "outputs": ["3", "10", "6", "3", "3", "1", "0", "3", "3", "3", "1162", "1167", "1323", "1272"], "fn_name": "distributeCandies"}
false
================================================================================ Question: You are given two positive integers n and limit. R... Reward: -0.40 | Turns: 5 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codi...
0
4
You are given two positive integers n and limit. Return the total number of ways to distribute n candies among 3 children such that no child gets more than limit candies. Example 1: Input: n = 5, limit = 2 Output: 3 Explanation: There are 3 ways to distribute 5 candies such that no child gets more than 2 candies: (1...
[{"role": "system", "content": "You are a helpful coding assistant.\nYou are allowed to interact with the Python interpreter.\nYou can wrap your code in <interact></interact>, and I will run it for you and give you the output.\nMake sure that you define the inputs (or hardcode inputs) yourself when you give me <interac...
5
-0.4
true
true
[]
{"inputs": ["5\n2", "3\n3", "2\n5", "1\n7", "1\n4", "6\n2", "6\n1", "1\n1", "1\n3", "2\n1", "48\n42", "49\n41", "50\n49", "49\n48"], "outputs": ["3", "10", "6", "3", "3", "1", "0", "3", "3", "3", "1162", "1167", "1323", "1272"], "fn_name": "distributeCandies"}
false
================================================================================ Question: You are given two positive integers n and limit. R... Reward: -0.40 | Turns: 5 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codi...
0
5
"You are given two positive integers n and limit.\nReturn the total number of ways to distribute n c(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
3
-0.1
true
false
"[{\"code\": \"class Solution:\\n def distributeCandies(self, n: int, limit: int) -> int:\\n (...TRUNCATED)
"{\"inputs\": [\"5\\n2\", \"3\\n3\", \"2\\n5\", \"1\\n7\", \"1\\n4\", \"6\\n2\", \"6\\n1\", \"1\\n1\(...TRUNCATED)
false
"================================================================================\nQuestion: You are(...TRUNCATED)
0
6
"You are given two positive integers n and limit.\nReturn the total number of ways to distribute n c(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
-0.3
true
false
"[{\"code\": \"class Solution:\\n def distributeCandies(self, n: int, limit: int) -> int:\\n (...TRUNCATED)
"{\"inputs\": [\"5\\n2\", \"3\\n3\", \"2\\n5\", \"1\\n7\", \"1\\n4\", \"6\\n2\", \"6\\n1\", \"1\\n1\(...TRUNCATED)
false
"================================================================================\nQuestion: You are(...TRUNCATED)
0
7
"You are given two positive integers n and limit.\nReturn the total number of ways to distribute n c(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
-0.3
true
false
"[{\"code\": \"class Solution:\\n def distributeCandies(self, n: int, limit: int) -> int:\\n (...TRUNCATED)
"{\"inputs\": [\"5\\n2\", \"3\\n3\", \"2\\n5\", \"1\\n7\", \"1\\n4\", \"6\\n2\", \"6\\n1\", \"1\\n1\(...TRUNCATED)
false
"================================================================================\nQuestion: You are(...TRUNCATED)
1
0
"You are given an integer array nums of even length. You have to split the array into two parts nums(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
-0.1
true
true
"[{\"code\": \"from collections import Counter\\nfrom typing import List\\n\\nclass Solution:\\n (...TRUNCATED)
"{\"inputs\": [\"[1, 1, 2, 2, 3, 4]\", \"[1, 1, 1, 1]\", \"[5, 9]\", \"[5, 3]\", \"[24, 32]\", \"[2,(...TRUNCATED)
false
"================================================================================\nQuestion: You are(...TRUNCATED)
1
1
"You are given an integer array nums of even length. You have to split the array into two parts nums(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0.7
true
false
"[{\"code\": \"from collections import Counter\\nfrom typing import List\\n\\nclass Solution:\\n (...TRUNCATED)
"{\"inputs\": [\"[1, 1, 2, 2, 3, 4]\", \"[1, 1, 1, 1]\", \"[5, 9]\", \"[5, 3]\", \"[24, 32]\", \"[2,(...TRUNCATED)
true
"================================================================================\nQuestion: You are(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
12