id stringlengths 22 22 | messages listlengths 2 2 | meta dict |
|---|---|---|
codedebug-train-000800 | [
{
"role": "user",
"content": "I get an exception for `transform_cost('abc', '')`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n transform_cost('abc', '')\n ~~~~~~~~~~~~~~^^^^^^^^^^^\n File \"solution.py\", line 5, in transform_cost\n cur = [i * DEL] - [... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 5,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"abc\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem... |
codedebug-train-000801 | [
{
"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.cmp_flip.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "longest_unique_run",
"checked_by": "buggy code fails on [\"aaaa\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id":... |
codedebug-train-000802 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `count_divisible([-3], 5)` should be `0`, I get `1`. What's wrong?\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 ... | {
"kind": "code.debug.drop_stmt.subarray_count",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "count_divisible",
"checked_by": "buggy code fails on [[-3], 5]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "d4e... |
codedebug-train-000803 | [
{
"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.neg_drop.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "sliding_max",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "c24ff94... |
codedebug-train-000804 | [
{
"role": "user",
"content": "Saan poikkeuksen kutsulla `count_big_inversions([4, -5])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 19, in <module>\n count_big_inversions([4, -5])\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n File \"solution.py\", line 16, in count_big_inversions\n ... | {
"kind": "code.debug.cmp_flip.inversions",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 11,
"entry": "count_big_inversions",
"checked_by": "buggy code fails on [[4, -5]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id"... |
codedebug-train-000805 | [
{
"role": "user",
"content": "Kun ajan `compress('a')`, ohjelma kaatuu tällä virheilmoituksella. Mistä on kyse ja miten korjaan sen?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n compress('a')\n ~~~~~~~~^^^^^\n File \"solution.py\", line 5, in compress\n ... | {
"kind": "code.debug.bool_flip.rle",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 5,
"entry": "compress",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "29749195abb7",
"... |
codedebug-train-000806 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Palauta `rows × cols` -matriisin kaikki alkiot spiraalijärjestyksessä alkaen vasemmasta yläkulmasta ja kulkien vastapäivään (ensin alas vasenta saraketta) keskustaan asti.\n\n```python\ndef spir... | {
"kind": "code.debug.drop_stmt.spiral",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "spiral",
"checked_by": "buggy code fails on [[[4, 5, 8]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "af4362bd16a8",... |
codedebug-train-000807 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\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 centre.\n\n```python\nd... | {
"kind": "code.debug.off_by_one.spiral",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 10,
"entry": "spiral",
"checked_by": "buggy code fails on [[[1], [2], [3]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "38f2502b... |
codedebug-train-000808 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `max_profit_once([1, 2])` palauttaa `0` eikä `1`. 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 v... | {
"kind": "code.debug.minmax_swap.stock_profit",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "max_profit_once",
"checked_by": "buggy code fails on [[1, 2]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "0405... |
codedebug-train-000809 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `cheapest_route(3, [[0, 1, 1], [1, 2, 1], [0, 2, 5]], 0, 2, 0)` returns `-5` 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.arith_flip.cheapest_path",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 9,
"entry": "cheapest_route",
"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-000810 | [
{
"role": "user",
"content": "Saan poikkeuksen kutsulla `sliding_min([1], 1)`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 17, in <module>\n sliding_min([1], 1)\n ~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 10, in sliding_min\n if window[0] <= i - k:\n ~~~~~... | {
"kind": "code.debug.drop_stmt.window_extreme",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 10,
"entry": "sliding_min",
"checked_by": "buggy code fails on [[1], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "88... |
codedebug-train-000811 | [
{
"role": "user",
"content": "My solution crashes: `window_minima([5], 1)` should return `[5]`, but it raises `IndexError: list index out of range`. What is wrong?\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,... | {
"kind": "code.debug.drop_stmt.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "window_minima",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "3d3c27... |
codedebug-train-000812 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `sliding_min([3], 1)` pitäisi olla `[3]`, saan `[]`. 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 pienin arvo vasemmalta oikealle. Listassa voi oll... | {
"kind": "code.debug.arith_flip.window_extreme",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 13,
"entry": "sliding_min",
"checked_by": "buggy code fails on [[3], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "888001... |
codedebug-train-000813 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `max_histogram_area([0, 4, 6])` returns `30` instead of `8`. 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. Return the area of the largest axis-a... | {
"kind": "code.debug.arith_flip.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 12,
"entry": "max_histogram_area",
"checked_by": "buggy code fails on [[0, 4, 6]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "8... |
codedebug-train-000814 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `num_islands(['0'])` pitäisi olla `0`, saan `1`. Mikä on vialla?\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-, pysty- tai vinosu... | {
"kind": "code.debug.cmp_flip.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "num_islands",
"checked_by": "buggy code fails on [[\"0\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "75d0deff... |
codedebug-train-000815 | [
{
"role": "user",
"content": "Ratkaisuni kaatuu: `islands(['01110'])` pitäisi palauttaa `1`, mutta se nostaa poikkeuksen `NameError: name 'ny' is not defined`. Mikä on vialla?\n\nTehtävä: Ruudukko on lista yhtä pitkiä merkkijonoja, joissa '1' on maata ja '0' vettä. Kaksi maaruutua kuuluu samaan saareen, kun... | {
"kind": "code.debug.drop_stmt.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 18,
"entry": "islands",
"checked_by": "buggy code fails on [[\"01110\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "4959508... |
codedebug-train-000816 | [
{
"role": "user",
"content": "I get an exception for `count_inversions([1, 8])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 25, in <module>\n count_inversions([1, 8])\n ~~~~~~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 22, in count_inversions\n return sort_count(l... | {
"kind": "code.debug.bool_flip.inversions",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 11,
"entry": "count_inversions",
"checked_by": "buggy code fails on [[1, 8]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "e... |
codedebug-train-000817 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `obj = RangeSum([5]); obj.query(0, 0)` palauttaa `0` eikä `5`. Etsi ja korjaa virhe.\n\nTehtävä: Toteuta `RangeSum(nums)`, jossa `update(index, value)` asettaa `nums[index] = value` ja `query(left, right)` palauttaa summan `nums... | {
"kind": "code.debug.drop_stmt.range_sum",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 17,
"entry": "RangeSum",
"checked_by": "buggy code fails on {\"init\": [[5]], \"ops\": [[\"query\", 0, 0], [\"update\", 0, -3], ...; fix == verified reference (ora... |
codedebug-train-000818 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `window_maxima([2], 1)` should be `[2]`, I get `[]`. 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 left to right. The list ca... | {
"kind": "code.debug.cmp_flip.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 9,
"entry": "window_maxima",
"checked_by": "buggy code fails on [[2], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "c24ff94... |
codedebug-train-000819 | [
{
"role": "user",
"content": "Ratkaisuni kaatuu: `palindromic_substrings('abc')` pitäisi palauttaa `3`, mutta se nostaa poikkeuksen `IndexError: string index out of range`. Mikä on vialla?\n\nTehtävä: Palauta montako merkkijonon `s` epätyhjää osajonoa (paikan mukaan laskettuna) on sama takaperin luettuna. `... | {
"kind": "code.debug.cmp_flip.palindromes",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "palindromic_substrings",
"checked_by": "buggy code fails on [\"abc\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "... |
codedebug-train-000820 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `merge_ranges([[1, 10], [2, 3], [4, 5]])` pitäisi olla `[[1, 10]]`, saan `[[2, 3], [4, 10]]`. Mikä on vialla?\n\nTehtävä: Saat listan välejä `[start, end]`, joissa `start < end`, satunnaisessa järjestyksessä. Yhdistä jokainen joukko välejä, j... | {
"kind": "code.debug.index_swap.merge_intervals",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "merge_ranges",
"checked_by": "buggy code fails on [[[1, 10], [2, 3], [4, 5]]]...; fix == verified reference (oracle-checked on 19 inputs)",
"... |
codedebug-train-000821 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `longest_common_substring('abc', 'abc')` pitäisi olla `3`, saan `2`. Mikä on vialla?\n\nTehtävä: Palauta pisimmän sellaisen merkkijonon pituus, joka esiintyy yhtenäisenä osajonona sekä jonossa `a` että `b`. Molemmat jonot voivat olla yli tuha... | {
"kind": "code.debug.cmp_flip.common_sequence",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "longest_common_substring",
"checked_by": "buggy code fails on [\"abc\", \"abc\"]...; fix == verified reference (oracle-checked on 20 inputs)",
... |
codedebug-train-000822 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `count_palindromes('')` should be `0`, I get `1`. What's wrong?\n\nTask: Return how many non-empty substrings of `s` (counted by position) read the same backwards. `s` can be several thousand characters long, so checking every substring separ... | {
"kind": "code.debug.init_change.palindromes",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 2,
"entry": "count_palindromes",
"checked_by": "buggy code fails on [\"\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "d8eb6... |
codedebug-train-000823 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `num_islands(['011'])` should be `1`, I get `2`. 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, vertical... | {
"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 [[\"011\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "75d0de... |
codedebug-train-000824 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `min_meeting_rooms([[4, 5]])` pitäisi olla `1`, saan `0`. Mikä on vialla?\n\nTehtävä: Jokainen kokous on `[start, end)`: se varaa huoneen hetkestä `start` hetkeen `end` asti, mutta ei hetkeä `end`. Palauta pienin määrä huoneita, jotta kaksi k... | {
"kind": "code.debug.drop_stmt.meeting_rooms",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "min_meeting_rooms",
"checked_by": "buggy code fails on [[[4, 5]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "1... |
codedebug-train-000825 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find 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 costs 4. Return the minimum total cost.\n\n```python... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 6,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"b\", \"dba\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_i... |
codedebug-train-000826 | [
{
"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 distinct positive coin values (unlimited supply of each) and an amount, return the fewest coins that add up to exactly the amount, or -1 if it cannot be made. An... | {
"kind": "code.debug.cmp_flip.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "min_coins",
"checked_by": "buggy code fails on [[1], 0]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "9d7f7ca67fff... |
codedebug-train-000827 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `longest_unique_run('d')` returns `0` 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```p... | {
"kind": "code.debug.arith_flip.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "longest_unique_run",
"checked_by": "buggy code fails on [\"d\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "d... |
codedebug-train-000828 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\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 (sharing only an endpoint counts, so [1, ... | {
"kind": "code.debug.cmp_flip.merge_intervals",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "merge",
"checked_by": "buggy code fails on [[[1, 3], [3, 5]]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "7c... |
codedebug-train-000829 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `fastest_route(3, [[0, 1, 5], [1, 2, 5], [0, 2, 20]], 0, 2)` should be `10`, I get `-20`. What's wrong?\n\nTask: A directed graph has `n` nodes (0..n-1) and edges `[u, v, w]` from `u` to `v` with weight `w >= 1`. Return the length of the shor... | {
"kind": "code.debug.arith_flip.dijkstra",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 20,
"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 ... |
codedebug-train-000830 | [
{
"role": "user",
"content": "Kun ajan `islands(['10'])`, ohjelma kaatuu tällä virheilmoituksella. Mistä on kyse ja miten korjaan sen?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 24, in <module>\n islands(['10'])\n ~~~~~~~^^^^^^^^\n File \"solution.py\", line 18, in islan... | {
"kind": "code.debug.drop_stmt.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 18,
"entry": "islands",
"checked_by": "buggy code fails on [[\"10\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "cdd40... |
codedebug-train-000831 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `largest_rectangle([4, 1, 1, 8, 5])` palauttaa `40` eikä `10`. Etsi ja korjaa virhe.\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äid... | {
"kind": "code.debug.drop_stmt.histogram",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 9,
"entry": "largest_rectangle",
"checked_by": "buggy code fails on [[4, 1, 1, 8, 5]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id":... |
codedebug-train-000832 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `max_profit_with_fee([11, 7, 11, 5], 1)` returns `0` instead of `3`. Find and fix the bug.\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... | {
"kind": "code.debug.minmax_swap.stock_profit",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "max_profit_with_fee",
"checked_by": "buggy code fails on [[11, 7, 11, 5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"pro... |
codedebug-train-000833 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `obj = PointUpdateSums([-6, 8, 2, 4, 2, 5, 5, 0]); obj.query(2, 3)` palauttaa `10` eikä `6`. Etsi ja korjaa virhe.\n\nTehtävä: Toteuta `PointUpdateSums(nums)`, jossa `update(index, value)` asettaa `nums[index] = value` ja `query... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[-6, 8, 2, 4, 2, 5, 5, 0]], \"ops\": [[\"query\", 2, 3...; fix == verified referenc... |
codedebug-train-000834 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Paketit painoilla `weights` on kuljetettava annetussa järjestyksessä `days` päivässä (1 <= days <= len(weights)). Joka päivä laiva ottaa peräkkäisiä paketteja, joiden yhteispaino ei ylitä sen ka... | {
"kind": "code.debug.cmp_flip.search_answer",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "smallest_capacity",
"checked_by": "buggy code fails on [[6, 2], 2]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": ... |
codedebug-train-000835 | [
{
"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 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 needs 0 words. `s... | {
"kind": "code.debug.cmp_flip.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 13,
"entry": "fewest_words",
"checked_by": "buggy code fails on [\"a\", []]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "80e4a7... |
codedebug-train-000836 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `min_meeting_rooms([[7, 8]])` palauttaa `0` eikä `1`. Etsi ja korjaa virhe.\n\nTehtävä: Jokainen kokous on `[start, end)`: se varaa huoneen hetkestä `start` hetkeen `end` asti, mutta ei hetkeä `end`. Palauta pienin määrä huoneit... | {
"kind": "code.debug.drop_stmt.meeting_rooms",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "min_meeting_rooms",
"checked_by": "buggy code fails on [[[7, 8]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "... |
codedebug-train-000837 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, right)`, which returns the sum of `nums[left..right]`... | {
"kind": "code.debug.drop_stmt.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 17,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[5]], \"ops\": [[\"query\", 0, 0], [\"update\", 0, -3], ...; fix == verified refer... |
codedebug-train-000838 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\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 have hundreds of th... | {
"kind": "code.debug.neg_drop.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 [[1], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "c24ff9... |
codedebug-train-000839 | [
{
"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 merkkijonojen `a` ja `b` pisimmän yhteisen alijonon pituus (merkit samassa järjestyksessä, ei välttämättä vierekkäin). Molemmat jonot voivat olla yli tuhat ... | {
"kind": "code.debug.cmp_flip.common_sequence",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 6,
"entry": "longest_common_subsequence",
"checked_by": "buggy code fails on [\"abc\", \"abc\"]...; fix == verified reference (oracle-checked on 20 inputs)"... |
codedebug-train-000840 | [
{
"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 merkkijonon `s` pisimmän sellaisen osajonon pituus, joka on sama takaperin luettuna. `s` voi olla tuhansia merkkejä pitkä, joten jokaisen osajonon tarkistam... | {
"kind": "code.debug.cmp_flip.palindromes",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "longest_palindrome_len",
"checked_by": "buggy code fails on [\"aaa\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id":... |
codedebug-train-000841 | [
{
"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ä: `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 suunt... | {
"kind": "code.debug.arith_flip.histogram",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "max_square_area",
"checked_by": "buggy code fails on [[2, 5]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "cd7bb6... |
codedebug-train-000842 | [
{
"role": "user",
"content": "I get an exception for `edit_cost('dad', '')`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n edit_cost('dad', '')\n ~~~~~~~~~^^^^^^^^^^^\n File \"solution.py\", line 7, in edit_cost\n keep = prev[j - 1] + (0 if a[i - 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": "edit_cost",
"checked_by": "buggy code fails on [\"dad\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id":... |
codedebug-train-000843 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `spiral_order([[7]])` should be `[7]`, I get `[]`. 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 first), ending at the... | {
"kind": "code.debug.drop_stmt.spiral",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 7,
"entry": "spiral_order",
"checked_by": "buggy code fails on [[[7]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "af4362bd16a8",
... |
codedebug-train-000844 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `merge([[1, 4], [1, 2], [1, 3]])` returns `[[1, 2]]` instead of `[[1, 4]]`. Find and fix the bug.\n\nTask: You are given a list of intervals `[start, end]` with `start < end`, in no particular order. Merge every group of intervals t... | {
"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, 4], [1, 2], [1, 3]]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem... |
codedebug-train-000845 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `window_maxima([5], 1)` pitäisi olla `[5]`, saan `[-5]`. 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. Listassa voi... | {
"kind": "code.debug.neg_drop.window_extreme",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 12,
"entry": "window_maxima",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "c24ff9... |
codedebug-train-000846 | [
{
"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.arith_flip.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 9,
"entry": "sliding_max",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "c24ff... |
codedebug-train-000847 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `largest_rectangle([6, 0, 8])` pitäisi olla `8`, saan `40`. 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 akse... | {
"kind": "code.debug.arith_flip.histogram",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 12,
"entry": "largest_rectangle",
"checked_by": "buggy code fails on [[6, 0, 8]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "88... |
codedebug-train-000848 | [
{
"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 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 exactl... | {
"kind": "code.debug.init_change.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 7,
"entry": "segment_ways",
"checked_by": "buggy code fails on [\"\", []]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "661c6... |
codedebug-train-000849 | [
{
"role": "user",
"content": "I get an exception for `window_maxima([5], 1)`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 18, in <module>\n window_maxima([5], 1)\n ~~~~~~~~~~~~~^^^^^^^^\n File \"solution.py\", line 14, in window_maxima\n out.append(nums[window[0]])\n ... | {
"kind": "code.debug.arith_flip.window_extreme",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 11,
"entry": "window_maxima",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": ... |
codedebug-train-000850 | [
{
"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ä: Kaupunkeja on `n` (`0..n-1`) ja yhdensuuntaisia lentoja `[u, v, price]`. Palauta halvin kokonaishinta kaupungista `src` kaupunkiin `dst`, kun välilaskuja on enintää... | {
"kind": "code.debug.init_change.cheapest_path",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "cheapest_price",
"checked_by": "buggy code fails on [6, [[4, 3, 4]], 2, 2, 2]...; fix == verified reference (oracle-checked on 19 inputs)",
... |
codedebug-train-000851 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `spiral_order([[1, 2, 3]])` pitäisi olla `[1, 2, 3]`, saan `[1, 2, 3, 2]`. Mikä on vialla?\n\nTehtävä: Palauta `rows × cols` -matriisin kaikki alkiot spiraalijärjestyksessä alkaen vasemmasta yläkulmasta ja kulkien vastapäivään (ensin alas vas... | {
"kind": "code.debug.cmp_flip.spiral",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 11,
"entry": "spiral_order",
"checked_by": "buggy code fails on [[[1, 2, 3]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "af4362bd16... |
codedebug-train-000852 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\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 by more than a single point ([... | {
"kind": "code.debug.minmax_swap.merge_intervals",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 6,
"entry": "merge_ranges",
"checked_by": "buggy code fails on [[[6, 7], [6, 8], [8, 9]]]...; fix == verified reference (oracle-checked on 19 inputs)",
... |
codedebug-train-000853 | [
{
"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 ostaa kerran ja myydä kerran myöhemmin (tai olla käymättä kauppaa). Palauta suurin mahdollinen voitto. Päiviä voi ol... | {
"kind": "code.debug.arith_flip.stock_profit",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "max_profit_once",
"checked_by": "buggy code fails on [[5]]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "0405ef... |
codedebug-train-000854 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\n\nTask: Item i weighs `weights[i]` and is worth `values[i]` (all positive integers). Return the largest total value whose total weight is at most `capacity`; each item can be taken at most once.\... | {
"kind": "code.debug.off_by_one.knapsack",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "knapsack",
"checked_by": "buggy code fails on [[5], [10], 5]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "ad345a84... |
codedebug-train-000855 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\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 ins... | {
"kind": "code.debug.arith_flip.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "largest_square",
"checked_by": "buggy code fails on [[7, 3, 4]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "d87f... |
codedebug-train-000856 | [
{
"role": "user",
"content": "Please review this solution: there is a bug somewhere. Find it, show an input that fails, and fix it.\n\nTask: A robot starts at (0, 0) facing north. Commands: `-2` turns left 90°, `-1` turns right 90°, and `k` (1-9) moves forward k unit steps. If the next square is an obstacle... | {
"kind": "code.debug.arith_flip.robot_walk",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 15,
"entry": "walk",
"checked_by": "buggy code fails on [[-1, -2, -2, 2, 2], [[0, 2], [-2, -3], [-3, 0]]]...; fix == verified reference (oracle-checked on 18 i... |
codedebug-train-000857 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `count_paths(['.'])` should be `1`, I get `0`. What's wrong?\n\nTask: The grid is a list of strings of '.' (open) and '#' (blocked). Starting at the top-left cell and moving only right or down, how many paths reach the bottom-right cell witho... | {
"kind": "code.debug.cmp_flip.grid_paths",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "count_paths",
"checked_by": "buggy code fails on [[\".\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "9cbaa94810d4... |
codedebug-train-000858 | [
{
"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-, pysty- tai vinos... | {
"kind": "code.debug.init_change.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 7,
"entry": "islands",
"checked_by": "buggy code fails on [[\"00\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "4959508... |
codedebug-train-000859 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `weighted_edit_distance('bc', '')` should be `6`, I get `0`. What's wrong?\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 costs 4. Return the min... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "weighted_edit_distance",
"checked_by": "buggy code fails on [\"bc\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"probl... |
codedebug-train-000860 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `longest_with_k_kinds('a', 3)` should be `1`, I get `0`. What's wrong?\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... | {
"kind": "code.debug.minmax_swap.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 15,
"entry": "longest_with_k_kinds",
"checked_by": "buggy code fails on [\"a\", 3]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_... |
codedebug-train-000861 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\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 centre.\n\n```python\nd... | {
"kind": "code.debug.cmp_flip.spiral",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 6,
"entry": "spiral",
"checked_by": "buggy code fails on [[[5]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "38f2502ba7af",
"pro... |
codedebug-train-000862 | [
{
"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 counter-clockwise (down the left column first), ending at th... | {
"kind": "code.debug.arith_flip.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 [[[6, 3]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "af4362bd16... |
codedebug-train-000863 | [
{
"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.cmp_flip.palindromes",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "count_palindromes",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "d8eb67d... |
codedebug-train-000864 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `islands(['000'])` returns `3` instead of `0`. Find and fix 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 horizo... | {
"kind": "code.debug.cmp_flip.count_islands",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "islands",
"checked_by": "buggy code fails on [[\"000\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "cdd40a2a8e... |
codedebug-train-000865 | [
{
"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, mutta voit omistaa enintään yhden osakkeen kerrallaan, ja jokainen myynti maksaa `fee`. Palauta suurin mahd... | {
"kind": "code.debug.arith_flip.stock_profit",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "max_profit_with_fee",
"checked_by": "buggy code fails on [[7, 2, 8, 8, 12], 3]...; fix == verified reference (oracle-checked on 19 inputs)",
"... |
codedebug-train-000866 | [
{
"role": "user",
"content": "I get an exception for `largest_square([4])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 17, in <module>\n largest_square([4])\n ~~~~~~~~~~~~~~^^^^^\n File \"solution.py\", line 6, in largest_square\n while stack or heights[stack[-1]] >= ... | {
"kind": "code.debug.bool_flip.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 6,
"entry": "largest_square",
"checked_by": "buggy code fails on [[4]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "cd7bb6af... |
codedebug-train-000867 | [
{
"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-, pysty- tai vinos... | {
"kind": "code.debug.cmp_flip.count_islands",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 19,
"entry": "islands",
"checked_by": "buggy code fails on [[\"011\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "49595087... |
codedebug-train-000868 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `eval_expression('7 / -2')` should be `-3`, I get `3`. What's wrong?\n\nTask: The string contains non-negative integers, `+`, `-`, `*`, `/`, parentheses, spaces, and unary minus (as in `-3` or `-(2 + 1)`). Evaluate it with the usual precedenc... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 4,
"entry": "eval_expression",
"checked_by": "buggy code fails on [\"7 / -2\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "ba1b3f... |
codedebug-train-000869 | [
{
"role": "user",
"content": "Running `merge_ranges([[1, 3], [3, 5]])` 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 12, in <module>\n merge_ranges([[1, 3], [3, 5]])\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n File \"... | {
"kind": "code.debug.bool_flip.merge_intervals",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 5,
"entry": "merge_ranges",
"checked_by": "buggy code fails on [[[1, 3], [3, 5]]]...; fix == verified reference (oracle-checked on 19 inputs)",
"probl... |
codedebug-train-000870 | [
{
"role": "user",
"content": "Running `transform_cost('cdd', 'a')` 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('cdd', 'a')\n ~~~~~~~~~~~~~~^^^^^^^^^^^^\n File \"solution.py\... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 7,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"cdd\", \"a\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"proble... |
codedebug-train-000871 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Robotti aloittaa pisteestä (0, 0) pohjoiseen päin. Komennot: `-2` kääntää 90° vasemmalle, `-1` kääntää 90° oikealle ja `k` (1-9) liikkuu k askelta eteenpäin. Jos seuraava ruutu on este, robotti ... | {
"kind": "code.debug.init_change.robot_walk",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 5,
"entry": "walk",
"checked_by": "buggy code fails on [[], []]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "ed0035dc3a92",
... |
codedebug-train-000872 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `longest_with_k_kinds('cc', 2)` should be `2`, I get `0`. What's wrong?\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.\... | {
"kind": "code.debug.minmax_swap.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 15,
"entry": "longest_with_k_kinds",
"checked_by": "buggy code fails on [\"cc\", 2]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem... |
codedebug-train-000873 | [
{
"role": "user",
"content": "My solution crashes: `can_segment('', [])` should return `True`, but it raises `IndexError: list assignment index out of range`. What is 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)... | {
"kind": "code.debug.arith_flip.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "can_segment",
"checked_by": "buggy code fails on [\"\", []]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "b1a741a93... |
codedebug-train-000874 | [
{
"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.cmp_flip.spiral",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 11,
"entry": "spiral",
"checked_by": "buggy code fails on [[[1], [2], [3]]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "38f2502ba7... |
codedebug-train-000875 | [
{
"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 distinct positive coin values (unlimited supply of each) and an amount, return the fewest coins that add up to exactly the amount, or -1 if it cannot be made. An... | {
"kind": "code.debug.off_by_one.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "min_coins",
"checked_by": "buggy code fails on [[3, 8], 3]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "9d7f7ca... |
codedebug-train-000876 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `obj = RangeSum([1, 2, 3]); obj.update(1, 2); obj.query(0, 2)` should be `6`, I get `7`. What's wrong?\n\nTask: Implement `RangeSum(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, right)`, which returns ... | {
"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-000877 | [
{
"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 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 needs 0 words. `s... | {
"kind": "code.debug.minmax_swap.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "min_word_split",
"checked_by": "buggy code fails on [\"aaaa\", [\"a\", \"aa\"]]...; fix == verified reference (oracle-checked on 20 inputs)",
"... |
codedebug-train-000878 | [
{
"role": "user",
"content": "I get an exception for `word_break('aaa', ['a'])`:\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 15, in <module>\n word_break('aaa', ['a'])\n ~~~~~~~~~~^^^^^^^^^^^^^^\n File \"solution.py\", line 11, in word_break\n best[i] = best[i] or best... | {
"kind": "code.debug.arith_flip.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 11,
"entry": "word_break",
"checked_by": "buggy code fails on [\"aaa\", [\"a\"]]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id... |
codedebug-train-000879 | [
{
"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 primes_betw... | {
"kind": "code.debug.arith_flip.primes_range",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 9,
"entry": "primes_between",
"checked_by": "buggy code fails on [58, 98]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "fcfb... |
codedebug-train-000880 | [
{
"role": "user",
"content": "Kun ajan `weighted_edit_distance('abc', '')`, ohjelma kaatuu tällä virheilmoituksella. Mistä on kyse ja miten korjaan sen?\n\n```\nTraceback (most recent call last):\n File \"solution.py\", line 13, in <module>\n weighted_edit_distance('abc', '')\n ~~~~~~~~~~~~~~~~~~~~~~... | {
"kind": "code.debug.arith_flip.edit_distance",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 5,
"entry": "weighted_edit_distance",
"checked_by": "buggy code fails on [\"abc\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
... |
codedebug-train-000881 | [
{
"role": "user",
"content": "My solution crashes: `fewest_coins([10], 7)` should return `-1`, but it raises `IndexError: list index out of range`. What is wrong?\n\nTask: Given distinct positive coin values (unlimited supply of each) and an amount, return the fewest coins that add up to exactly the amount,... | {
"kind": "code.debug.bool_flip.coin_change",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 6,
"entry": "fewest_coins",
"checked_by": "buggy code fails on [[10], 7]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "9d7f7ca67... |
codedebug-train-000882 | [
{
"role": "user",
"content": "Ratkaisuni antaa väärän vastauksen: `evaluate('14 / 9')` pitäisi olla `1`, saan `126`. Mikä on vialla?\n\nTehtävä: Merkkijonossa on ei-negatiivisia kokonaislukuja, `+`, `-`, `*`, `/`, sulkeita, välilyöntejä ja unaarinen miinus (kuten `-3` tai `-(2 + 1)`). Laske se tavallisella ... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 39,
"entry": "evaluate",
"checked_by": "buggy code fails on [\"14 / 9\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "2918dd17ef27... |
codedebug-train-000883 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `largest_square([0])` 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 square that fits inside ... | {
"kind": "code.debug.minmax_swap.histogram",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 13,
"entry": "largest_square",
"checked_by": "buggy code fails on [[0]]...; fix == verified reference (oracle-checked on 21 inputs)",
"problem_id": "cd7bb6afda... |
codedebug-train-000884 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `num_islands(['000'])` returns `3` instead of `0`. Find and fix 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 ho... | {
"kind": "code.debug.bool_flip.count_islands",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 10,
"entry": "num_islands",
"checked_by": "buggy code fails on [[\"000\"]]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "f54b6... |
codedebug-train-000885 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `weighted_edit_distance('', '')` raises `IndexError: list index out of range` instead of returning `0`. Find and fix the bug.\n\nTask: Turn string `a` into string `b`. Inserting a character costs 2, deleting one costs 2, and replaci... | {
"kind": "code.debug.off_by_one.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 3,
"entry": "weighted_edit_distance",
"checked_by": "buggy code fails on [\"\", \"\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem... |
codedebug-train-000886 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `primes_between(-5, 50)` should be `15`, I get `1`. 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 prim... | {
"kind": "code.debug.minmax_swap.primes_range",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 11,
"entry": "primes_between",
"checked_by": "buggy code fails on [-5, 50]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "fcfb... |
codedebug-train-000887 | [
{
"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 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 needs 0 words. `s... | {
"kind": "code.debug.off_by_one.word_break",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 9,
"entry": "fewest_words",
"checked_by": "buggy code fails on [\"cccccc\", [\"cc\"]]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_... |
codedebug-train-000888 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `walk([-1, 1, -2, 4, 4, 3, 1, 5], [[4, -1], [-3, 3], [-1, 3], [-4, 0]])` returns `5` instead of `290`. Find and fix the bug.\n\nTask: A robot starts at (0, 0) facing north. Commands: `-2` turns left 90°, `-1` turns right 90°, and `k... | {
"kind": "code.debug.arith_flip.robot_walk",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 15,
"entry": "walk",
"checked_by": "buggy code fails on [[-1, 1, -2, 4, 4, 3, 1, 5], [[4, -1], [-3, 3], [-1, 3], [-4...; fix == verified reference (oracle-checke... |
codedebug-train-000889 | [
{
"role": "user",
"content": "This is supposed to solve the task below, but `edit_cost('cd', 'b')` returns `0` instead of `6`. 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 costs 3. Return... | {
"kind": "code.debug.drop_stmt.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "edit_cost",
"checked_by": "buggy code fails on [\"cd\", \"b\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id": "36ce... |
codedebug-train-000890 | [
{
"role": "user",
"content": "Running `evaluate('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 53, in <module>\n evaluate('4')\n ~~~~~~~~^^^^^\n File \"solution.py\", line 50, in evaluate\n return num... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 20,
"entry": "evaluate",
"checked_by": "buggy code fails on [\"4\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "ba1b3f285f18... |
codedebug-train-000891 | [
{
"role": "user",
"content": "Tämän pitäisi ratkaista alla oleva tehtävä, mutta `window_minima([5], 1)` palauttaa `[]` eikä `[5]`. Etsi ja korjaa virhe.\n\nTehtävä: Annettu lista `nums` ja ikkunan koko `k` (1 <= k <= len(nums)). Palauta jokaisen `k` peräkkäisen alkion ikkunan pienin arvo vasemmalta oikealle... | {
"kind": "code.debug.arith_flip.window_extreme",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 13,
"entry": "window_minima",
"checked_by": "buggy code fails on [[5], 1]...; fix == verified reference (oracle-checked on 19 inputs)",
"problem_id": "8880... |
codedebug-train-000892 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\n\nTask: Implement `PointUpdateSums(nums)` with `update(index, value)`, which sets `nums[index] = value`, and `query(left, right)`, which returns the sum of `nums[left..right]` (both ends included... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 10,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[-5, 4, 9, 4, 8, 5]], \"ops\": [[\"update\", 2, 6], [\"...; fix == verified refer... |
codedebug-train-000893 | [
{
"role": "user",
"content": "Tässä ratkaisuni. Jokin on vialla, mutta en näe mikä. Löydätkö virheen?\n\nTehtävä: Toteuta `PointUpdateSums(nums)`, jossa `update(index, value)` asettaa `nums[index] = value` ja `query(left, right)` palauttaa summan `nums[left..right]` (molemmat päät mukaan lukien, `left <= ri... | {
"kind": "code.debug.arith_flip.range_sum",
"lang": "fi",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 22,
"entry": "PointUpdateSums",
"checked_by": "buggy code fails on {\"init\": [[5]], \"ops\": [[\"query\", 0, 0], [\"update\", 0, -3], ...; fix == verified refe... |
codedebug-train-000894 | [
{
"role": "user",
"content": "Here is my solution. Something is wrong but I can't see it. Can you find the bug?\n\nTask: Turn string `a` into string `b`. Inserting a character costs 1, deleting one costs 2, and replacing one character with a different one costs 3. Return the minimum total cost.\n\n```python... | {
"kind": "code.debug.off_by_one.edit_distance",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 4,
"entry": "transform_cost",
"checked_by": "buggy code fails on [\"a\", \"da\"]...; fix == verified reference (oracle-checked on 18 inputs)",
"problem_id... |
codedebug-train-000895 | [
{
"role": "user",
"content": "Running `eval_expression('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 53, in <module>\n eval_expression('4')\n ~~~~~~~~~~~~~~~^^^^^\n File \"solution.py\", line 25, in eva... | {
"kind": "code.debug.cmp_flip.expr_eval",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "traceback",
"bug_line": 25,
"entry": "eval_expression",
"checked_by": "buggy code fails on [\"4\"]...; fix == verified reference (oracle-checked on 22 inputs)",
"problem_id": "ba1b3... |
codedebug-train-000896 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `shortest_path_cost(3, [[2, 1, 5], [2, 0, 3]], 2, 1)` should be `5`, I get `-5`. What's wrong?\n\nTask: A directed graph has `n` nodes (0..n-1) and edges `[u, v, w]` from `u` to `v` with weight `w >= 1`. Return the length of the shortest path... | {
"kind": "code.debug.arith_flip.dijkstra",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 20,
"entry": "shortest_path_cost",
"checked_by": "buggy code fails on [3, [[2, 1, 5], [2, 0, 3]], 2, 1]...; fix == verified reference (oracle-checked on 20 inputs)... |
codedebug-train-000897 | [
{
"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 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_distinct_substring(s:... | {
"kind": "code.debug.minmax_swap.longest_window",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "nohint",
"bug_line": 8,
"entry": "longest_distinct_substring",
"checked_by": "buggy code fails on [\"a\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"prob... |
codedebug-train-000898 | [
{
"role": "user",
"content": "My solution gives the wrong answer: `longest_palindrome_len('b')` should be `1`, I get `0`. 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 separatel... | {
"kind": "code.debug.arith_flip.palindromes",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 8,
"entry": "longest_palindrome_len",
"checked_by": "buggy code fails on [\"b\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "... |
codedebug-train-000899 | [
{
"role": "user",
"content": "My solution crashes: `longest_palindrome_len('aa')` should return `2`, but it raises `IndexError: string index out of range`. What is 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... | {
"kind": "code.debug.cmp_flip.palindromes",
"lang": "en",
"generator": "kreatix-code-debug",
"version": "0.1.0",
"mode": "fail",
"bug_line": 5,
"entry": "longest_palindrome_len",
"checked_by": "buggy code fails on [\"aa\"]...; fix == verified reference (oracle-checked on 20 inputs)",
"problem_id": "9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.