id stringlengths 22 22 | messages listlengths 2 2 | meta dict |
|---|---|---|
codedebug-train-000600 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\n\nTask: Return the number of different ways to split `s` into words from `words` (each word can be used any number of times), modulo 1,000,000,007. The empty string has exactly one split. `s` can... | {
"kind": "code.debug.minmax_swap.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "count_segmentations",
"checked_by": "buggy code fails on [\"aaaa\", [\"a\", \"aa\"]]...; fix == verified reference (oracle-checked on 20 inputs)"... |
codedebug-train-000601 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `merge([[1, 3], [3, 5]])` should be `[[1, 5]]`, I get `[[1, 3]]`. What's wrong?\n\nTask: You are given a list of intervals `[start, end]` with `start < end`, in no particular order. Merge every group of intervals that overlap or touch (sharin... | {
"kind": "code.debug.minmax_swap.merge_intervals",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "merge",
"checked_by": "buggy code fails on [[[1, 3], [3, 5]]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "7... |
codedebug-train-000602 | [
{
"role": "user",
"content": "Running `largest_rectangle([])` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 14, in <module>\n largest_rectangle([])\n ~~~~~~~~~~~~~~~~~^^^^\n File \"solution.py\", line 5, in l... | {
"kind": "code.debug.bool_flip.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 5,
"entry": "largest_rectangle",
"checked_by": "buggy code fails on [[]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "b594cf... |
codedebug-train-000603 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `primes_between(2, 2)` should be `1`, I get `0`. What's wrong?\n\nTask: Return how many prime numbers `p` satisfy `lo <= p <= hi`. `lo` can be negative and `lo > hi` means an empty range. `hi` can be up to 8,000,000.\n\n```python\ndef primes_... | {
"kind": "code.debug.cmp_flip.primes_range",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 2,
"entry": "primes_between",
"checked_by": "buggy code fails on [2, 2]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "fcfb2ec4ac... |
codedebug-train-000604 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `count_sum_k([3], 3)` returns `0` instead of `1`. Find and fix the bug.\n\nTask: Return how many non-empty contiguous subarrays of `nums` there are whose sum is exactly `k`. Values can be negative and the list can have hundreds of t... | {
"kind": "code.debug.drop_stmt.subarray_count",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "count_sum_k",
"checked_by": "buggy code fails on [[3], 3]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "30cbcb3... |
codedebug-train-000605 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `count_inversions([7, -1, 3, 9])` should be `2`, I get `4`. What's wrong?\n\nTask: Return the number of index pairs `i < j` with `a[i] > a[j]`. Values can be negative and the list can have 150,000 elements, so checking every pair is too slow.... | {
"kind": "code.debug.arith_flip.inversions",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 17,
"entry": "count_inversions",
"checked_by": "buggy code fails on [[7, -1, 3, 9]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id":... |
codedebug-train-000606 | [
{
"role": "user",
"content": "I get an exception for `obj = RangeSum([6]); obj.query(0, 0); obj.query(0, 0)`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 35, in <module>\n obj = RangeSum([6])\n File \"solution.py\", line 10, in __init__\n self.tree[i] = self.tree[2 * i] +... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 9,
"entry": "RangeSum",
"checked_by": "buggy code fails on {\"init\": [[6]], \"ops\": [[\"query\", 0, 0], [\"query\", 0, 0]]}...; fix == verified reference (... |
codedebug-train-000607 | [
{
"role": "user",
"content": "Running `window_maxima([1], 1)` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 16, in <module>\n window_maxima([1], 1)\n ~~~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 10, in ... | {
"kind": "code.debug.arith_flip.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 10,
"entry": "window_maxima",
"checked_by": "buggy code fails on [[1], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": ... |
codedebug-train-000608 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `transform_cost('dd', 'd')` returns `8` instead of `3`. Find and fix the bug.\n\nTask: Turn string `a` into string `b`. Inserting a character costs 2, deleting one costs 3, and replacing one character with a different one costs 4. R... | {
"kind": "code.debug.minmax_swap.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"dd\", \"d\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id"... |
codedebug-train-000609 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `longest_palindrome_len('')` should be `0`, I get `1`. What's wrong?\n\nTask: Return the length of the longest substring of `s` that reads the same backwards. `s` can be several thousand characters long, so checking every substring separately... | {
"kind": "code.debug.init_change.palindromes",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 2,
"entry": "longest_palindrome_len",
"checked_by": "buggy code fails on [\"\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "... |
codedebug-train-000610 | [
{
"role": "user",
"content": "Running `count_ways([1], 7)` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 10, in <module>\n count_ways([1], 7)\n ~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 6, in count_ways... | {
"kind": "code.debug.arith_flip.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 6,
"entry": "count_ways",
"checked_by": "buggy code fails on [[1], 7]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "c64d99... |
codedebug-train-000611 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: There are `n` cities `0..n-1` and one-way flights `[u, v, price]` with positive prices. Return the cheapest total price from `src` to `dst`, or -1 if `dst` cannot be r... | {
"kind": "code.debug.drop_stmt.cheapest_path",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 11,
"entry": "min_cost_path",
"checked_by": "buggy code fails on [2, [], 0, 1, 2]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id... |
codedebug-train-000612 | [
{
"role": "user",
"content": "Running `islands(['01'])` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 24, in <module>\n islands(['01'])\n ~~~~~~~^^^^^^^^\n File \"solution.py\", line 17, in islands\n ny, n... | {
"kind": "code.debug.drop_stmt.count_islands",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 16,
"entry": "islands",
"checked_by": "buggy code fails on [[\"01\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "cdd40... |
codedebug-train-000613 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `transform_cost('a', 'c')` palauttaa `1` eikä `2`. Etsi ja korjaa virhe.\n\nTehtävä: Muuta merkkijono `a` merkkijonoksi `b`. Merkin lisääminen maksaa 1, poistaminen 1 ja merkin korvaaminen eri merkillä 3. Palauta pienin kokonais... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"a\", \"c\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": ... |
codedebug-train-000614 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `longest_unique_run('aaaa')` returns `3` instead of `1`. Find and fix the bug.\n\nTask: Return the length of the longest substring of `s` in which no character appears twice. `s` can be hundreds of thousands of characters long.\n\n`... | {
"kind": "code.debug.arith_flip.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "longest_unique_run",
"checked_by": "buggy code fails on [\"aaaa\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id":... |
codedebug-train-000615 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `count_ways([2], 18)` should be `1`, I get `1000000006`. What's wrong?\n\nTask: Given distinct positive coin values (unlimited supply of each) and an amount, return the number of different combinations that add up to the amount, modulo 1,000,... | {
"kind": "code.debug.arith_flip.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "count_ways",
"checked_by": "buggy code fails on [[2], 18]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "c64d9948a1... |
codedebug-train-000616 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `obj = PointUpdateSums([5]); obj.query(0, 0); obj.update(0, -3); obj.query(0, 0)` should be `-3`, I get `7`. What's wrong?\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(le... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 22,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[5]], \"ops\": [[\"query\", 0, 0], [\"update\", 0, -3], ...; fix == verified refere... |
codedebug-train-000617 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `rooms_needed([[4, 6]])` returns `0` instead of `1`. Find and fix the bug.\n\nTask: Each meeting is `[start, end)`: it occupies a room from `start` up to, but not including, `end`. Return the minimum number of rooms needed so that n... | {
"kind": "code.debug.drop_stmt.meeting_rooms",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 9,
"entry": "rooms_needed",
"checked_by": "buggy code fails on [[[4, 6]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "11d132... |
codedebug-train-000618 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `largest_rectangle([])` should be `0`, I get `1`. What's wrong?\n\nTask: `heights[i]` is the height of bar `i` in a histogram; every bar is 1 wide and bars stand side by side. Return the area of the largest axis-aligned rectangle that fits in... | {
"kind": "code.debug.init_change.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "largest_rectangle",
"checked_by": "buggy code fails on [[]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "88cfb8e3... |
codedebug-train-000619 | [
{
"role": "user",
"content": "I get an exception for `busiest_moment([[8, 9]])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 12, in <module>\n busiest_moment([[8, 9]])\n ~~~~~~~~~~~~~~^^^^^^^^^^\n File \"solution.py\", line 2, in busiest_moment\n events = sorted([(s, 1... | {
"kind": "code.debug.arith_flip.meeting_rooms",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 2,
"entry": "busiest_moment",
"checked_by": "buggy code fails on [[[8, 9]]]...; fix == verified reference (oracle-checked on 17 inputs)",
"problem_id":... |
codedebug-train-000620 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `obj = RangeSum([1, 2, 3]); obj.update(1, 2); obj.query(0, 2)` returns `2` instead of `6`. Find and fix the bug.\n\nTask: Implement `RangeSum(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, rig... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 17,
"entry": "RangeSum",
"checked_by": "buggy code fails on {\"init\": [[1, 2, 3]], \"ops\": [[\"update\", 1, 2], [\"query\", 0,...; fix == verified reference (or... |
codedebug-train-000621 | [
{
"role": "user",
"content": "Tarkista tämä ratkaisu: siinä on virhe jossain. Etsi se, näytä syöte, joka epäonnistuu, ja korjaa se.\n\nTehtävä: `prices[i]` on osakkeen hinta päivänä `i`. Saat tehdä kauppoja niin monta kuin haluat, omistaen enintään yhden osakkeen kerrallaan, mutta myynnin jälkeen et voi ost... | {
"kind": "code.debug.arith_flip.stock_profit",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "trade_with_cooldown",
"checked_by": "buggy code fails on [[9, 4]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": ... |
codedebug-train-000622 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `weighted_edit_distance('abc', 'bc')` returns `-7` instead of `3`. Find and fix the bug.\n\nTask: Turn string `a` into string `b`. Inserting a character costs 1, deleting one costs 3, and replacing one character with a different one... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "weighted_edit_distance",
"checked_by": "buggy code fails on [\"abc\", \"bc\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"pr... |
codedebug-train-000623 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `max_profit_cooldown([1, 1])` should be `0`, I get `2`. What's wrong?\n\nTask: `prices[i]` is the price of a share on day `i`. You may complete as many trades as you like, holding at most one share at a time, but after a sale you cannot buy o... | {
"kind": "code.debug.arith_flip.stock_profit",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "max_profit_cooldown",
"checked_by": "buggy code fails on [[1, 1]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "1... |
codedebug-train-000624 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Turn string `a` into string `b`. Inserting a character costs 3, deleting one costs 2, and replacing one character with a different one costs 4. Return the minimum tota... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "weighted_edit_distance",
"checked_by": "buggy code fails on [\"abc\", \"a\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"p... |
codedebug-train-000625 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Given a list `nums` and a window size `k` (1 <= k <= len(nums)), return the largest value in every window of `k` consecutive elements, from left to right. The list can... | {
"kind": "code.debug.index_swap.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 12,
"entry": "sliding_max",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "c24f... |
codedebug-train-000626 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Ruudukko on lista yhtä pitkiä merkkijonoja, joissa '1' on maata ja '0' vettä. Kaksi maaruutua kuuluu samaan saareen, kun ne ovat vierekkäin vaaka- tai pystysuunnassa. Palauta saarten määrä.\n\n`... | {
"kind": "code.debug.bool_flip.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 10,
"entry": "islands",
"checked_by": "buggy code fails on [[\"000\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "cdd40a2... |
codedebug-train-000627 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Return all elements of the `rows × cols` matrix in spiral order, starting at the top-left corner and going clockwise (right along the top row first), ending at the cen... | {
"kind": "code.debug.drop_stmt.spiral",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "spiral_order",
"checked_by": "buggy code fails on [[[4], [4], [8]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "38f2... |
codedebug-train-000628 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `num_islands(['111', '111'])` should be `1`, I get `6`. What's wrong?\n\nTask: The grid is a list of equal-length strings of '1' (land) and '0' (water). Two land cells belong to the same island when they are next to each other horizontally or... | {
"kind": "code.debug.cmp_flip.count_islands",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 19,
"entry": "num_islands",
"checked_by": "buggy code fails on [[\"111\", \"111\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id"... |
codedebug-train-000629 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `longest_common_subsequence('bc', 'ba')` should be `1`, I get `0`. What's wrong?\n\nTask: Return the length of the longest common subsequence of `a` and `b` (characters in the same order, not necessarily adjacent). Both strings can be over a ... | {
"kind": "code.debug.drop_stmt.common_sequence",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "longest_common_subsequence",
"checked_by": "buggy code fails on [\"bc\", \"ba\"]...; fix == verified reference (oracle-checked on 20 inputs)",
... |
codedebug-train-000630 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Given a list `nums` and a window size `k` (1 <= k <= len(nums)), return the smallest value in every window of `k` consecutive elements, from left to right. The list ca... | {
"kind": "code.debug.index_swap.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 12,
"entry": "window_minima",
"checked_by": "buggy code fails on [[4], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "3d... |
codedebug-train-000631 | [
{
"role": "user",
"content": "Running `palindromic_substrings('b')` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 11, in <module>\n palindromic_substrings('b')\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^\n File \"solution.... | {
"kind": "code.debug.drop_stmt.palindromes",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 4,
"entry": "palindromic_substrings",
"checked_by": "buggy code fails on [\"b\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id... |
codedebug-train-000632 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Return the length of the longest substring of `s` in which no character appears twice. `s` can be hundreds of thousands of characters long.\n\n```python\ndef longest_u... | {
"kind": "code.debug.arith_flip.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "longest_unique_run",
"checked_by": "buggy code fails on [\"c\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": ... |
codedebug-train-000633 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Turn string `a` into string `b`. Inserting a character costs 1, deleting one costs 1, and replacing one character with a different one costs 1. Return the minimum tota... | {
"kind": "code.debug.off_by_one.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 6,
"entry": "weighted_edit_distance",
"checked_by": "buggy code fails on [\"a\", \"b\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"pro... |
codedebug-train-000634 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Return how many non-empty contiguous subarrays of `nums` there are whose sum is divisible by `k` (`k >= 1`). Values can be negative and the list can have hundreds of t... | {
"kind": "code.debug.init_change.subarray_count",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "subarrays_div_by",
"checked_by": "buggy code fails on [[], 5]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "... |
codedebug-train-000635 | [
{
"role": "user",
"content": "I get an exception for `max_histogram_area([8])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n max_histogram_area([8])\n ~~~~~~~~~~~~~~~~~~^^^^^\n File \"solution.py\", line 8, in max_histogram_area\n best = max(best, heig... | {
"kind": "code.debug.drop_stmt.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 8,
"entry": "max_histogram_area",
"checked_by": "buggy code fails on [[8]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "b594... |
codedebug-train-000636 | [
{
"role": "user",
"content": "I get an exception for `fewest_words('bb', ['ab', 'aa'])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 15, in <module>\n fewest_words('bb', ['ab', 'aa'])\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^\n File \"solution.py\", line 10, in fewest_words\n ... | {
"kind": "code.debug.drop_stmt.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 10,
"entry": "fewest_words",
"checked_by": "buggy code fails on [\"bb\", [\"ab\", \"aa\"]]...; fix == verified reference (oracle-checked on 20 inputs)",
"p... |
codedebug-train-000637 | [
{
"role": "user",
"content": "Running `best_path([[-1, -2], [-3, -4]])` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 18, in <module>\n best_path([[-1, -2], [-3, -4]])\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^\n File... | {
"kind": "code.debug.arith_flip.grid_paths",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 13,
"entry": "best_path",
"checked_by": "buggy code fails on [[[-1, -2], [-3, -4]]]...; fix == verified reference (oracle-checked on 17 inputs)",
"problem... |
codedebug-train-000638 | [
{
"role": "user",
"content": "Running `longest_common_subsequence('abc', 'abc')` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 11, in <module>\n longest_common_subsequence('abc', 'abc')\n ~~~~~~~~~~~~~~~~~~~~~... | {
"kind": "code.debug.arith_flip.common_sequence",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 6,
"entry": "longest_common_subsequence",
"checked_by": "buggy code fails on [\"abc\", \"abc\"]...; fix == verified reference (oracle-checked on 20 inp... |
codedebug-train-000639 | [
{
"role": "user",
"content": "Tarkista tämä ratkaisu: siinä on virhe jossain. Etsi se, näytä syöte, joka epäonnistuu, ja korjaa se.\n\nTehtävä: `s` sisältää vain pieniä kirjaimia. Korvaa jokainen samojen kirjainten jakso kirjaimella ja jakson pituudella (pituuden 1 jakso kirjoitetaan pelkkänä kirjaimena). E... | {
"kind": "code.debug.drop_stmt.rle",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "compress",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "29749195abb7",
"pro... |
codedebug-train-000640 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `min_coins([3, 7], 14)` palauttaa `-1` eikä `2`. Etsi ja korjaa virhe.\n\nTehtävä: Annettuna erisuuruiset positiiviset kolikkoarvot (jokaista rajattomasti) ja summa, palauta pienin määrä kolikoita, joiden summa on täsmälleen ann... | {
"kind": "code.debug.cmp_flip.coin_change",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "min_coins",
"checked_by": "buggy code fails on [[3, 7], 14]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "9d7f7ca67f... |
codedebug-train-000641 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `peak_time([[2, 5]])` nostaa poikkeuksen `TypeError: unsupported operand type(s) for -: 'list' and 'list'` eikä palauta `2`. Etsi ja korjaa virhe.\n\nTehtävä: Jokainen kokous on `[start, end)` (se on käynnissä hetkellä t, kun st... | {
"kind": "code.debug.arith_flip.meeting_rooms",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 2,
"entry": "peak_time",
"checked_by": "buggy code fails on [[[2, 5]]]...; fix == verified reference (oracle-checked on 17 inputs)",
"problem_id": "4e140398... |
codedebug-train-000642 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `obj = RangeSum([-9, -2]); obj.update(0, -4); obj.query(0, 1)` returns `-2` instead of `-6`. Find and fix the bug.\n\nTask: Implement `RangeSum(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, r... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 17,
"entry": "RangeSum",
"checked_by": "buggy code fails on {\"init\": [[-9, -2]], \"ops\": [[\"update\", 0, -4], [\"query\", 0,...; fix == verified reference (or... |
codedebug-train-000643 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `task_order(1, [])` pitäisi olla `[0]`, saan `[]`. Mikä on vialla?\n\nTehtävä: Tehtäviä on `n` (`0..n-1`) ja pareja `[a, b]`, jotka tarkoittavat, että tehtävä `a` on tehtävä ennen tehtävää `b`. Palauta leksikografisesti pienin järjestys, joss... | {
"kind": "code.debug.cmp_flip.topo_order",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 20,
"entry": "task_order",
"checked_by": "buggy code fails on [1, []]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "723aad79cf87",... |
codedebug-train-000644 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `min_ship_capacity([6, 4], 2)` returns `10` instead of `6`. Find and fix the bug.\n\nTask: Packages with weights `weights` must be shipped in the given order within `days` days (1 <= days <= len(weights)). Each day the ship takes a ... | {
"kind": "code.debug.cmp_flip.search_answer",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "min_ship_capacity",
"checked_by": "buggy code fails on [[6, 4], 2]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "a... |
codedebug-train-000645 | [
{
"role": "user",
"content": "Tarkista tämä ratkaisu: siinä on virhe jossain. Etsi se, näytä syöte, joka epäonnistuu, ja korjaa se.\n\nTehtävä: Ruudukko on lista yhtä pitkiä merkkijonoja, joissa '1' on maata ja '0' vettä. Kaksi maaruutua kuuluu samaan saareen, kun ne ovat vierekkäin vaaka- tai pystysuunnass... | {
"kind": "code.debug.init_change.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 7,
"entry": "num_islands",
"checked_by": "buggy code fails on [[\"000\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "f5... |
codedebug-train-000646 | [
{
"role": "user",
"content": "I get an exception for `calc('3')`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 56, in <module>\n calc('3')\n ~~~~^^^^^\n File \"solution.py\", line 53, in calc\n return expression()\n File \"solution.py\", line 47, in expression\n val... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 27,
"entry": "calc",
"checked_by": "buggy code fails on [\"3\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "2918dd17ef27",
... |
codedebug-train-000647 | [
{
"role": "user",
"content": "Tarkista tämä ratkaisu: siinä on virhe jossain. Etsi se, näytä syöte, joka epäonnistuu, ja korjaa se.\n\nTehtävä: Palauta, kuinka monta alkulukua `p` toteuttaa ehdon `lo <= p <= hi`. `lo` voi olla negatiivinen, ja `lo > hi` tarkoittaa tyhjää väliä. `hi` voi olla jopa 8 000 000.... | {
"kind": "code.debug.cmp_flip.primes_range",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 7,
"entry": "count_primes",
"checked_by": "buggy code fails on [53, 121]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "fcfb2ec... |
codedebug-train-000648 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `largest_rectangle([])` pitäisi olla `0`, saan `1`. Mikä on vialla?\n\nTehtävä: `heights[i]` on histogrammin pylvään `i` korkeus; jokainen pylväs on 1 leveä, ja pylväät ovat vierekkäin. Palauta suurimman pylväiden sisään mahtuvan akselien suu... | {
"kind": "code.debug.init_change.histogram",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "largest_rectangle",
"checked_by": "buggy code fails on [[]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "88cfb8e3... |
codedebug-train-000649 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `obj = PointUpdateSums([0, 0, 0, 0]); obj.update(3, 7); obj.query(0, 3)` should be `7`, I get `0`. What's wrong?\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, right)... | {
"kind": "code.debug.drop_stmt.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 17,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[0, 0, 0, 0]], \"ops\": [[\"update\", 3, 7], [\"query\",...; fix == verified referen... |
codedebug-train-000650 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `subarrays_div_by([3], 3)` palauttaa `0` eikä `1`. Etsi ja korjaa virhe.\n\nTehtävä: Palauta, montako sellaista listan `nums` epätyhjää yhtenäistä osataulukkoa on, joiden summa on jaollinen luvulla `k` (`k >= 1`). Arvot voivat o... | {
"kind": "code.debug.init_change.subarray_count",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 3,
"entry": "subarrays_div_by",
"checked_by": "buggy code fails on [[3], 3]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "d... |
codedebug-train-000651 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Given a list `nums` and a window size `k` (1 <= k <= len(nums)), return the smallest value in every window of `k` consecutive elements, from left to right. The list ca... | {
"kind": "code.debug.arith_flip.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 9,
"entry": "window_minima",
"checked_by": "buggy code fails on [[6], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "3d3... |
codedebug-train-000652 | [
{
"role": "user",
"content": "I get an exception for `transform_cost('ba', '')`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n transform_cost('ba', '')\n ~~~~~~~~~~~~~~^^^^^^^^^^\n File \"solution.py\", line 7, in transform_cost\n keep = prev[j - 1] + (... | {
"kind": "code.debug.off_by_one.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 6,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"ba\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_... |
codedebug-train-000653 | [
{
"role": "user",
"content": "Running `longest_common_substring('cbcbb', 'b')` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 15, in <module>\n longest_common_substring('cbcbb', 'b')\n ~~~~~~~~~~~~~~~~~~~~~~~~^... | {
"kind": "code.debug.arith_flip.common_sequence",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 8,
"entry": "longest_common_substring",
"checked_by": "buggy code fails on [\"cbcbb\", \"b\"]...; fix == verified reference (oracle-checked on 20 input... |
codedebug-train-000654 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `robot_max_distance([3, -1, 1, -2, 1, -1], [[4, -1], [0, -1], [4, -1]])` should be `17`, I get `10`. What's wrong?\n\nTask: A robot starts at (0, 0) facing north. Commands: `-2` turns left 90°, `-1` turns right 90°, and `k` (1-9) moves forwar... | {
"kind": "code.debug.arith_flip.robot_walk",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "robot_max_distance",
"checked_by": "buggy code fails on [[3, -1, 1, -2, 1, -1], [[4, -1], [0, -1], [4, -1]]]...; fix == verified reference (oracle-c... |
codedebug-train-000655 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `trade_with_fee([5], 0)` should be `0`, I get `-inf`. What's wrong?\n\nTask: `prices[i]` is the price of a share on day `i`. You may complete as many trades as you like, but you can hold at most one share at a time and every sale costs `fee`.... | {
"kind": "code.debug.minmax_swap.stock_profit",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "trade_with_fee",
"checked_by": "buggy code fails on [[5], 0]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "7c218... |
codedebug-train-000656 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `cheapest_price(3, [[0, 1, 1], [1, 2, 1], [0, 2, 5]], 0, 2, 0)` returns `-1` instead of `5`. Find and fix the bug.\n\nTask: There are `n` cities `0..n-1` and one-way flights `[u, v, price]`. Return the cheapest total price from `src... | {
"kind": "code.debug.off_by_one.cheapest_path",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "cheapest_price",
"checked_by": "buggy code fails on [3, [[0, 1, 1], [1, 2, 1], [0, 2, 5]], 0, 2, 0]...; fix == verified reference (oracle-checked... |
codedebug-train-000657 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `obj = PointUpdateSums([6, 6, 2, -6, -5]); obj.query(1, 2)` should be `8`, I get `0`. What's wrong?\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, right)`, which retu... | {
"kind": "code.debug.drop_stmt.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 11,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[6, 6, 2, -6, -5]], \"ops\": [[\"query\", 1, 2], [\"que...; fix == verified referenc... |
codedebug-train-000658 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `count_ways([3], 24)` should be `1`, I get `0`. What's wrong?\n\nTask: Given distinct positive coin values (unlimited supply of each) and an amount, return the number of different combinations that add up to the amount, modulo 1,000,000,007. ... | {
"kind": "code.debug.arith_flip.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "count_ways",
"checked_by": "buggy code fails on [[3], 24]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "c64d9948a1... |
codedebug-train-000659 | [
{
"role": "user",
"content": "Kun ajan `sliding_max([5], 1)`, ohjelma kaatuu tällä virheilmoituksella. Mistä on kyse ja miten korjaan sen?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 17, in <module>\n sliding_max([5], 1)\n ~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line ... | {
"kind": "code.debug.drop_stmt.window_extreme",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 10,
"entry": "sliding_max",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "13... |
codedebug-train-000660 | [
{
"role": "user",
"content": "Running `obj = PointUpdateSums([5]); obj.query(0, 0); obj.update(0, -3); obj.query(0, 0)` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 35, in <module>\n obj = PointUpdateSums([5])\n... | {
"kind": "code.debug.off_by_one.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 9,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[5]], \"ops\": [[\"query\", 0, 0], [\"update\", 0, -3], ...; fix == verified re... |
codedebug-train-000661 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `count_big_inversions([5, 1, -3])` returns `1` instead of `3`. Find and fix the bug.\n\nTask: Return the number of index pairs `i < j` with `a[i] > 2 * a[j]`. Values can be negative and the list can have 150,000 elements, so checkin... | {
"kind": "code.debug.arith_flip.inversions",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "count_big_inversions",
"checked_by": "buggy code fails on [[5, 1, -3]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id":... |
codedebug-train-000662 | [
{
"role": "user",
"content": "I get an exception for `max_value([5], [10], 5)`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 10, in <module>\n max_value([5], [10], 5)\n ~~~~~~~~~^^^^^^^^^^^^^^\n File \"solution.py\", line 5, in max_value\n if best[c + w] + v > best[c]:\... | {
"kind": "code.debug.arith_flip.knapsack",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 5,
"entry": "max_value",
"checked_by": "buggy code fails on [[5], [10], 5]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "ad34... |
codedebug-train-000663 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `best_single_trade([2, 8])` palauttaa `0` eikä `6`. Etsi ja korjaa virhe.\n\nTehtävä: `prices[i]` on osakkeen hinta päivänä `i`. Saat ostaa kerran ja myydä kerran myöhemmin (tai olla käymättä kauppaa). Palauta suurin mahdollinen... | {
"kind": "code.debug.drop_stmt.stock_profit",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "best_single_trade",
"checked_by": "buggy code fails on [[2, 8]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "0405... |
codedebug-train-000664 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `eval_expression('2')` raises `IndexError: list index out of range` instead of returning `2`. Find and fix the bug.\n\nTask: The string contains non-negative integers, `+`, `-`, `*`, `/`, parentheses, spaces, and unary minus (as in ... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 27,
"entry": "eval_expression",
"checked_by": "buggy code fails on [\"2\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "2918dd17ef... |
codedebug-train-000665 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `fewest_words('', [])` should be `0`, I get `1`. What's wrong?\n\nTask: Return the smallest number of words from `words` that concatenate to exactly `s` (each word can be used any number of times), or -1 if it is impossible. The empty string ... | {
"kind": "code.debug.init_change.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "fewest_words",
"checked_by": "buggy code fails on [\"\", []]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "80e4a77... |
codedebug-train-000666 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `best_single_trade([1])` should be `0`, I get `2`. What's wrong?\n\nTask: `prices[i]` is the price of a share on day `i`. You may buy once and sell once later (or not trade at all). Return the maximum profit. There can be hundreds of thousand... | {
"kind": "code.debug.arith_flip.stock_profit",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "best_single_trade",
"checked_by": "buggy code fails on [[1]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "0405ef... |
codedebug-train-000667 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `busiest_moment([[0, 1]])` palauttaa `None` eikä `0`. Etsi ja korjaa virhe.\n\nTehtävä: Jokainen kokous on `[start, end)` (se on käynnissä hetkellä t, kun start <= t < end). Palauta aikaisin kokonaislukuhetki, jolloin käynnissä ... | {
"kind": "code.debug.drop_stmt.meeting_rooms",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "busiest_moment",
"checked_by": "buggy code fails on [[[0, 1]]]...; fix == verified reference (oracle-checked on 17 inputs)",
"problem_id": "4e14... |
codedebug-train-000668 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: `prices[i]` on osakkeen hinta päivänä `i`. Saat tehdä kauppoja niin monta kuin haluat, omistaen enintään yhden osakkeen kerrallaan, mutta myynnin jälkeen et voi ostaa seuraavana päivänä (yhden p... | {
"kind": "code.debug.minmax_swap.stock_profit",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "max_profit_cooldown",
"checked_by": "buggy code fails on [[4]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "1... |
codedebug-train-000669 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `fastest_route(3, [[0, 1, 5], [1, 2, 5], [0, 2, 20]], 0, 2)` pitäisi olla `10`, saan `-1`. Mikä on vialla?\n\nTehtävä: Suunnatussa verkossa on `n` solmua (0..n-1) ja kaaret `[u, v, w]` solmusta `u` solmuun `v` painolla `w >= 1`. Palauta lyhim... | {
"kind": "code.debug.cmp_flip.dijkstra",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 15,
"entry": "fastest_route",
"checked_by": "buggy code fails on [3, [[0, 1, 5], [1, 2, 5], [0, 2, 20]], 0, 2]...; fix == verified reference (oracle-checked on 20 in... |
codedebug-train-000670 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\n\nTask: The grid is a list of equal-length strings of '1' (land) and '0' (water). Two land cells belong to the same island when they are next to each other horizontally or vertically. Return the ... | {
"kind": "code.debug.drop_stmt.count_islands",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 12,
"entry": "islands",
"checked_by": "buggy code fails on [[\"0110\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "cdd40a... |
codedebug-train-000671 | [
{
"role": "user",
"content": "Tarkista tämä ratkaisu: siinä on virhe jossain. Etsi se, näytä syöte, joka epäonnistuu, ja korjaa se.\n\nTehtävä: `s` sisältää vain pieniä kirjaimia. Korvaa jokainen samojen kirjainten jakso kirjaimella ja jakson pituudella (pituuden 1 jakso kirjoitetaan pelkkänä kirjaimena). E... | {
"kind": "code.debug.cmp_flip.rle",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "run_length",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "29749195abb7",
"pr... |
codedebug-train-000672 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `obj = RangeSum([8, -4, -6, -5, -3]); obj.update(2, -3); obj.query(3, 4)` returns `0` instead of `-8`. Find and fix the bug.\n\nTask: Implement `RangeSum(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `que... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 26,
"entry": "RangeSum",
"checked_by": "buggy code fails on {\"init\": [[8, -4, -6, -5, -3]], \"ops\": [[\"update\", 2, -3], [...; fix == verified reference (orac... |
codedebug-train-000673 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `segment_ways('b', ['a', 'b'])` palauttaa `0` eikä `1`. Etsi ja korjaa virhe.\n\nTehtävä: Palauta, kuinka monella eri tavalla `s` voidaan jakaa listan `words` sanoiksi (jokaista sanaa saa käyttää kuinka monesti tahansa), modulo ... | {
"kind": "code.debug.off_by_one.word_break",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 9,
"entry": "segment_ways",
"checked_by": "buggy code fails on [\"b\", [\"a\", \"b\"]]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_i... |
codedebug-train-000674 | [
{
"role": "user",
"content": "Running `transform_cost('', '')` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n transform_cost('', '')\n ~~~~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 10, ... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 3,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id... |
codedebug-train-000675 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Packages with weights `weights` must be shipped in the given order within `days` days (1 <= days <= len(weights)). Each day the ship takes a run of consecutive package... | {
"kind": "code.debug.arith_flip.search_answer",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "min_ship_capacity",
"checked_by": "buggy code fails on [[2, 9, 7], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_... |
codedebug-train-000676 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `count_palindromes('a')` pitäisi olla `1`, saan `0`. Mikä on vialla?\n\nTehtävä: Palauta montako merkkijonon `s` epätyhjää osajonoa (paikan mukaan laskettuna) on sama takaperin luettuna. `s` voi olla tuhansia merkkejä pitkä, joten jokaisen os... | {
"kind": "code.debug.drop_stmt.palindromes",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "count_palindromes",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "d8eb67... |
codedebug-train-000677 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `spiral([[4, 1], [5, 8]])` should be `[4, 5, 8, 1]`, I get `[4, 5, 8]`. What's wrong?\n\nTask: Return all elements of the `rows × cols` matrix in spiral order, starting at the top-left corner and going counter-clockwise (down the left column ... | {
"kind": "code.debug.arith_flip.spiral",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "spiral",
"checked_by": "buggy code fails on [[[4, 1], [5, 8]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "af4362bd1... |
codedebug-train-000678 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\n\nTask: `heights[i]` is the height of bar `i` in a histogram; every bar is 1 wide and bars stand side by side. Return the area of the largest axis-aligned square that fits inside the bars. There ... | {
"kind": "code.debug.drop_stmt.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 7,
"entry": "largest_square",
"checked_by": "buggy code fails on [[0]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "d87fffcb5cc... |
codedebug-train-000679 | [
{
"role": "user",
"content": "I get an exception for `window_maxima([8], 1)`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 16, in <module>\n window_maxima([8], 1)\n ~~~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 10, in window_maxima\n while heap[0][1] <= i + k:\n ... | {
"kind": "code.debug.arith_flip.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 10,
"entry": "window_maxima",
"checked_by": "buggy code fails on [[8], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": ... |
codedebug-train-000680 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `count_primes(2, 2)` pitäisi olla `1`, saan `0`. Mikä on vialla?\n\nTehtävä: Palauta, kuinka monta alkulukua `p` toteuttaa ehdon `lo <= p <= hi`. `lo` voi olla negatiivinen, ja `lo > hi` tarkoittaa tyhjää väliä. `hi` voi olla jopa 8 000 000.\... | {
"kind": "code.debug.arith_flip.primes_range",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 11,
"entry": "count_primes",
"checked_by": "buggy code fails on [2, 2]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "fcfb2ec4a... |
codedebug-train-000681 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `obj = PointUpdateSums([1, 9, -7, -6, 2]); obj.query(2, 4)` returns `0` instead of `-11`. Find and fix the bug.\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(lef... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 22,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[1, 9, -7, -6, 2]], \"ops\": [[\"query\", 2, 4], [\"que...; fix == verified referen... |
codedebug-train-000682 | [
{
"role": "user",
"content": "Running `fewest_coins([1], 8)` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 11, in <module>\n fewest_coins([1], 8)\n ~~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 3, in fewe... | {
"kind": "code.debug.arith_flip.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 3,
"entry": "fewest_coins",
"checked_by": "buggy code fails on [[1], 8]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "9d7f... |
codedebug-train-000683 | [
{
"role": "user",
"content": "Running `num_islands(['1'])` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 24, in <module>\n num_islands(['1'])\n ~~~~~~~~~~~^^^^^^^\n File \"solution.py\", line 14, in num_islan... | {
"kind": "code.debug.drop_stmt.count_islands",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 14,
"entry": "num_islands",
"checked_by": "buggy code fails on [[\"1\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "f5... |
codedebug-train-000684 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Muuta merkkijono `a` merkkijonoksi `b`. Merkin lisääminen maksaa 3, poistaminen 2 ja merkin korvaaminen eri merkillä 3. Palauta pienin kokonaiskustannus.\n\n```python\ndef transform_cost(a: str,... | {
"kind": "code.debug.minmax_swap.edit_distance",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"b\", \"d\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id... |
codedebug-train-000685 | [
{
"role": "user",
"content": "I get an exception for `obj = PointUpdateSums([9, 4, -1, 3, 5]); obj.query(0, 2); obj.update(4, 7)`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 35, in <module>\n obj = PointUpdateSums([9, 4, -1, 3, 5])\n File \"solution.py\", line 10, in __init... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 9,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[9, 4, -1, 3, 5]], \"ops\": [[\"query\", 0, 2], [\"upda...; fix == verified ref... |
codedebug-train-000686 | [
{
"role": "user",
"content": "I get an exception for `calc('7')`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 52, in <module>\n calc('7')\n ~~~~^^^^^\n File \"solution.py\", line 19, in calc\n if ch == \" \":\n ^^\nNameError: name 'ch' is not defined. Did you mea... | {
"kind": "code.debug.drop_stmt.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 19,
"entry": "calc",
"checked_by": "buggy code fails on [\"7\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "ba1b3f285f18",
... |
codedebug-train-000687 | [
{
"role": "user",
"content": "Running `eval_expression('(9 + 8)')` crashes with this traceback. What's going on and how do I fix it?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 53, in <module>\n eval_expression('(9 + 8)')\n ~~~~~~~~~~~~~~~^^^^^^^^^^^\n File \"solution.py\... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 41,
"entry": "eval_expression",
"checked_by": "buggy code fails on [\"(9 + 8)\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": ... |
codedebug-train-000688 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `max_square_area([3])` raises `NameError: name 'width' is not defined` instead of returning `1`. Find and fix the bug.\n\nTask: `heights[i]` is the height of bar `i` in a histogram; every bar is 1 wide and bars stand side by side. R... | {
"kind": "code.debug.drop_stmt.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 12,
"entry": "max_square_area",
"checked_by": "buggy code fails on [[3]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "cd7bb6afdaa... |
codedebug-train-000689 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `palindromic_substrings('bb')` palauttaa `4` eikä `3`. Etsi ja korjaa virhe.\n\nTehtävä: Palauta montako merkkijonon `s` epätyhjää osajonoa (paikan mukaan laskettuna) on sama takaperin luettuna. `s` voi olla tuhansia merkkejä pi... | {
"kind": "code.debug.drop_stmt.palindromes",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "palindromic_substrings",
"checked_by": "buggy code fails on [\"bb\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "... |
codedebug-train-000690 | [
{
"role": "user",
"content": "Saan poikkeuksen kutsulla `count_segmentations('aaaa', ['a', 'aa'])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 15, in <module>\n count_segmentations('aaaa', ['a', 'aa'])\n ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^\n File \"solution.py\", li... | {
"kind": "code.debug.drop_stmt.word_break",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 10,
"entry": "count_segmentations",
"checked_by": "buggy code fails on [\"aaaa\", [\"a\", \"aa\"]]...; fix == verified reference (oracle-checked on 20 inputs... |
codedebug-train-000691 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `obj = PointUpdateSums([5]); obj.query(0, 0)` returns `0` instead of `5`. Find and fix the bug.\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, right)`, whic... | {
"kind": "code.debug.cmp_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[5]], \"ops\": [[\"query\", 0, 0], [\"update\", 0, -3], ...; fix == verified referenc... |
codedebug-train-000692 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `longest_common_subsequence('bcb', 'cb')` returns `0` instead of `2`. Find and fix the bug.\n\nTask: Return the length of the longest common subsequence of `a` and `b` (characters in the same order, not necessarily adjacent). Both s... | {
"kind": "code.debug.drop_stmt.common_sequence",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "longest_common_subsequence",
"checked_by": "buggy code fails on [\"bcb\", \"cb\"]...; fix == verified reference (oracle-checked on 20 inputs)",
... |
codedebug-train-000693 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `word_break('aaaa', ['aa'])` should be `True`, I get `False`. What's wrong?\n\nTask: Return True if `s` can be split into a sequence of one or more words from `words` (each word can be used any number of times), and False otherwise. The empty... | {
"kind": "code.debug.arith_flip.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "word_break",
"checked_by": "buggy code fails on [\"aaaa\", [\"aa\"]]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "... |
codedebug-train-000694 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `sliding_max([-8, 4, -4], 1)` should be `[-8, 4, -4]`, I get `[-8, -8, -8]`. What's wrong?\n\nTask: Given a list `nums` and a window size `k` (1 <= k <= len(nums)), return the largest value in every window of `k` consecutive elements, from le... | {
"kind": "code.debug.index_swap.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 12,
"entry": "sliding_max",
"checked_by": "buggy code fails on [[-8, 4, -4], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id":... |
codedebug-train-000695 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Palauta, kuinka monta alkulukua `p` toteuttaa ehdon `lo <= p <= hi`. `lo` voi olla negatiivinen, ja `lo > hi` tarkoittaa tyhjää väliä. `hi` voi olla jopa 8 000 000.\n\n```python\ndef count_prime... | {
"kind": "code.debug.arith_flip.primes_range",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 9,
"entry": "count_primes",
"checked_by": "buggy code fails on [2, 27]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "fcfb2ec... |
codedebug-train-000696 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `longest_palindrome_len('a')` pitäisi olla `1`, saan `0`. Mikä on vialla?\n\nTehtävä: Palauta merkkijonon `s` pisimmän sellaisen osajonon pituus, joka on sama takaperin luettuna. `s` voi olla tuhansia merkkejä pitkä, joten jokaisen osajonon t... | {
"kind": "code.debug.drop_stmt.palindromes",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "longest_palindrome_len",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "9... |
codedebug-train-000697 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Return the length of the longest substring of `s` that contains at most `k` distinct characters (`k >= 0`). `s` can be hundreds of thousands of characters long.\n\n```... | {
"kind": "code.debug.arith_flip.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 15,
"entry": "longest_with_k_kinds",
"checked_by": "buggy code fails on [\"acd\", 1]...; fix == verified reference (oracle-checked on 20 inputs)",
"probl... |
codedebug-train-000698 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `window_maxima([7, 3, 4], 2)` pitäisi olla `[7, 4]`, saan `[7, 7]`. Mikä on vialla?\n\nTehtävä: Annettu lista `nums` ja ikkunan koko `k` (1 <= k <= len(nums)). Palauta jokaisen `k` peräkkäisen alkion ikkunan suurin arvo vasemmalta oikealle. L... | {
"kind": "code.debug.cmp_flip.window_extreme",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 11,
"entry": "window_maxima",
"checked_by": "buggy code fails on [[7, 3, 4], 2]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "... |
codedebug-train-000699 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: `s` sisältää vain pieniä kirjaimia. Korvaa jokainen samojen kirjainten jakso kirjaimella ja jakson pituudella (pituuden 1 jakso kirjoitetaan pelkkänä kirjaimena). Esimerkki: 'aaab' muuttuu muoto... | {
"kind": "code.debug.drop_stmt.rle",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "rle_encode",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "29749195abb7",
"p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.