Dataset Viewer
Auto-converted to Parquet Duplicate
problem_id
int64
0
399
trajectory_id
int64
0
34
question
stringclasses
400 values
messages
stringlengths
10k
168k
num_turns
int64
2
10
final_reward
float64
0
1
terminated
bool
1 class
truncated
bool
2 classes
interactions
stringlengths
2
78.7M
tests
stringclasses
400 values
is_successful
bool
2 classes
interaction_timeout_count
int64
0
10
eval_timeout_count
int64
0
15
rendered
stringlengths
8.24k
66.7M
0
0
You are given a 0-indexed string s and an integer k. You are to perform the following partitioning operations until s is empty: Choose the longest prefix of s containing at most k distinct characters. Delete the prefix from s and increase the number of partitions by one. The remaining characters (if any) in s maintain...
[{"role": "system", "content": "You are a helpful coding assistant.\n\nYou have access to a Python interpreter.\nTo execute code, wrap it inside <interact></interact>. I will run it and return stdout/stderr in a subsequent turn.\n\nIMPORTANT CONTEXT:\n- This is a multi-turn conversation.\n- The Python interpreter is a ...
2
0.8
true
false
[{"code": "def count_partitions(s, k):\n partitions = 0\n i = 0\n while i < len(s):\n # Find the longest prefix from position i with at most k distinct characters\n distinct_chars = set()\n j = i\n while j < len(s) and len(distinct_chars) <= k:\n distinct_chars.add(s[j])\...
{"inputs": ["\"accca\"\n2", "\"aabaab\"\n3", "\"xxyz\"\n1", "\"abcde\"\n5", "\"aaaaaa\"\n2", "\"wjlcta\"\n5", "\"eictzzwx\"\n1", "\"fvcalcqn\"\n3", "\"zcjvkodq\"\n5", "\"eifhjtmuj\"\n7", "\"cxdzvmcbcv\"\n3", "\"rnqrabcxrh\"\n1", "\"xpfcubkanivkyjzrknwyapagrimbfidmckcyeupxioksdbcmucufydzepdedezeygezuvfmzyiodsenwqdldxjmw...
true
0
0
================================================================================ Question: You are given a 0-indexed string s and an integer ... Reward: 0.80 | Turns: 2 | Terminated: True | Truncated: False ================================================================================ [SYSTEM] You are a helpful codi...
0
1
You are given a 0-indexed string s and an integer k. You are to perform the following partitioning operations until s is empty: Choose the longest prefix of s containing at most k distinct characters. Delete the prefix from s and increase the number of partitions by one. The remaining characters (if any) in s maintain...
[{"role": "system", "content": "You are a helpful coding assistant.\n\nYou have access to a Python interpreter.\nTo execute code, wrap it inside <interact></interact>. I will run it and return stdout/stderr in a subsequent turn.\n\nIMPORTANT CONTEXT:\n- This is a multi-turn conversation.\n- The Python interpreter is a ...
2
0
true
true
[{"code": "def count_partitions(s: str, k: int) -> int:\n partitions = 0\n i = 0\n n = len(s)\n while i < n:\n distinct = set()\n j = i\n while j < n:\n distinct.add(s[j])\n if len(distinct) > k:\n break\n j += 1\n partitions += 1\n...
{"inputs": ["\"accca\"\n2", "\"aabaab\"\n3", "\"xxyz\"\n1", "\"abcde\"\n5", "\"aaaaaa\"\n2", "\"wjlcta\"\n5", "\"eictzzwx\"\n1", "\"fvcalcqn\"\n3", "\"zcjvkodq\"\n5", "\"eifhjtmuj\"\n7", "\"cxdzvmcbcv\"\n3", "\"rnqrabcxrh\"\n1", "\"xpfcubkanivkyjzrknwyapagrimbfidmckcyeupxioksdbcmucufydzepdedezeygezuvfmzyiodsenwqdldxjmw...
false
0
0
================================================================================ Question: You are given a 0-indexed string s and an integer ... Reward: 0.00 | Turns: 2 | Terminated: True | Truncated: True ================================================================================ [SYSTEM] You are a helpful codin...
0
2
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
2
0.8
true
false
"[{\"code\": \"class Solution:\\n def maxPartitionsAfterOperations(self, s: str, k: int) -> int:\(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
3
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
2
0.8
true
false
"[{\"code\": \"def count_partitions(string, k):\\n if not string:\\n return 0\\n \\n (...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
4
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
2
0.8
true
false
"[{\"code\": \"class Solution:\\n def maxPartitionsAfterOperations(self, s: str, k: int) -> int:\(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
5
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.8
true
false
"[{\"code\": \"class Solution:\\n def maxPartitionsAfterOperations(self, s: str, k: int) -> int:\(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
6
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.8
true
false
"[{\"code\": \"def simulate_partitions(s, k):\\n def get_partition_count(s, k):\\n partiti(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
7
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.8
true
false
"[{\"code\": \"def count_partitions(s, k):\\n \\\"\\\"\\\"Count number of partitions for string s(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
8
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.8
true
false
"[{\"code\": \"def count_partitions(s, k):\\n if not s:\\n return 0\\n \\n partition(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
0
9
"You are given a 0-indexed string s and an integer k.\nYou are to perform the following partitioning(...TRUNCATED)
"[{\"role\": \"system\", \"content\": \"You are a helpful coding assistant.\\n\\nYou have access to (...TRUNCATED)
3
0.8
true
false
"[{\"code\": \"s1 = \\\"accca\\\"\\nk1 = 2\\ns2 = \\\"aabaab\\\"\\nk2 = 3\\ns3 = \\\"xxyz\\\"\\nk3 =(...TRUNCATED)
"{\"inputs\": [\"\\\"accca\\\"\\n2\", \"\\\"aabaab\\\"\\n3\", \"\\\"xxyz\\\"\\n1\", \"\\\"abcde\\\"\(...TRUNCATED)
true
0
0
"================================================================================\nQuestion: You are(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
12