Dataset Viewer
Auto-converted to Parquet Duplicate
problem_id
int64
0
19
trajectory_id
int64
0
7
question
stringclasses
20 values
messages
stringlengths
4.31k
47k
num_turns
int64
2
5
final_reward
float64
0
1
terminated
bool
1 class
truncated
bool
2 classes
interactions
stringlengths
2
12.2k
tests
stringclasses
20 values
is_successful
bool
2 classes
rendered
stringlengths
4.9k
45.4k
0
0
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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...
3
1
true
false
[{"code": "class Solution:\n def removeTrailingZeros(self, num: str) -> str:\n i = len(num) - 1\n while i >= 0 and num[i] == '0':\n i -= 1\n return num[:i + 1]\n\n# Test cases\ntest_cases = [\n \"51230100\",\n \"123\",\n \"1000\",\n \"10\",\n \"1\"\n]\n\nfor case in tes...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
true
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 1.00 | Turns: 3 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
1
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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...
3
1
true
false
[{"code": "solution = Solution()\n# Test cases\nsolution.removeTrailingZeros(\"51230100\")\nsolution.removeTrailingZeros(\"123\")\nsolution.removeTrailingZeros(\"1000\")\nsolution.removeTrailingZeros(\"1230\")\nsolution.removeTrailingZeros(\"5\")", "output": "Error:\nTraceback (most recent call last):\n File \"<string...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
true
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 1.00 | Turns: 3 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
2
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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...
3
1
true
false
[{"code": "class Solution:\n def removeTrailingZeros(self, num: str) -> str:\n i = len(num) - 1\n while i >= 0 and num[i] == '0':\n i -= 1\n return num[:i + 1]\n\n# Test cases\ntest_cases = [\n \"51230100\",\n \"123\",\n \"1000\",\n \"100\",\n \"1\"\n]\n\nfor num in tes...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
true
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 1.00 | Turns: 3 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
3
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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
true
true
[{"code": "class Solution:\n def removeTrailingZeros(self, num: str) -> str:\n i = len(num) - 1\n while i >= 0 and num[i] == '0':\n i -= 1\n return num[:i + 1]\n\n# Test cases\ntest_cases = [\n \"51230100\", # Expected: \"512301\"\n \"123\", # Expected: \"123\"\n \"100...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
false
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 0.00 | Turns: 5 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codin...
0
4
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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
1
true
false
[{"code": "num = \"51230100\"\nSolution().removeTrailingZeros(num)", "output": "Error:\n\nExecution timed out after 10 seconds."}, {"code": "num = \"51230100\"\nSolution().removeTrailingZeros(num)\n\nnum = \"123\"\nSolution().removeTrailingZeros(num)\n\nnum = \"1000\"\nSolution().removeTrailingZeros(num)\n\nnum = \"1\"...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
true
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 1.00 | Turns: 5 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
5
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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
true
true
[{"code": "class Solution:\n def removeTrailingZeros(self, num: str) -> str:\n i = len(num) - 1\n while i >= 0 and num[i] == '0':\n i -= 1\n return num[:i + 1]\n\n# Test cases\nSolution().removeTrailingZeros(\"51230100\")\nSolution().removeTrailingZeros(\"123\")\nSolution().removeTrai...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
false
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 0.00 | Turns: 5 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codin...
0
6
Given a positive integer num represented as a string, return the integer num without trailing zeros as a string. Example 1: Input: num = "51230100" Output: "512301" Explanation: Integer "51230100" has 2 trailing zeros, we remove them and return integer "512301". Example 2: Input: num = "123" Output: "123" Explanat...
[{"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
1
true
false
[{"code": "class Solution:\n def removeTrailingZeros(self, num: str) -> str:\n i = len(num) - 1\n while i >= 0 and num[i] == '0':\n i -= 1\n return num[:i + 1]\n\n# Test cases\nSolution().removeTrailingZeros(\"51230100\")\nSolution().removeTrailingZeros(\"123\")\nSolution().removeTrai...
{"inputs": ["\"51230100\"", "\"123\"", "\"61\"", "\"680\"", "\"561\"", "\"563000\"", "\"2400000\"", "\"231400\"", "\"68085000000\"", "\"601626560\"", "\"84386829117117166332147513652196267437374619567194557586613361627373334138733487345511615993249127983224474116664961124766371296678785554877376512933393674834987783882...
true
================================================================================ Question: Given a positive integer num represented as a stri... Reward: 1.00 | Turns: 5 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
7
"Given a positive integer num represented as a string, return the integer num without trailing zeros(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
5
0
true
true
"[{\"code\": \"class Solution:\\n def removeTrailingZeros(self, num: str) -> str:\\n i = l(...TRUNCATED)
"{\"inputs\": [\"\\\"51230100\\\"\", \"\\\"123\\\"\", \"\\\"61\\\"\", \"\\\"680\\\"\", \"\\\"561\\\"(...TRUNCATED)
false
"================================================================================\nQuestion: Given a(...TRUNCATED)
1
0
"You are given an integer array nums. We consider an array good if it is a permutation of an array b(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
2
1
true
false
"[{\"code\": \"from collections import Counter\\nfrom typing import List\\n\\nclass Solution:\\n (...TRUNCATED)
"{\"inputs\": [\"[2, 1, 3]\", \"[1, 3, 3, 2]\", \"[1, 1]\", \"[3, 4, 4, 1, 2, 1]\", \"[1, 1]\", \"[1(...TRUNCATED)
true
"================================================================================\nQuestion: You are(...TRUNCATED)
1
1
"You are given an integer array nums. We consider an array good if it is a permutation of an array b(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\nYou are allowed to int(...TRUNCATED)
3
1
true
false
"[{\"code\": \"from collections import Counter\\nfrom typing import List\\n\\nclass Solution:\\n (...TRUNCATED)
"{\"inputs\": [\"[2, 1, 3]\", \"[1, 3, 3, 2]\", \"[1, 1]\", \"[3, 4, 4, 1, 2, 1]\", \"[1, 1]\", \"[1(...TRUNCATED)
true
"================================================================================\nQuestion: You are(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
9