Buckets:
{
"history": [
{
"at": "2026-11-04T22:39:49.916168+00:00",
"run": "20261104T215306Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1822,
"seconds": 1918.3
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
],
"source": "base"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": true
},
{
"at": "2026-11-04T23:44:53.148894+00:00",
"run": "20261104T215306Z",
"cycle": 1,
"phase": "grpo",
"train": {
"tasks": 150,
"repairs": 37,
"steps": 150,
"loss": 0.0158,
"curriculum": {
"tasks_seen": 113,
"informative": 35,
"failures": 107
},
"seconds": 3457.4
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": false
},
{
"at": "2026-11-05T00:46:23.117617+00:00",
"run": "20261105T000435Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1717,
"seconds": 1940.3
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": false
},
{
"at": "2026-11-05T02:51:01.392225+00:00",
"run": "20261105T020941Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1733,
"seconds": 1930.7
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 81,
"n": 100,
"rate": 0.81,
"ci95": [
0.722,
0.875
]
},
"promoted": false
},
{
"at": "2026-11-05T04:00:34.573757+00:00",
"run": "20261105T020941Z",
"cycle": 1,
"phase": "grpo",
"train": {
"tasks": 150,
"repairs": 37,
"steps": 150,
"loss": 0.0046,
"curriculum": {
"tasks_seen": 113,
"informative": 50,
"failures": 141
},
"seconds": 3719.1
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": false
},
{
"at": "2026-11-05T05:32:24.030280+00:00",
"run": "20261105T020941Z",
"cycle": 2,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1769,
"seconds": 1982.1
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": false
},
{
"at": "2026-11-05T06:43:17.069305+00:00",
"run": "20261105T020941Z",
"cycle": 2,
"phase": "grpo",
"train": {
"tasks": 150,
"repairs": 37,
"steps": 150,
"loss": 0.0213,
"curriculum": {
"tasks_seen": 113,
"informative": 48,
"failures": 146
},
"seconds": 3797.1
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 84,
"n": 100,
"rate": 0.84,
"ci95": [
0.756,
0.899
]
},
"promoted": false
},
{
"at": "2026-11-05T18:07:46.239357+00:00",
"run": "20261105T172317Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1997,
"seconds": 2053.0
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": false
},
{
"at": "2026-11-05T19:04:05.208455+00:00",
"run": "20261105T182154Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1929,
"seconds": 2054.2
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 83,
"n": 100,
"rate": 0.83,
"ci95": [
0.745,
0.891
]
},
"promoted": false
},
{
"at": "2026-11-05T19:47:43.757862+00:00",
"run": "20261105T190426Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1913,
"seconds": 2049.4
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 81,
"n": 100,
"rate": 0.81,
"ci95": [
0.722,
0.875
]
},
"promoted": false
},
{
"at": "2026-11-05T20:56:31.139115+00:00",
"run": "20261105T190426Z",
"cycle": 1,
"phase": "grpo",
"train": {
"tasks": 150,
"repairs": 37,
"steps": 150,
"loss": 0.0074,
"curriculum": {
"tasks_seen": 113,
"informative": 40,
"failures": 140
},
"seconds": 3682.1
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 83,
"n": 100,
"rate": 0.83,
"ci95": [
0.745,
0.891
]
},
"promoted": false
},
{
"at": "2026-11-05T21:44:27.657411+00:00",
"run": "20261105T190426Z",
"cycle": 2,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1949,
"seconds": 2047.4
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 83,
"n": 100,
"rate": 0.83,
"ci95": [
0.745,
0.891
]
},
"promoted": false
},
{
"at": "2026-11-05T22:57:59.672911+00:00",
"run": "20261105T190426Z",
"cycle": 2,
"phase": "grpo",
"train": {
"tasks": 150,
"repairs": 37,
"steps": 150,
"loss": 0.0131,
"curriculum": {
"tasks_seen": 113,
"informative": 48,
"failures": 148
},
"seconds": 3758.8
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 83,
"n": 100,
"rate": 0.83,
"ci95": [
0.745,
0.891
]
},
"promoted": false
},
{
"at": "2026-11-05T23:57:52.961191+00:00",
"run": "20261105T230413Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.202,
"seconds": 2065.2
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 81,
"n": 100,
"rate": 0.81,
"ci95": [
0.722,
0.875
]
},
"promoted": false
},
{
"at": "2026-11-06T01:55:28.928145+00:00",
"run": "20261106T010604Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1914,
"seconds": 2053.4
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 81,
"n": 100,
"rate": 0.81,
"ci95": [
0.722,
0.875
]
},
"promoted": false
}
],
"heldout_tasks": {
"000dd3f6ad603c9463bf1a6875483d864302d410fcf09f71217d009f22aa219c": {
"task_hash": "000dd3f6ad603c9463bf1a6875483d864302d410fcf09f71217d009f22aa219c",
"instruction": "You are given two strings `s1` and `s2`. Your task is to find the longest common substring between these two strings. The solution should be efficient and handle large strings. \n\n**Input:**\n- Two strings `s1` and `s2` (1 ≤ |s1|, |s2| ≤ 10^3), consisting of lowercase English letters.\n\n**Output:**\n- A single string representing the longest common substring. If there are multiple substrings of the same maximum length, return any one of them.\n\n**Sample Input:**\n```\nabcdef\nzabcf\n```\n\n**Sample Output:**\n```\nabc\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert longest_common_substring(\"abcdef\", \"zabcf\") == \"abc\"\n\ndef test_1():\n assert longest_common_substring(\"hello\", \"yellow\") == \"ello\"\n\ndef test_2():\n assert longest_common_substring(\"abc\", \"def\") == \"\"\n\ndef test_3():\n assert longest_common_substring(\"abcde\", \"abfgh\") == \"ab\"\n\ndef test_4():\n assert longest_common_substring(\"aaaa\", \"aa\") == \"aa\"\n\ndef test_5():\n assert longest_common_substring(\"abcabc\", \"abc\") == \"abc\"\n\ndef test_6():\n assert longest_common_substring(\"abc\", \"abcabc\") == \"abc\"\n\ndef test_7():\n assert longest_common_substring(\"\", \"abc\") == \"\"\n\ndef test_8():\n assert longest_common_substring(\"abc\", \"\") == \"\"\n\ndef test_9():\n assert longest_common_substring(\"abc\", \"defabc\") == \"abc\"\n"
}
},
"00529ae0c1825c699d60c6be775f9ecae9e668d8292bb28c6aa992e1d7e9563b": {
"task_hash": "00529ae0c1825c699d60c6be775f9ecae9e668d8292bb28c6aa992e1d7e9563b",
"instruction": "A well-known museum is organizing an exhibition and they want to form a display of certain valuable historical items. Each item has a particular historical value associated with it. Additionally, each item is stored in a box with a particular weight. The museum wants to ensure that the total weight of the boxes on display does not exceed a given limit, while maximizing the historical value of the display.\n\nYou are given two arrays, each of length N. The first array contains the weights of the boxes, and the second array contains the historical values of the items. You are also given an integer W representing the maximum total weight the display can hold.\n\nWrite a program to find the maximum total historical value of the items that can be included in the display without exceeding the given weight limit W.\n\n----- Input: -----\nThe first line of input contains an integer T, denoting the number of test cases. Each test case follows with three lines:\n- The first line contains an integer N, the number of items.\n- The second line contains N integers, representing the weights of the boxes.\n- The third line contains N integers, representing the historical values of the items.\n- The fourth line contains the integer W, the maximum allowable weight of the display.\n\n----- Output: -----\nFor each test case, output the maximum total historical value of the display that does not exceed the weight limit W.\n\n----- Constraints: -----\n- 1 ≤ T ≤ 50\n- 1 ≤ N ≤ 100\n- 1 ≤ weight_i ≤ 1000\n- 1 ≤ value_i ≤ 1000\n- 1 ≤ W ≤ 10000\n\n----- Example: -----\nInput:\n2\n4\n1 3 4 5\n1 4 5 7\n7\n3\n2 3 4\n3 4 5\n5\n\nOutput:\n9\n7\n\n----- Explanation: -----\nCase #1: The optimal choice is to select items with weights 3 and 4, which gives a total weight of 7 and a total historical value of 4 + 5 = 9.\nCase #2: The optimal choice is to select items with weights 2 and 3, which gives a total weight of 5 and a total historical value of 3 + 4 = 7.",
"tests": {
"test_solution.py": "import pytest\nfrom solution import solve_exhibitions\n\ndef test_single_test_case():\n input_str = \"1\\n4\\n1 3 4 5\\n1 4 5 7\\n7\"\n expected_output = [9]\n assert solve_exhibitions(input_str) == expected_output\n\ndef test_multiple_test_cases():\n input_str = \"2\\n4\\n1 3 4 5\\n1 4 5 7\\n7\\n3\\n2 3 4\\n3 4 5\\n5\"\n expected_output = [9, 7]\n assert solve_exhibitions(input_str) == expected_output\n\ndef test_no_weights():\n input_str = \"1\\n3\\n1 2 3\\n10 20 30\\n0\"\n expected_output = [0]\n assert solve_exhibitions(input_str) == expected_output\n\ndef test_no_items():\n input_str = \"1\\n0\\n\\n\\n10\"\n expected_output = [0]\n assert solve_exhibitions(input_str) == expected_output\n\ndef test_max_single_item():\n input_str = \"1\\n1\\n4\\n5\\n4\"\n expected_output = [5]\n assert solve_exhibitions(input_str) == expected_output\n\ndef test_over_max_weight():\n input_str = \"1\\n3\\n5 6 7\\n10 20 30\\n5\"\n expected_output = [10]\n assert solve_exhibitions(input_str) == expected_output\n"
}
},
"0062a822cce1136535df6033e2a42c6f8df05008c41ee0502897a4f8153d07e6": {
"task_hash": "0062a822cce1136535df6033e2a42c6f8df05008c41ee0502897a4f8153d07e6",
"instruction": "You are tasked with implementing a `BookInventory` class to manage a bookstore's inventory system. The class should support the following operations:\n\n- `add_book(title, author, quantity)`: Adds a new book to the inventory or updates the quantity if the book already exists.\n- `remove_book(title)`: Removes a book from the inventory by its title.\n- `update_quantity(title, quantity)`: Updates the quantity of an existing book in the inventory.\n- `get_stock_level(title)`: Returns the current stock level of a book by its title.\n- `list_books()`: Lists all books in the inventory with their details.\n\n**Input/Output Specification:**\n\n- The input will be a series of commands to be executed on the `BookInventory` class.\n- Each command will be a string in the format: `operation title [author] [quantity]`.\n- The `operation` can be one of `add_book`, `remove_book`, `update_quantity`, `get_stock_level`, or `list_books`.\n- For `add_book` and `update_quantity`, the `author` and `quantity` fields are required.\n- For `remove_book` and `get_stock_level`, only the `title` field is required.\n- For `list_books`, no additional fields are required.\n- The output should be the result of each command, if applicable.\n\n**Sample Input:**\n```\nadd_book The Great Gatsby F. Scott Fitzgerald 5\nadd_book 1984 George Orwell 3\nupdate_quantity The Great Gatsby 2\nget_stock_level 1984\nlist_books\nremove_book The Great Gatsby\nlist_books\n```\n\n**Sample Output:**\n```\n3\nTitle: 1984, Author: George Orwell, Quantity: 3\nTitle: The Great Gatsby, Author: F. Scott Fitzgerald, Quantity: 2\nTitle: 1984, Author: George Orwell, Quantity: 3\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert BookInventory().list_books() is None\n\ndef test_1():\n assert BookInventory().get_stock_level(\"NonExistentBook\") == 0\n"
}
},
"008404d6679f9835672da84cae7b408db17a7970a246e7950105cb0345d36ebd": {
"task_hash": "008404d6679f9835672da84cae7b408db17a7970a246e7950105cb0345d36ebd",
"instruction": "You are tasked with implementing a Binary Search Tree (BST) class in Python. Your BST class should support the following operations:\n\n- `insert(value)`: Inserts a new node with the specified value into the BST.\n- `delete(value)`: Deletes the node with the specified value from the BST.\n- `search(value)`: Returns `True` if the value exists in the BST, otherwise returns `False`.\n- `inorder_traversal()`: Returns a list of all values in the BST in sorted order.\n\n**Input:**\n- A series of operations on the BST. Each operation is one of the following:\n - `insert <value>`: Insert the value into the BST.\n - `delete <value>`: Delete the value from the BST.\n - `search <value>`: Search for the value in the BST.\n - `inorder`: Perform an inorder traversal of the BST.\n\n**Output:**\n- For each `search` operation, output `True` if the value is found, otherwise `False`.\n- For each `inorder` operation, output the list of values in sorted order.\n\n**Sample Input:**\n```\ninsert 10\ninsert 5\ninsert 15\nsearch 5\nsearch 20\ninorder\ndelete 5\ninorder\n```\n\n**Sample Output:**\n```\nTrue\nFalse\n[5, 10, 15]\n[10, 15]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert BinarySearchTree().inorder_traversal() == []\n\ndef test_1():\n assert BinarySearchTree().search(10) == False\n"
}
},
"008477e090ce162f57174529100973fe41779d7427d8902da7e4f038e186606e": {
"task_hash": "008477e090ce162f57174529100973fe41779d7427d8902da7e4f038e186606e",
"instruction": "Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. The lowest common ancestor is defined between two nodes `p` and `q` as the lowest node in T that has both `p` and `q` as descendants (where we allow a node to be a descendant of itself). You may assume that both `p` and `q` exist in the BST.\n\nWrite a function:\n\n```python\ndef lowestCommonAncestor(root: TreeNode, p: TreeNode, q: TreeNode) -> TreeNode:\n```\n\n**Custom Testing:**\n- For the input, you should provide the entire BST traversed in level-order format (e.g., `[6, 2, 8, 0, 4, 7, 9, null, null, 3, 5]`) and the values of the two nodes `p` and `q`.\n- The output will be the value of the LCA node.",
"tests": {
"test_solution.py": "import pytest\nfrom solution import TreeNode, lowestCommonAncestor\n\ndef build_bst_from_level_order(level_order):\n if not level_order:\n return None\n root = TreeNode(level_order[0])\n queue = [root]\n i = 1\n while i < len(level_order):\n current = queue.pop(0)\n if level_order[i] is not None:\n current.left = TreeNode(level_order[i])\n queue.append(current.left)\n i += 1\n if i < len(level_order) and level_order[i] is not None:\n current.right = TreeNode(level_order[i])\n queue.append(current.right)\n i += 1\n return root\n\n@pytest.fixture\ndef bst1():\n level_order = [6, 2, 8, 0, 4, 7, 9, None, None, 3, 5]\n root = build_bst_from_level_order(level_order)\n p = TreeNode(2)\n q = TreeNode(8)\n return root, p, q, 6\n\n@pytest.fixture\ndef bst2():\n level_order = [6, 2, 8, 0, 4, 7, 9, None, None, 3, 5]\n root = build_bst_from_level_order(level_order)\n p = TreeNode(2)\n q = TreeNode(4)\n return root, p, q, 2\n\n@pytest.fixture\ndef bst3():\n level_order = [6, 2, 8, 0, 4, 7, 9, None, None, 3, 5]\n root = build_bst_from_level_order(level_order)\n p = TreeNode(3)\n q = TreeNode(5)\n return root, p, q, 4\n\ndef test_lowest_common_ancestor_bst1(bst1):\n root, p, q, expected = bst1\n assert lowestCommonAncestor(root, p, q).val == expected\n\ndef test_lowest_common_ancestor_bst2(bst2):\n root, p, q, expected = bst2\n assert lowestCommonAncestor(root, p, q).val == expected\n\ndef test_lowest_common_ancestor_bst3(bst3):\n root, p, q, expected = bst3\n assert lowestCommonAncestor(root, p, q).val == expected\n"
}
},
"00895238b3e9d236b93c438e2b0c304c7a89d383cdd0a9b593ba144b6c1018c7": {
"task_hash": "00895238b3e9d236b93c438e2b0c304c7a89d383cdd0a9b593ba144b6c1018c7",
"instruction": "You are given a string `s`. Implement a function `reverse_string` that returns the reversed version of `s` if `s` consists solely of alphabetic characters. If `s` contains any non-alphabetic characters, return `s` unchanged. \n\n**Constraints:**\n- The length of the string `s` will be between 1 and 100, inclusive.\n\n**Sample Input and Output:**\n- Input: `\"hello\"`\n - Output: `\"olleh\"`\n- Input: `\"hello123\"`\n - Output: `\"hello123\"`\n- Input: `\"hello!\"`\n - Output: `\"hello!\"`",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert reverse_string(\"hello\") == \"olleh\"\n\ndef test_1():\n assert reverse_string(\"world\") == \"dlrow\"\n\ndef test_2():\n assert reverse_string(\"Python\") == \"nohtyP\"\n\ndef test_3():\n assert reverse_string(\"hello123\") == \"hello123\"\n\ndef test_4():\n assert reverse_string(\"hello!\") == \"hello!\"\n\ndef test_5():\n assert reverse_string(\"abcXYZ\") == \"ZYXcba\"\n\ndef test_6():\n assert reverse_string(\"12345\") == \"12345\"\n\ndef test_7():\n assert reverse_string(\"!@#$%\") == \"!@#$%\"\n\ndef test_8():\n assert reverse_string(\"a1b2c3\") == \"a1b2c3\"\n\ndef test_9():\n assert reverse_string(\"A!b@c#\") == \"A!b@c#\"\n"
}
},
"00ca6d0ee8be7b77c4d69b91145d33637e649d1bd3166acd42590d65247d6a79": {
"task_hash": "00ca6d0ee8be7b77c4d69b91145d33637e649d1bd3166acd42590d65247d6a79",
"instruction": "You are given an array of integers. Your task is to implement the insertion sort algorithm to sort the array in non-decreasing order. Write a function named `insertion_sort` that takes a list of integers as input and returns the sorted list.\n\n**Sample Input:**\n```\n[12, 11, 13, 5, 6]\n```\n\n**Sample Output:**\n```\n[5, 6, 11, 12, 13]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert insertion_sort([5, 2, 9, 1, 5, 6]) == [1, 2, 5, 5, 6, 9]\n\ndef test_1():\n assert insertion_sort([12, 11, 13, 5, 6]) == [5, 6, 11, 12, 13]\n\ndef test_2():\n assert insertion_sort([1, 2, 3, 4, 5]) == [1, 2, 3, 4, 5]\n\ndef test_3():\n assert insertion_sort([5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5]\n\ndef test_4():\n assert insertion_sort([]) == []\n\ndef test_5():\n assert insertion_sort([1]) == [1]\n\ndef test_6():\n assert insertion_sort([3, 3, 3, 3, 3]) == [3, 3, 3, 3, 3]\n\ndef test_7():\n assert insertion_sort([10, -1, 2, 5]) == [-1, 2, 5, 10]\n\ndef test_8():\n assert insertion_sort([0, 0, 0, 0, 0]) == [0, 0, 0, 0, 0]\n\ndef test_9():\n assert insertion_sort([7, 8, 5, 2, 9, 1, 3]) == [1, 2, 3, 5, 7, 8, 9]\n"
}
},
"00f96d48fcc00b0ae4540d2e3bfca1230dd37f261c43cb8958f40ed8b799e919": {
"task_hash": "00f96d48fcc00b0ae4540d2e3bfca1230dd37f261c43cb8958f40ed8b799e919",
"instruction": "You are given an integer array `arr` and an integer `k`. Implement the `WindowMax` class that maintains the maximum values of a sliding window of size `k` over the elements of `arr`. The class should support the following methods:\n\n- `WindowMax(int[] arr, int k)` Initializes the object with the integer array `arr` and window size `k`.\n- `int[] getMax()` Returns an array containing the maximum values of each sliding window of size `k` in the array `arr`.\n\nThe `getMax()` method returns an array where each element corresponds to the maximum value of the respective sliding window of size `k` as it moves from the beginning to the end of `arr`. If `k` is greater than the length of `arr`, return an empty array.",
"tests": {
"test_solution.py": "from solution import WindowMax\n\ndef test_window_max():\n wm = WindowMax([1,3,-1,-3,5,3,6,7], 3)\n assert wm.getMax() == [3, 3, 5, 5, 6, 7]\n\ndef test_window_max_single():\n wm = WindowMax([5], 1)\n assert wm.getMax() == [5]\n\ndef test_window_max_k_greater_than_length():\n wm = WindowMax([1, 2, 3], 5)\n assert wm.getMax() == []\n\ndef test_window_max_k_equals_length():\n wm = WindowMax([1, 3, 5, 2, 8], 5)\n assert wm.getMax() == [8]\n\ndef test_window_max_all_same_elements():\n wm = WindowMax([1, 1, 1, 1, 1], 3)\n assert wm.getMax() == [1, 1, 1]\n\ndef test_window_max_varying_k():\n wm = WindowMax([4, 2, 12, 3, 8, 6, 7], 4)\n assert wm.getMax() == [12, 12, 12, 8]\n"
}
},
"00fc2024e860f754c712f2b9d036eb04cd77d2a91922d28621effc4942dd5c79": {
"task_hash": "00fc2024e860f754c712f2b9d036eb04cd77d2a91922d28621effc4942dd5c79",
"instruction": "You are given a string `s` representing a sentence and an integer `k`. You need to truncate the sentence such that it contains only the first `k` words. Return the truncated sentence.\n\nA word is defined as a sequence of non-space characters. Words in the sentence are separated by a single space. There are no leading or trailing spaces in the sentence.\n\nFor example, given the input `s = \"Hello how are you Contestant\"` and `k = 4`, the output should be `\"Hello how are you\"`.",
"tests": {
"test_solution.py": "from solution import truncate_sentence\n\ndef test_truncate_sentence():\n assert truncate_sentence(\"Hello how are you Contestant\", 4) == \"Hello how are you\"\n assert truncate_sentence(\"What is the solution to this problem\", 4) == \"What is the solution\"\n assert truncate_sentence(\"The quick brown fox jumps\", 3) == \"The quick brown\"\n assert truncate_sentence(\"Keep calm and carry on\", 2) == \"Keep calm\"\n assert truncate_sentence(\"A B C D E\", 1) == \"A\"\n assert truncate_sentence(\"OneWord\", 1) == \"OneWord\"\n assert truncate_sentence(\"Repeat repeat repeat\", 3) == \"Repeat repeat repeat\"\n"
}
},
"010a36dc501ff54660c7d7a8c50ea46ef6c22f3987a1e339785e3f952d3ed370": {
"task_hash": "010a36dc501ff54660c7d7a8c50ea46ef6c22f3987a1e339785e3f952d3ed370",
"instruction": "You are tasked with implementing a recursive function named `factorial` that calculates the factorial of a given non-negative integer. The factorial of a non-negative integer \\( n \\) is defined as the product of all positive integers less than or equal to \\( n \\). Your function should return the factorial of the input number.\n\n**Input:**\n- A single non-negative integer \\( n \\) (where \\( 0 \\leq n \\leq 20 \\)).\n\n**Output:**\n- A single integer representing the factorial of \\( n \\).\n\n**Sample Input:**\n```\n5\n```\n\n**Sample Output:**\n```\n120\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert factorial(0) == 1\n\ndef test_1():\n assert factorial(1) == 1\n\ndef test_2():\n assert factorial(2) == 2\n\ndef test_3():\n assert factorial(3) == 6\n\ndef test_4():\n assert factorial(4) == 24\n\ndef test_5():\n assert factorial(5) == 120\n\ndef test_6():\n assert factorial(6) == 720\n\ndef test_7():\n assert factorial(7) == 5040\n\ndef test_8():\n assert factorial(10) == 3628800\n\ndef test_9():\n assert factorial(12) == 479001600\n"
}
},
"01194e0651b2cae252996693da19cd0822c18b488f5dd1f0c3a72777ba8e8285": {
"task_hash": "01194e0651b2cae252996693da19cd0822c18b488f5dd1f0c3a72777ba8e8285",
"instruction": "You are tasked with implementing a method in the `Rectangle` class to calculate the length of its diagonal. The `Rectangle` class is defined with an initializer that takes `width` and `height` as parameters. You must add a method named `diagonal` that computes the diagonal using the formula `sqrt(width^2 + height^2)`. Use the `sqrt` function from the `math` module for the calculation.\n\n**Sample Input:**\n```python\nrect = Rectangle(3, 4)\nprint(rect.diagonal())\n```\n\n**Sample Output:**\n```\n5.0\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert Rectangle(3, 4).diagonal() == 5.0\n\ndef test_1():\n assert Rectangle(1, 1).diagonal() == math.sqrt(2)\n\ndef test_2():\n assert Rectangle(0, 0).diagonal() == 0.0\n\ndef test_3():\n assert Rectangle(5, 12).diagonal() == 13.0\n\ndef test_4():\n assert Rectangle(8, 15).diagonal() == 17.0\n\ndef test_5():\n assert Rectangle(7, 24).diagonal() == 25.0\n\ndef test_6():\n assert Rectangle(10, 24).diagonal() == math.sqrt(676)\n\ndef test_7():\n assert Rectangle(1, 0).diagonal() == 1.0\n\ndef test_8():\n assert Rectangle(0, 1).diagonal() == 1.0\n\ndef test_9():\n assert Rectangle(100, 100).diagonal() == 100 * math.sqrt(2)\n"
}
},
"011c69f628d78781dfd8b963245eecff3aec75ce1a3010f9401f3cf3f3fc27eb": {
"task_hash": "011c69f628d78781dfd8b963245eecff3aec75ce1a3010f9401f3cf3f3fc27eb",
"instruction": "You are given a list of integers `nums`. Your task is to implement a function `filter_primes(nums)` that returns a new list containing only the prime numbers from the original list.\n\n**Input:**\n- A list of integers `nums` (1 ≤ len(nums) ≤ 10^3), where each integer `num` satisfies -10^6 ≤ num ≤ 10^6.\n\n**Output:**\n- A list of integers representing the prime numbers from the input list.\n\n**Sample Input:**\n```\n[3, 4, 7, 10, 11, 13, 15, 17, 20]\n```\n\n**Sample Output:**\n```\n[3, 7, 11, 13, 17]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert filter_primes([2, 3, 5, 7, 11, 13, 17, 19]) == [2, 3, 5, 7, 11, 13, 17, 19]\n\ndef test_1():\n assert filter_primes([4, 6, 8, 9, 10, 12, 14, 15]) == []\n\ndef test_2():\n assert filter_primes([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) == [2, 3, 5, 7]\n\ndef test_3():\n assert filter_primes([29, 31, 37, 41, 43, 47]) == [29, 31, 37, 41, 43, 47]\n\ndef test_4():\n assert filter_primes([0, 1, 4, 6, 8, 9, 10]) == []\n\ndef test_5():\n assert filter_primes([11, 13, 17, 19, 23, 29, 31]) == [11, 13, 17, 19, 23, 29, 31]\n\ndef test_6():\n assert filter_primes([33, 35, 37, 39, 41, 43, 47, 49]) == [37, 41, 43, 47]\n\ndef test_7():\n assert filter_primes([]) == []\n\ndef test_8():\n assert filter_primes([2]) == [2]\n\ndef test_9():\n assert filter_primes([15, 21, 22, 25, 27, 28]) == []\n"
}
},
"012c8c3c5ad8da482d9b3682f727a70962db744492392efd3d06cb1ea90a2eb0": {
"task_hash": "012c8c3c5ad8da482d9b3682f727a70962db744492392efd3d06cb1ea90a2eb0",
"instruction": "You are given a 2D integer matrix `matrix` where rows are sorted in ascending order and columns are sorted in ascending order. Your task is to find an integer `target`. If `target` is found in the matrix, return its position as a tuple `(row_index, column_index)`. If `target` is not found, return `(-1, -1)`. The matrix may contain duplicated elements. Return the position of the first occurrence of the target.",
"tests": {
"test_solution.py": "from solution import search_sorted_matrix\n\ndef test_search_target_found():\n matrix = [\n [1, 2, 3],\n [4, 5, 6],\n [7, 8, 9]\n ]\n target = 5\n assert search_sorted_matrix(matrix, target) == (1, 1)\n\ndef test_search_target_not_found():\n matrix = [\n [1, 2, 3],\n [4, 5, 6],\n [7, 8, 9]\n ]\n target = 10\n assert search_sorted_matrix(matrix, target) == (-1, -1)\n\ndef test_search_empty_matrix():\n matrix = []\n target = 1\n assert search_sorted_matrix(matrix, target) == (-1, -1)\n\ndef test_search_row():\n matrix = [\n []\n ]\n target = 1\n assert search_sorted_matrix(matrix, target) == (-1, -1)\n\ndef test_search_single_element_matrix_found():\n matrix = [\n [1]\n ]\n target = 1\n assert search_sorted_matrix(matrix, target) == (0, 0)\n\ndef test_search_single_element_matrix_not_found():\n matrix = [\n [1]\n ]\n target = 2\n assert search_sorted_matrix(matrix, target) == (-1, -1)\n\ndef test_search_with_duplicates():\n matrix = [\n [1, 2, 2],\n [3, 4, 5],\n [6, 6, 6]\n ]\n target = 2\n assert search_sorted_matrix(matrix, target) == (0, 1)\n \ndef test_search_target_at_first_position():\n matrix = [\n [1, 3, 5],\n [7, 9, 11],\n [13, 15, 17]\n ]\n target = 1\n assert search_sorted_matrix(matrix, target) == (0, 0)\n\ndef test_search_target_at_last_position():\n matrix = [\n [1, 3, 5],\n [7, 9, 11],\n [13, 15, 17]\n ]\n target = 17\n assert search_sorted_matrix(matrix, target) == (2, 2)\n\ndef test_search_larger_matrix():\n matrix = [\n [1, 4, 7, 11, 15],\n [2, 5, 8, 12, 19],\n [3, 6, 9, 16, 22],\n [10, 13, 14, 17, 24],\n [18, 21, 23, 26, 30]\n ]\n target = 5\n assert search_sorted_matrix(matrix, target) == (1, 1)\n \n target = 20\n assert search_sorted_matrix(matrix, target) == (-1, -1)\n"
}
},
"013cedded11cf346f81d1372bc7ef291870bb8e8b1be6a5aab2e19751f6de867": {
"task_hash": "013cedded11cf346f81d1372bc7ef291870bb8e8b1be6a5aab2e19751f6de867",
"instruction": "You are given an `n x n` matrix representing a 2D grid of rooms, where `-1` represents a wall or an obstacle, `0` represents a gate, and `inf` represents an empty room. Fill each empty room with the distance to its nearest gate. If it is impossible to reach a gate, it should be left as `inf`. The distance is defined as the number of steps you must take to reach the gate.\n\nWrite a function that updates the given 2D grid `rooms` with the distances to the nearest gate. You may assume `inf` is a large enough number such that it represents infinity.",
"tests": {
"test_solution.py": "from solution import walls_and_gates\n\ndef generate_infinite_grid(rows, cols):\n return [[float('inf')] * cols for _ in range(rows)]\n\ndef test_walls_and_gates_example_case():\n rooms = [\n [float('inf'), -1, 0, float('inf')],\n [float('inf'), float('inf'), float('inf'), -1],\n [float('inf'), -1, float('inf'), -1],\n [0, -1, float('inf'), float('inf')]\n ]\n walls_and_gates(rooms)\n assert rooms == [\n [3, -1, 0, 1],\n [2, 2, 1, -1],\n [1, -1, 2, -1],\n [0, -1, 3, 4]\n ]\n\ndef test_walls_and_gates_no_gate():\n rooms = generate_infinite_grid(3, 3)\n walls_and_gates(rooms)\n assert rooms == generate_infinite_grid(3, 3)\n\ndef test_walls_and_gates_all_gates():\n rooms = [\n [0, 0],\n [0, 0]\n ]\n walls_and_gates(rooms)\n assert rooms == [\n [0, 0],\n [0, 0]\n ]\n\ndef test_walls_and_gates_with_walls():\n rooms = [\n [float('inf'), -1],\n [-1, 0]\n ]\n walls_and_gates(rooms)\n assert rooms == [\n [float('inf'), -1],\n [-1, 0]\n ]\n\ndef test_walls_and_gates_large_grid():\n rooms = generate_infinite_grid(5, 5)\n rooms[2][2] = 0\n walls_and_gates(rooms)\n assert rooms == [\n [4, 3, 2, 3, 4],\n [3, 2, 1, 2, 3],\n [2, 1, 0, 1, 2],\n [3, 2, 1, 2, 3],\n [4, 3, 2, 3, 4]\n ]\n"
}
},
"0141108aac53fd3cd4ea9fcc3450cce2c034e44ac93135d0a60fd4d2c0fde3da": {
"task_hash": "0141108aac53fd3cd4ea9fcc3450cce2c034e44ac93135d0a60fd4d2c0fde3da",
"instruction": "You are given a temperature in Fahrenheit and your task is to write a function that converts this temperature to Celsius. The conversion formula is `(Fahrenheit - 32) * 5/9`. Your function should be named `convert_to_celsius` and take a single argument, the temperature in Fahrenheit. Return the equivalent temperature in Celsius as a floating-point number.\n\n**Sample Input and Output:**\n- Input: `32`\n- Output: `0.0`\n- Input: `212`\n- Output: `100.0`\n- Input: `-40`\n- Output: `-40.0`",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert convert_to_celsius(0) == -17.77777777777778\n\ndef test_1():\n assert convert_to_celsius(100) == 37.77777777777778\n\ndef test_2():\n assert convert_to_celsius(200) == 93.33333333333333\n\ndef test_3():\n assert convert_to_celsius(-100) == -73.33333333333333\n\ndef test_4():\n assert convert_to_celsius(392) == 200\n\ndef test_5():\n assert convert_to_celsius(68) == 20\n\ndef test_6():\n assert convert_to_celsius(14) == -10\n\ndef test_7():\n assert convert_to_celsius(50) == 10\n\ndef test_8():\n assert convert_to_celsius(86) == 30\n\ndef test_9():\n assert convert_to_celsius(180) == 82.22222222222223\n"
}
},
"0182009a08afe8581ffbaa9e59e57bc497ed0522b6d49682d7e7a8615aba4ead": {
"task_hash": "0182009a08afe8581ffbaa9e59e57bc497ed0522b6d49682d7e7a8615aba4ead",
"instruction": "You are given a list of strings containing alphanumeric characters. Your task is to write a function `sort_alphanumeric` that sorts these strings in alphanumeric order. Alphanumeric sorting means that numerical parts of the strings should be compared numerically, not lexicographically. For example, \"item10\" should come after \"item2\".\n\n**Input:**\n- A list of strings `strings` (1 ≤ len(strings) ≤ 1000), where each string consists of lowercase English letters and digits, and has a length between 1 and 20.\n\n**Output:**\n- Return a list of strings sorted in alphanumeric order.\n\n**Sample Input:**\n```python\n[\"item10\", \"item2\", \"item1\", \"item20\"]\n```\n\n**Sample Output:**\n```python\n[\"item1\", \"item2\", \"item10\", \"item20\"]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert sort_alphanumeric([\"item10\", \"item2\", \"item1\", \"item20\"]) == [\"item1\", \"item2\", \"item10\", \"item20\"]\n\ndef test_1():\n assert sort_alphanumeric([\"file1\", \"file10\", \"file2\", \"file20\"]) == [\"file1\", \"file2\", \"file10\", \"file20\"]\n\ndef test_2():\n assert sort_alphanumeric([\"a1\", \"a10\", \"a2\", \"a20\"]) == [\"a1\", \"a2\", \"a10\", \"a20\"]\n\ndef test_3():\n assert sort_alphanumeric([\"abc1\", \"abc10\", \"abc2\", \"abc20\"]) == [\"abc1\", \"abc2\", \"abc10\", \"abc20\"]\n\ndef test_4():\n assert sort_alphanumeric([\"z9\", \"z1\", \"z10\", \"z2\"]) == [\"z1\", \"z2\", \"z9\", \"z10\"]\n\ndef test_5():\n assert sort_alphanumeric([\"item1\", \"item1\", \"item2\", \"item2\"]) == [\"item1\", \"item1\", \"item2\", \"item2\"]\n\ndef test_6():\n assert sort_alphanumeric([\"1item\", \"10item\", \"2item\", \"20item\"]) == [\"1item\", \"2item\", \"10item\", \"20item\"]\n\ndef test_7():\n assert sort_alphanumeric([\"item01\", \"item02\", \"item10\", \"item20\"]) == [\"item01\", \"item02\", \"item10\", \"item20\"]\n\ndef test_8():\n assert sort_alphanumeric([\"item1a\", \"item10a\", \"item2a\", \"item20a\"]) == [\"item1a\", \"item2a\", \"item10a\", \"item20a\"]\n\ndef test_9():\n assert sort_alphanumeric([]) == []\n"
}
},
"018261665767a4dae350c3d07af4cdc553c0a3e96cec3a4a8ce4be5a20fe282f": {
"task_hash": "018261665767a4dae350c3d07af4cdc553c0a3e96cec3a4a8ce4be5a20fe282f",
"instruction": "### Problem Statement: Find Missing Integer\n\nYou are given an array containing `n` distinct integers ranging from `1` to `n+1`. This means the array is a permutation of the numbers from `1` to `n+1` with one number missing. Write a function to find and return the missing integer.\n\nYour task is to implement the function `find_missing_integer(arr)` which takes an array of integers `arr` as input and returns the missing integer.\n\nHere is an example:\n\n```\nfind_missing_integer([1, 2, 4, 6, 3, 7, 8]) // returns 5\nfind_missing_integer([2, 3, 1, 5]) // returns 4\n```\n\n### Notes:\n- The input consists of an array `arr` containing `n` unique integers from `1` to `n+1`.\n- The length of the given array will be `n` where `1 <= n <= 10^6`.\n- The array will contain only positive integers.\n\n### Constraints:\n- The solution should be optimized for time complexity.\n- Try to solve the problem using a mathematical formula or other optimization techniques.\n\n### Implementation:\nImplement the function as follows:\n\n```python\ndef find_missing_integer(arr):\n # Your code here\n```\n\n### Example:\n\n```python\nfind_missing_integer([1, 2, 4, 6, 3, 7, 8]) # returns 5\nfind_missing_integer([2, 3, 1, 5]) # returns 4\n```",
"tests": {
"test_solution.py": "import pytest\nfrom solution import find_missing_integer\n\ndef test_missing_integer_middle():\n assert find_missing_integer([1, 2, 4, 6, 3, 7, 8]) == 5\n\ndef test_missing_integer_end():\n assert find_missing_integer([2, 3, 1, 5]) == 4\n\ndef test_missing_integer_start():\n assert find_missing_integer([2, 3, 4, 5]) == 1\n\ndef test_missing_integer_large():\n n = 10**6\n arr = list(range(1, n + 2))\n arr.remove(765432)\n assert find_missing_integer(arr) == 765432\n\ndef test_missing_integer_minimal_case():\n assert find_missing_integer([1]) == 2\n\ndef test_missing_integer_another_case():\n assert find_missing_integer([2]) == 1\n"
}
},
"01876c1ac9a40e52f23a5aa9ac962f97232117ab36fb9a88396a4adb370061db": {
"task_hash": "01876c1ac9a40e52f23a5aa9ac962f97232117ab36fb9a88396a4adb370061db",
"instruction": "## Generator Functions (Python only)\n\nIn this lesson, we'll learn about generator functions. Generator functions are a special kind of function in Python that allow you to iterate through a sequence of values without storing them all in memory. This can be especially useful when working with large datasets or infinite sequences.\n\n### Basic Generator Function\nA generator function is defined using the `def` keyword like a normal function, but instead of using `return` to return a value, it uses the `yield` keyword. Each time the generator's `__next__()` method (typically accessed by the `next()` built-in function) is called, the generator resumes where it left off and continues execution until it encounters another `yield` statement.\n\nExample:\n```python\ndef simple_generator():\n yield 1\n yield 2\n yield 3\n\ngen = simple_generator()\nprint(next(gen)) # Output: 1\nprint(next(gen)) # Output: 2\nprint(next(gen)) # Output: 3\n```\n\n### Using Generators for Large Datasets\nGenerators can be particularly useful when dealing with large or even infinite datasets. For example, we can create a generator that yields an infinite sequence of natural numbers:\n\n```python\ndef infinite_sequence():\n num = 0\n while True:\n yield num\n num += 1\n\ngen = infinite_sequence()\nfor i in range(5):\n print(next(gen)) # Output: 0, 1, 2, 3, 4\n```\n\n### Generator Expressions\nPython also supports generator expressions, which are similar to list comprehensions but use parentheses instead of square brackets. Generator expressions provide a concise way to create generators.\n\nExample:\n```python\ngen_expr = (x * x for x in range(5))\nfor val in gen_expr:\n print(val) # Output: 0, 1, 4, 9, 16\n```\n\n## Task\n\nCreate a generator function `powers_of_two()` that yields the powers of two up to a given number `n` (inclusive). The function should be able to handle cases where `n` is a large number efficiently by generating values one at a time. You should also create a test function that demonstrates the generator in action by printing the first 10 powers of two and then manually iterating through the next few values.\n\nExample:\n```python\ndef test_powers_of_two():\n gen = powers_of_two(20)\n for _ in range(10):\n print(next(gen)) # Output: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512\n for _ in range(5):\n print(next(gen)) # Output: 1024, 2048, 4096, 8192, 16384\n```\n\n### Requirements\n- Use the `yield` keyword to create the generator function.\n- Ensure the generator yields the correct sequence of powers of two.\n- Implement a test function that demonstrates the generator's usage.\n\nRemember to follow the Pythonic conventions and best practices when writing your code.",
"tests": {
"test_solution.py": "from solution import powers_of_two\n\ndef test_powers_of_two():\n gen = powers_of_two(20)\n \n expected_first_ten = [1, 2, 4, 8, 16, 32, 64, 128, 256, 512]\n for expected_value in expected_first_ten:\n assert next(gen) == expected_value\n \n expected_next_five = [1024, 2048, 4096, 8192, 16384]\n for expected_value in expected_next_five:\n assert next(gen) == expected_value\n\ndef test_powers_of_two_single_value():\n gen = powers_of_two(0)\n assert next(gen) == 1\n try:\n next(gen)\n assert False, \"Expected StopIteration\"\n except StopIteration:\n pass\n\ndef test_powers_of_two_exceeds_limit():\n gen = powers_of_two(3)\n assert next(gen) == 1\n assert next(gen) == 2\n assert next(gen) == 4\n assert next(gen) == 8\n try:\n next(gen)\n assert False, \"Expected StopIteration\"\n except StopIteration:\n pass\n"
}
},
"018d190864a5081ac6d8a84518852d7335a4c8c7d477dad2abb85abc1cdca231": {
"task_hash": "018d190864a5081ac6d8a84518852d7335a4c8c7d477dad2abb85abc1cdca231",
"instruction": "You are given an array of integers `nums` and a positive integer `k`. Your task is to implement a function that returns the `k` smallest elements from the array `nums`. You are **not** allowed to use any built-in sorting functions or additional data structures. You may only use the provided array and basic Python functions that do not involve sorting.\n\n**Constraints:**\n- `1 <= k <= len(nums) <= 1000`\n- `-1000 <= nums[i] <= 1000`\n\n**Sample Input:**\n```\nnums = [7, 10, 4, 3, 20, 15]\nk = 3\n```\n\n**Sample Output:**\n```\n[3, 4, 7]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert k_smallest_elements([7, 10, 4, 3, 20, 15], 3) == [3, 4, 7]\n\ndef test_1():\n assert k_smallest_elements([1, 2, 3, 4, 5], 2) == [1, 2]\n\ndef test_2():\n assert k_smallest_elements([5, 4, 3, 2, 1], 4) == [1, 2, 3, 4]\n\ndef test_3():\n assert k_smallest_elements([10, 9, 8, 7, 6, 5, 4, 3, 2, 1], 5) == [1, 2, 3, 4, 5]\n\ndef test_4():\n assert k_smallest_elements([1, 1, 1, 1, 1], 3) == [1, 1, 1]\n\ndef test_5():\n assert k_smallest_elements([100, 200, 300, 400, 500], 0) == []\n\ndef test_6():\n assert k_smallest_elements([5], 1) == [5]\n\ndef test_7():\n assert k_smallest_elements([3, 1, 2], 2) == [1, 2]\n\ndef test_8():\n assert k_smallest_elements([10, 22, 5, 75, 65, 80], 4) == [5, 10, 22, 65]\n\ndef test_9():\n assert k_smallest_elements([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 10) == [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n"
}
},
"0198927e55da964f83654e445d6b18875dfa6135dab03b045d081cb0df06c9c2": {
"task_hash": "0198927e55da964f83654e445d6b18875dfa6135dab03b045d081cb0df06c9c2",
"instruction": "You are given a string `text` consisting of words separated by spaces and an integer `n`. Your task is to implement a function `generate_ngrams` that returns a list of all possible n-grams from the input text. An n-gram is defined as a contiguous sequence of `n` words. Assume that the input text is preprocessed and does not contain any punctuation or special characters.\n\n**Input:**\n- A string `text` (1 ≤ |text| ≤ 1000) consisting of lowercase English letters and spaces.\n- An integer `n` (1 ≤ n ≤ number of words in `text`).\n\n**Output:**\n- A list of lists, where each inner list represents an n-gram.\n\n**Sample Input:**\n```\ntext = \"the quick brown fox jumps over the lazy dog\"\nn = 3\n```\n\n**Sample Output:**\n```\n[['the', 'quick', 'brown'], ['quick', 'brown', 'fox'], ['brown', 'fox', 'jumps'], ['fox', 'jumps', 'over'], ['jumps', 'over', 'the'], ['over', 'the', 'lazy'], ['the', 'lazy', 'dog']]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert generate_ngrams(\"the quick brown fox jumps over the lazy dog\", 3) == [['the', 'quick', 'brown'], ['quick', 'brown', 'fox'], ['brown', 'fox', 'jumps'], ['fox', 'jumps', 'over'], ['jumps', 'over', 'the'], ['over', 'the', 'lazy'], ['the', 'lazy', 'dog']]\n\ndef test_1():\n assert generate_ngrams(\"hello world\", 2) == [['hello', 'world']]\n\ndef test_2():\n assert generate_ngrams(\"a b c d e\", 1) == [['a'], ['b'], ['c'], ['d'], ['e']]\n\ndef test_3():\n assert generate_ngrams(\"one two three\", 4) == []\n\ndef test_4():\n assert generate_ngrams(\"\", 2) == []\n\ndef test_5():\n assert generate_ngrams(\"single\", 1) == [['single']]\n\ndef test_6():\n assert generate_ngrams(\"repeat repeat repeat\", 2) == [['repeat', 'repeat'], ['repeat', 'repeat']]\n\ndef test_7():\n assert generate_ngrams(\"short text\", 3) == []\n\ndef test_8():\n assert generate_ngrams(\"another example here\", 3) == [['another', 'example', 'here']]\n\ndef test_9():\n assert generate_ngrams(\"ngrams are fun\", 2) == [['ngrams', 'are'], ['are', 'fun']]\n"
}
},
"01b61f104c62fdb5041a14a523b0cd72fbec35bdae9f7638e13ce6d4de050a92": {
"task_hash": "01b61f104c62fdb5041a14a523b0cd72fbec35bdae9f7638e13ce6d4de050a92",
"instruction": "In a programming competition, you are given the task to compute the nth Fibonacci number efficiently. The naive recursive approach has a time complexity of O(2^n), which is too slow for large values of n. Your job is to optimize the function using memoization to achieve a time complexity of O(n).\n\n**Input:**\n- An integer `n` (0 ≤ n ≤ 50), representing the position in the Fibonacci sequence.\n\n**Output:**\n- An integer, the nth Fibonacci number.\n\n**Sample Input:**\n```\n10\n```\n\n**Sample Output:**\n```\n55\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert fibonacci(0) == 0\n\ndef test_1():\n assert fibonacci(1) == 1\n\ndef test_2():\n assert fibonacci(2) == 1\n\ndef test_3():\n assert fibonacci(3) == 2\n\ndef test_4():\n assert fibonacci(4) == 3\n\ndef test_5():\n assert fibonacci(5) == 5\n\ndef test_6():\n assert fibonacci(10) == 55\n\ndef test_7():\n assert fibonacci(20) == 6765\n\ndef test_8():\n assert fibonacci(30) == 832040\n\ndef test_9():\n assert fibonacci(50) == 12586269025\n"
}
},
"01c96eeeb8227b55a6c4eca81b27ad4e4b4f1d1c736d405f8cf073fac4d0c4d8": {
"task_hash": "01c96eeeb8227b55a6c4eca81b27ad4e4b4f1d1c736d405f8cf073fac4d0c4d8",
"instruction": "You are given a grid representing a 2D map of water ('0') and land ('1'). An island is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are surrounded by water.\n\nWrite a function to count the number of islands. An island is defined as a maximal group of connected land cells.\n\nExample:\n\nInput:\n11110\n11010\n11000\n00000\nOutput: 1\n\nInput:\n11000\n11000\n00100\n00011\nOutput: 3",
"tests": {
"test_solution.py": "from solution import num_islands\n\ndef test_num_islands_single_island():\n grid = [\n [\"1\", \"1\", \"1\", \"1\", \"0\"],\n [\"1\", \"1\", \"0\", \"1\", \"0\"],\n [\"1\", \"1\", \"0\", \"0\", \"0\"],\n [\"0\", \"0\", \"0\", \"0\", \"0\"]\n ]\n assert num_islands(grid) == 1\n\ndef test_num_islands_multiple_islands():\n grid = [\n [\"1\", \"1\", \"0\", \"0\", \"0\"],\n [\"1\", \"1\", \"0\", \"0\", \"0\"],\n [\"0\", \"0\", \"1\", \"0\", \"0\"],\n [\"0\", \"0\", \"0\", \"1\", \"1\"]\n ]\n assert num_islands(grid) == 3\n\ndef test_num_islands_no_islands():\n grid = [\n [\"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"0\", \"0\", \"0\", \"0\", \"0\"],\n [\"0\", \"0\", \"0\", \"0\", \"0\"]\n ]\n assert num_islands(grid) == 0\n \ndef test_num_islands_all_land():\n grid = [\n [\"1\", \"1\", \"1\", \"1\", \"1\"],\n [\"1\", \"1\", \"1\", \"1\", \"1\"],\n [\"1\", \"1\", \"1\", \"1\", \"1\"]\n ]\n assert num_islands(grid) == 1\n\ndef test_num_islands_empty_grid():\n grid = []\n assert num_islands(grid) == 0\n\ndef test_num_islands_single_cell_island():\n grid = [[\"1\"]]\n assert num_islands(grid) == 1\n\ndef test_num_islands_single_cell_water():\n grid = [[\"0\"]]\n assert num_islands(grid) == 0\n"
}
},
"01d29dac9bd1a763a1a6d2e3c6e27a8f73bc20fa1143773190e9a01f8eb8a876": {
"task_hash": "01d29dac9bd1a763a1a6d2e3c6e27a8f73bc20fa1143773190e9a01f8eb8a876",
"instruction": "You are given two lists of integers, `list1` and `list2`. Your task is to write a function that returns a list containing all unique elements from both input lists. The order of elements in the output list does not matter.\n\n**Input:**\n- Two lists of integers, `list1` and `list2`.\n\n**Output:**\n- A list of integers containing all unique elements from `list1` and `list2`.\n\n**Sample Input:**\n- `list1 = [1, 2, 3]`\n- `list2 = [2, 3, 4]`\n\n**Sample Output:**\n- `[1, 2, 3, 4]` (Note: The order of elements in the output list may vary.)",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert set(unique_elements([1, 2, 3], [2, 3, 4])) == {1, 2, 3, 4}\n\ndef test_1():\n assert set(unique_elements([], [])) == set()\n\ndef test_2():\n assert set(unique_elements([1, 1, 1], [1, 1, 1])) == {1}\n\ndef test_3():\n assert set(unique_elements([1, 2, 3], [4, 5, 6])) == {1, 2, 3, 4, 5, 6}\n\ndef test_4():\n assert set(unique_elements([10, 20, 30], [30, 40, 50])) == {10, 20, 30, 40, 50}\n\ndef test_5():\n assert set(unique_elements([-1, -2, -3], [-3, -4, -5])) == {-1, -2, -3, -4, -5}\n\ndef test_6():\n assert set(unique_elements([0, 0, 0], [0, 0, 0])) == {0}\n\ndef test_7():\n assert set(unique_elements([1, 2, 3], [])) == {1, 2, 3}\n\ndef test_8():\n assert set(unique_elements([], [1, 2, 3])) == {1, 2, 3}\n\ndef test_9():\n assert set(unique_elements([1, 2, 3], [3, 2, 1])) == {1, 2, 3}\n"
}
},
"01eeaa74fc89700bf98c023cebd850771238978c8dba16684f0fc5e62c5f78dc": {
"task_hash": "01eeaa74fc89700bf98c023cebd850771238978c8dba16684f0fc5e62c5f78dc",
"instruction": "Implement a recursive function to compute the nth Fibonacci number. The Fibonacci sequence is defined as follows: F(1) = 0, F(2) = 1, and F(n) = F(n-1) + F(n-2) for n > 2. Your function should handle inputs where 1 ≤ n ≤ 40.\n\n**Sample Input:**\n```\n10\n```\n\n**Sample Output:**\n```\n34\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert fibonacci(1) == 0\n\ndef test_1():\n assert fibonacci(2) == 1\n\ndef test_2():\n assert fibonacci(3) == 1\n\ndef test_3():\n assert fibonacci(4) == 2\n\ndef test_4():\n assert fibonacci(5) == 3\n\ndef test_5():\n assert fibonacci(6) == 5\n\ndef test_6():\n assert fibonacci(7) == 8\n\ndef test_7():\n assert fibonacci(8) == 13\n\ndef test_8():\n assert fibonacci(9) == 21\n\ndef test_9():\n assert fibonacci(10) == 34\n"
}
},
"01fc771c75f20302ccebc0c7b8384cea3cf5f095e5fbabd4d43714aa37a8d5a8": {
"task_hash": "01fc771c75f20302ccebc0c7b8384cea3cf5f095e5fbabd4d43714aa37a8d5a8",
"instruction": "You are given a list of integers. Your task is to write a function that returns a new list containing only the unique elements from the original list, sorted in descending order. The function should be efficient and should not use any built-in sorting functions. \n\n**Input:**\n- A list of integers `input_list` (1 ≤ len(input_list) ≤ 10^5), where each integer is in the range [-10^9, 10^9].\n\n**Output:**\n- A list of unique integers sorted in descending order.\n\n**Sample Input:**\n```\n[4, 5, 6, 8, 3, 2, 3, 1, 2, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]\n```\n\n**Sample Output:**\n```\n[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert unique_sorted_descending([4, 5, 6, 8, 3, 2, 3, 1, 2, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]) == [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]\n\ndef test_1():\n assert unique_sorted_descending([1, 2, 3, 4, 5]) == [5, 4, 3, 2, 1]\n\ndef test_2():\n assert unique_sorted_descending([5, 4, 3, 2, 1]) == [5, 4, 3, 2, 1]\n\ndef test_3():\n assert unique_sorted_descending([10, 20, 20, 10, 30]) == [30, 20, 10]\n\ndef test_4():\n assert unique_sorted_descending([1, 1, 1, 1, 1]) == [1]\n\ndef test_5():\n assert unique_sorted_descending([]) == []\n\ndef test_6():\n assert unique_sorted_descending([100]) == [100]\n\ndef test_7():\n assert unique_sorted_descending([-1, -2, -3, -4, -5]) == [-1, -2, -3, -4, -5]\n\ndef test_8():\n assert unique_sorted_descending([0, 0, 0, 0, 0]) == [0]\n\ndef test_9():\n assert unique_sorted_descending([10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5]) == [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5]\n"
}
},
"0201efbc2955aa79fbf075ddd668e102a5f13f633362109bd167d212a28af3a7": {
"task_hash": "0201efbc2955aa79fbf075ddd668e102a5f13f633362109bd167d212a28af3a7",
"instruction": "You are given a binary tree with `n` nodes where each node has a unique value from `1` to `n`. Each node also has an additional pointer `random` which can point to any node in the tree or be null. Create a deep copy of the tree such that all the `random` pointers in the new tree point to the corresponding nodes as in the original tree. Write a function that takes the root of the original binary tree and returns the root of the deep copied tree.",
"tests": {
"test_solution.py": "from solution import TreeNode, deepcopy_tree\n\ndef test_deepcopy_tree():\n # Create a test tree:\n # 1\n # / \\\n # 2 3\n # / / \\\n # 4 5 6\n # random pointers: 4->6, 2->1, 5->3\n n4 = TreeNode(4)\n n5 = TreeNode(5)\n n6 = TreeNode(6)\n n2 = TreeNode(2)\n n3 = TreeNode(3)\n n1 = TreeNode(1)\n \n n1.left = n2\n n1.right = n3\n n2.left = n4\n n3.left = n5\n n3.right = n6\n \n n4.random = n6\n n2.random = n1\n n5.random = n3\n \n # Making a deep copy of the tree\n deep_copied_root = deepcopy_tree(n1)\n \n # Check if the deep copied tree matches the original structure and random pointers\n \n # Check root and its immediate children\n assert deep_copied_root.val == 1\n assert deep_copied_root.left.val == 2\n assert deep_copied_root.right.val == 3\n \n # Check the second level\n assert deep_copied_root.left.left.val == 4\n assert deep_copied_root.right.left.val == 5\n assert deep_copied_root.right.right.val == 6\n \n # Check random pointers\n assert deep_copied_root.left.left.random.val == 6 # 4->6\n assert deep_copied_root.left.random.val == 1 # 2->1\n assert deep_copied_root.right.left.random.val == 3 # 5->3\n\n # Ensure the nodes are distinct objects (not the same as in the original tree)\n assert deep_copied_root is not n1\n assert deep_copied_root.left is not n2\n assert deep_copied_root.right is not n3\n assert deep_copied_root.left.left is not n4\n assert deep_copied_root.right.left is not n5\n assert deep_copied_root.right.right is not n6\n\n # Check to ensure the random pointers point to the copied nodes\n assert deep_copied_root.left.left.random is deep_copied_root.right.right # 4 -> 6\n assert deep_copied_root.left.random is deep_copied_root # 2 -> 1\n assert deep_copied_root.right.left.random is deep_copied_root.right # 5 -> 3\n\ndef test_deepcopy_empty_tree():\n assert deepcopy_tree(None) == None\n"
}
},
"0206f73219aca895d1cdc5d714f6d74ee8293f8115904e24e7931ff7ff7b88a9": {
"task_hash": "0206f73219aca895d1cdc5d714f6d74ee8293f8115904e24e7931ff7ff7b88a9",
"instruction": "Given a string `s` containing only digits, return an array of all possible valid IP addresses that can be obtained by inserting dots into `s`. A valid IP address consists of exactly four integers (each integer must be between 0 and 255) separated by single dots, and cannot have leading zeros. For example, \"25525511135\" can be converted to [\"255.255.11.135\", \"255.255.111.35\"]. Return the sorted order of all possible valid IP addresses you can obtain.",
"tests": {
"test_solution.py": "from solution import restore_ip_addresses\n\ndef test_restore_ip_addresses_example():\n assert restore_ip_addresses(\"25525511135\") == [\"255.255.11.135\", \"255.255.111.35\"]\n\ndef test_restore_ip_addresses_edge_cases():\n assert restore_ip_addresses(\"0000\") == [\"0.0.0.0\"]\n assert restore_ip_addresses(\"1111\") == [\"1.1.1.1\"]\n\ndef test_restore_ip_addresses_multiple_options():\n result = restore_ip_addresses(\"101023\")\n expected_result = [\"1.0.10.23\", \"1.0.102.3\", \"10.1.0.23\", \"10.10.2.3\", \"101.0.2.3\"]\n assert result == expected_result\n\ndef test_restore_ip_addresses_no_possible_ip():\n assert restore_ip_addresses(\"010010\") == [\"0.10.0.10\", \"0.100.1.0\"]\n\ndef test_restore_ip_addresses_single_segment():\n assert restore_ip_addresses(\"11111\") == [\"1.1.1.11\", \"1.1.11.1\", \"1.11.1.1\", \"11.1.1.1\"]\n"
}
},
"0216efde160da7659d36d3bf4ed1a90abe6af31c684ec5fd740ce5877c95a357": {
"task_hash": "0216efde160da7659d36d3bf4ed1a90abe6af31c684ec5fd740ce5877c95a357",
"instruction": "Given a list of unique integers `nums`, write a function that returns all possible permutations of the list. Each permutation must be a new list and you can return the permutations in any order. Implement the following function:\n\n* `List<List<Integer>> permute(List<Integer> nums)`\n\nFor example, given `nums = [1, 2, 3]`, the function should return:\n\n* `[[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]]`",
"tests": {
"test_solution.py": "from solution import permute\n\ndef test_permute_example():\n assert sorted(permute([1, 2, 3])) == sorted([[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]])\n\ndef test_permute_single_element():\n assert permute([1]) == [[1]]\n\ndef test_permute_two_elements():\n assert sorted(permute([1, 2])) == sorted([[1, 2], [2, 1]])\n\ndef test_permute_no_elements():\n assert permute([]) == [[]]\n\ndef test_permute_four_elements():\n assert sorted(permute([1, 2, 3, 4])) == sorted([\n [1, 2, 3, 4], [1, 2, 4, 3], [1, 3, 2, 4], [1, 3, 4, 2], [1, 4, 2, 3], [1, 4, 3, 2], \n [2, 1, 3, 4], [2, 1, 4, 3], [2, 3, 1, 4], [2, 3, 4, 1], [2, 4, 1, 3], [2, 4, 3, 1], \n [3, 1, 2, 4], [3, 1, 4, 2], [3, 2, 1, 4], [3, 2, 4, 1], [3, 4, 1, 2], [3, 4, 2, 1], \n [4, 1, 2, 3], [4, 1, 3, 2], [4, 2, 1, 3], [4, 2, 3, 1], [4, 3, 1, 2], [4, 3, 2, 1]\n ])\n"
}
},
"02196ebc40ce76722ea768e023d1b37513b18db578d14a83dc52df7c15fcd2dc": {
"task_hash": "02196ebc40ce76722ea768e023d1b37513b18db578d14a83dc52df7c15fcd2dc",
"instruction": "You are given a 2D array `grid` of size `m x n` representing an image where each cell has a value of `0` (white) or `1` (black). The image contains exactly one rectangle composed of black cells (`1`) which are connected horizontally or vertically. Return an array `[r1, c1, r2, c2]` which contains the coordinates of the rectangle, where `(r1, c1)` is the top-left corner, and `(r2, c2)` is the bottom-right corner of the rectangle. If no such rectangle exists, return an empty list.",
"tests": {
"test_solution.py": "from solution import find_rectangle_coordinates\n\ndef test_no_rectangle():\n grid = [\n [0, 0, 0],\n [0, 0, 0],\n [0, 0, 0]\n ]\n assert find_rectangle_coordinates(grid) == []\n\ndef test_single_cell_rectangle():\n grid = [\n [0, 0, 0],\n [0, 1, 0],\n [0, 0, 0]\n ]\n assert find_rectangle_coordinates(grid) == [1, 1, 1, 1]\n\ndef test_horizontal_rectangle():\n grid = [\n [0, 0, 0],\n [1, 1, 0],\n [0, 0, 0]\n ]\n assert find_rectangle_coordinates(grid) == [1, 0, 1, 1]\n\ndef test_vertical_rectangle():\n grid = [\n [0, 1, 0],\n [0, 1, 0],\n [0, 0, 0]\n ]\n assert find_rectangle_coordinates(grid) == [0, 1, 1, 1]\n\ndef test_large_rectangle():\n grid = [\n [0, 0, 0, 0],\n [0, 1, 1, 0],\n [0, 1, 1, 0],\n [0, 0, 0, 0]\n ]\n assert find_rectangle_coordinates(grid) == [1, 1, 2, 2]\n\ndef test_irregular_rectangle():\n grid = [\n [0, 0, 0, 0, 0],\n [0, 1, 1, 1, 0],\n [0, 1, 0, 1, 0],\n [0, 1, 1, 1, 0],\n [0, 0, 0, 0, 0]\n ]\n assert find_rectangle_coordinates(grid) == [1, 1, 3, 3]\n"
}
},
"02240c5008ebabe770d23853889cee5e407ce25d4db899816e77be6a3f46131c": {
"task_hash": "02240c5008ebabe770d23853889cee5e407ce25d4db899816e77be6a3f46131c",
"instruction": "You are given a list of flights represented by pairs of departure and arrival cities [from_i, to_i] and a `src` city from which to start and a `dst` city to reach. Each flight has a price associated with it. Calculate the minimum price required to reach the destination city `dst` from the source city `src` within at most `k` stops. If there is no such route, return -1. Implement the function:\n* `int findCheapestPrice(int n, int[][] flights, int src, int dst, int k)` \n\nwhere:\n- `n` is the number of cities represented by cities `0` to `n-1`.\n- `flights` is a list of flights where `flights[i]` = `[from_i, to_i, price_i]` indicates that there is a flight from city `from_i` to city `to_i` with cost `price_i`.\n- `src` is the starting city.\n- `dst` is the destination city.\n- `k` is the maximum number of stops.\n\nNote: You can assume that there will be at most `1000` cities and `10000` flights.",
"tests": {
"test_solution.py": "from solution import findCheapestPrice\n\ndef test_example_1():\n n = 3\n flights = [[0, 1, 100], [1, 2, 100], [0, 2, 500]]\n src = 0\n dst = 2\n k = 1\n assert findCheapestPrice(n, flights, src, dst, k) == 200\n\ndef test_example_2():\n n = 3\n flights = [[0, 1, 100], [1, 2, 100], [0, 2, 500]]\n src = 0\n dst = 2\n k = 0\n assert findCheapestPrice(n, flights, src, dst, k) == 500\n\ndef test_no_possible_route():\n n = 3\n flights = [[0, 1, 100], [1, 2, 100], [0, 2, 500]]\n src = 0\n dst = 2\n k = 0\n assert findCheapestPrice(n, flights, src, dst, k) == 500\n\ndef test_direct_flight_cheaper():\n n = 4\n flights = [[0, 1, 100], [1, 2, 100], [0, 2, 500], [2, 3, 100], [0, 3, 150]]\n src = 0\n dst = 3\n k = 1\n assert findCheapestPrice(n, flights, src, dst, k) == 150\n\ndef test_multiple_routes():\n n = 5\n flights = [[0, 1, 100], [1, 2, 100], [2, 3, 100], [0, 3, 600], [0, 2, 500]]\n src = 0\n dst = 3\n k = 2\n assert findCheapestPrice(n, flights, src, dst, k) == 300\n"
}
},
"02243ffe61c863a69e2a86816bcd04fa1e7fcc3e25d284f24757f35260af98f6": {
"task_hash": "02243ffe61c863a69e2a86816bcd04fa1e7fcc3e25d284f24757f35260af98f6",
"instruction": "You are tasked with implementing a Python class named `Car` that encapsulates the properties of a car, including its `make`, `model`, and `year`. Your goal is to define a method within this class that returns a string representation of the car in the format `\"<Make> <Model> (<Year>)\"`. \n\nFor instance, if a `Car` object is instantiated with `make=\"Toyota\"`, `model=\"Corolla\"`, and `year=2020`, the method should produce the string `\"Toyota Corolla (2020)\"`.\n\n**Sample Input:**\n```python\ncar = Car(\"Toyota\", \"Corolla\", 2020)\nprint(car)\n```\n\n**Sample Output:**\n```\nToyota Corolla (2020)\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert str(Car(\"Toyota\", \"Corolla\", 2020)) == \"Toyota Corolla (2020)\"\n\ndef test_1():\n assert str(Car(\"Honda\", \"Civic\", 2018)) == \"Honda Civic (2018)\"\n\ndef test_2():\n assert str(Car(\"Ford\", \"Mustang\", 2022)) == \"Ford Mustang (2022)\"\n\ndef test_3():\n assert str(Car(\"Chevrolet\", \"Camaro\", 2021)) == \"Chevrolet Camaro (2021)\"\n\ndef test_4():\n assert str(Car(\"Tesla\", \"Model S\", 2023)) == \"Tesla Model S (2023)\"\n\ndef test_5():\n assert str(Car(\"BMW\", \"M3\", 2019)) == \"BMW M3 (2019)\"\n\ndef test_6():\n assert str(Car(\"Audi\", \"R8\", 2020)) == \"Audi R8 (2020)\"\n\ndef test_7():\n assert str(Car(\"Lamborghini\", \"Huracan\", 2022)) == \"Lamborghini Huracan (2022)\"\n\ndef test_8():\n assert str(Car(\"Porsche\", \"911\", 2021)) == \"Porsche 911 (2021)\"\n\ndef test_9():\n assert str(Car(\"Ferrari\", \"488\", 2019)) == \"Ferrari 488 (2019)\"\n"
}
},
"0247f45874d2e072e0b5a5d19732df5d0e4b7147688715836ad89848855884b0": {
"task_hash": "0247f45874d2e072e0b5a5d19732df5d0e4b7147688715836ad89848855884b0",
"instruction": "You are tasked with implementing a simple online shopping cart system. Your program should define a class `ShoppingCart` with the following methods:\n\n- `add_item(item_name, price)`: Adds an item with the specified name and price to the cart. If the item already exists, update its price.\n- `remove_item(item_name)`: Removes the item with the specified name from the cart if it exists.\n- `get_total()`: Returns the total price of all items in the cart.\n- `list_items()`: Returns a list of tuples, each containing an item name and its price, representing all items in the cart.\n\n**Input:**\n- A series of commands to manipulate the shopping cart. Each command is on a new line and can be one of the following:\n - `add <item_name> <price>`: Adds or updates an item in the cart.\n - `remove <item_name>`: Removes an item from the cart.\n - `total`: Prints the total price of all items in the cart.\n - `list`: Prints the list of all items in the cart.\n\n**Output:**\n- For each `total` command, print the total price of the cart.\n- For each `list` command, print the list of items in the format `item_name: price`.\n\n**Sample Input:**\n```\nadd apple 0.99\nadd banana 0.59\nlist\ntotal\nremove apple\nlist\ntotal\n```\n\n**Sample Output:**\n```\n[('apple', 0.99), ('banana', 0.59)]\n1.58\n[('banana', 0.59)]\n0.59\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert ShoppingCart().get_total() == 0\n\ndef test_1():\n assert ShoppingCart().list_items() == []\n"
}
},
"024a0e2804015eab908796769668cbec094ebcd514693e0fdaa2ccc328985265": {
"task_hash": "024a0e2804015eab908796769668cbec094ebcd514693e0fdaa2ccc328985265",
"instruction": "You are given two strings `s` and `t` of equal length. You can perform the following operation on any character of the string `s`: choose any single character from `a` to `z` and change the selected character to this new character. You need to make `s` and `t` **anagrams** (i.e., rearrange the characters of `s` to match `t`). Find the minimum number of operations required to make `s` and `t` anagrams of each other. Return _the minimum number of operations required to make_ `s` _and_ `t` _anagrams_.",
"tests": {
"test_solution.py": "from solution import min_operations_to_anagram\n\ndef test_min_operations_to_anagram_identical_strings():\n assert min_operations_to_anagram(\"anagram\", \"anagram\") == 0\n\ndef test_min_operations_to_anagram_example_case_1():\n assert min_operations_to_anagram(\"abc\", \"bca\") == 0\n\ndef test_min_operations_to_anagram_example_case_2():\n assert min_operations_to_anagram(\"aabbcc\", \"abcabc\") == 0\n\ndef test_min_operations_to_anagram_example_case_3():\n assert min_operations_to_anagram(\"abcd\", \"bcda\") == 0\n\ndef test_min_operations_to_anagram_different_lengths():\n assert min_operations_to_anagram(\"aaab\", \"bbbb\") == 3\n\ndef test_min_operations_to_anagram_all_different():\n assert min_operations_to_anagram(\"abcd\", \"efgh\") == 4\n\ndef test_min_operations_to_anagram_one_char_difference():\n assert min_operations_to_anagram(\"a\", \"b\") == 1\n\ndef test_min_operations_to_anagram_single_character_repeat():\n assert min_operations_to_anagram(\"aa\", \"bb\") == 2\n"
}
},
"0250120a67c79c76ce8e44edf8109c9cd2ea3b352f3f3f594317ab0e6769ce6e": {
"task_hash": "0250120a67c79c76ce8e44edf8109c9cd2ea3b352f3f3f594317ab0e6769ce6e",
"instruction": "A **binary string** is a string consisting of only `0`s and `1`s. Given a binary string `s` of length `n`, you are allowed to perform at most one operation where you can choose any single character and flip it (i.e., change a `0` to `1` or a `1` to `0`). Return the length of the longest contiguous substring of `1`s that can be obtained after performing the operation at most once.",
"tests": {
"test_solution.py": "from solution import longest_ones_after_flip\n\ndef test_no_flip_needed():\n assert longest_ones_after_flip(\"111\") == 3\n assert longest_ones_after_flip(\"0\") == 1\n\ndef test_flip_needed():\n assert longest_ones_after_flip(\"110\") == 3\n assert longest_ones_after_flip(\"0110\") == 3\n assert longest_ones_after_flip(\"1110111\") == 7\n assert longest_ones_after_flip(\"1010101\") == 3\n\ndef test_all_zeroes():\n assert longest_ones_after_flip(\"0000\") == 1\n assert longest_ones_after_flip(\"00000\") == 1\n\ndef test_edge_cases():\n assert longest_ones_after_flip(\"1\") == 1\n assert longest_ones_after_flip(\"10\") == 2\n assert longest_ones_after_flip(\"01\") == 2\n"
}
},
"025c921e4a1e793f86b6fcc9ae8dca677e968f7741b45ba873bfe76df5be89c3": {
"task_hash": "025c921e4a1e793f86b6fcc9ae8dca677e968f7741b45ba873bfe76df5be89c3",
"instruction": "Given an array of integers `nums`, where each element represents the maximum number of steps you can jump forward from that position, determine if you can reach the last index. Assume that you are always initially positioned at the first index.",
"tests": {
"test_solution.py": "from solution import can_jump\n\ndef test_can_jump_reachable():\n assert can_jump([2, 3, 1, 1, 4]) == True\n\ndef test_can_jump_not_reachable():\n assert can_jump([3, 2, 1, 0, 4]) == False\n\ndef test_can_jump_single_element():\n assert can_jump([0]) == True\n\ndef test_can_jump_large_jump():\n assert can_jump([10, 1, 0, 0, 0]) == True\n\ndef test_can_jump_all_zeros_after_first():\n assert can_jump([1, 0, 0, 0, 0]) == False\n \ndef test_can_jump_no_need_to_jump():\n assert can_jump([2, 5, 0, 0]) == True\n\ndef test_can_jump_end_of_array_reachable_with_exact_jump():\n assert can_jump([1, 2, 3]) == True\n"
}
},
"027102f812f2f4057af07b263354820961ae2ec3c742cb6a661d2b007522664e": {
"task_hash": "027102f812f2f4057af07b263354820961ae2ec3c742cb6a661d2b007522664e",
"instruction": "You are given an array of integers `nums` where `nums[i]` is the value at the `ith` position. You need to design and implement the `RangeFreqQuery` class to support queries that return the frequency of a particular value within a specified range of indices. Implement the following methods:\n\n* `RangeFreqQuery(int[] nums)`: Initializes the `RangeFreqQuery` object with the integer array `nums`.\n* `int query(int left, int right, int value)`: Returns the frequency of `value` in the subarray defined by the indices `[left, right]` (both inclusive).\n\nExample:\n```\nRangeFreqQuery obj = new RangeFreqQuery([1, 4, 2, 4, 4, 3, 1]);\nint result = obj.query(1, 5, 4);\n```\nOutput:\n```\nresult -> 3\n```",
"tests": {
"test_solution.py": "import pytest\nfrom solution import RangeFreqQuery\n\ndef test_query_basic():\n obj = RangeFreqQuery([1, 4, 2, 4, 4, 3, 1])\n assert obj.query(1, 5, 4) == 3\n\ndef test_query_non_existent_value():\n obj = RangeFreqQuery([1, 4, 2, 4, 4, 3, 1])\n assert obj.query(1, 5, 5) == 0\n\ndef test_query_single_element_range():\n obj = RangeFreqQuery([1, 4, 2, 4, 4, 3, 1])\n assert obj.query(3, 3, 4) == 1\n\ndef test_query_value_outside_range():\n obj = RangeFreqQuery([1, 4, 2, 4, 4, 3, 1])\n assert obj.query(1, 2, 4) == 1\n\ndef test_query_entire_array():\n obj = RangeFreqQuery([1, 4, 2, 4, 4, 3, 1])\n assert obj.query(0, 6, 4) == 3\n assert obj.query(0, 6, 1) == 2\n\ndef test_query_empty_array():\n obj = RangeFreqQuery([])\n assert obj.query(0, 0, 1) == 0\n"
}
},
"027914843cff903b17a213604af82ea272d774bed39f8ca32f9319c5f2a6b616": {
"task_hash": "027914843cff903b17a213604af82ea272d774bed39f8ca32f9319c5f2a6b616",
"instruction": "You are given two strings `s1` and `s2`. Your task is to implement a function that finds the longest common substring between these two strings. The function should return the longest common substring. If there is no common substring, return an empty string. The comparison should be case-sensitive and the strings may contain any characters, including punctuation and whitespace. The strings may also be empty.\n\n**Input:**\n- Two strings `s1` and `s2`.\n\n**Output:**\n- A string representing the longest common substring.\n\n**Sample Input:**\n```\ns1 = \"Hello world!\"\ns2 = \"world! Hello\"\n```\n\n**Sample Output:**\n```\n\"world!\"\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert longest_common_substring(\"abcde\", \"bcdef\") == \"bcde\"\n\ndef test_1():\n assert longest_common_substring(\"abcdef\", \"ghijkl\") == \"\"\n\ndef test_2():\n assert longest_common_substring(\"abc\", \"defabc\") == \"abc\"\n\ndef test_3():\n assert longest_common_substring(\"abc\", \"abc\") == \"abc\"\n\ndef test_4():\n assert longest_common_substring(\"\", \"abc\") == \"\"\n\ndef test_5():\n assert longest_common_substring(\"abc\", \"\") == \"\"\n\ndef test_6():\n assert longest_common_substring(\"\", \"\") == \"\"\n\ndef test_7():\n assert longest_common_substring(\"aabbcc\", \"bbccdd\") == \"bbcc\"\n\ndef test_8():\n assert longest_common_substring(\"Hello world!\", \"world! Hello\") == \"world!\"\n\ndef test_9():\n assert longest_common_substring(\"12345\", \"34567\") == \"345\"\n"
}
},
"027ebee89cfa23a9523a2454dc088bb251f41700a1e060aefa05ed2e5dea21f4": {
"task_hash": "027ebee89cfa23a9523a2454dc088bb251f41700a1e060aefa05ed2e5dea21f4",
"instruction": "### String Compression\n\nIn this problem, you are required to implement a basic string compression algorithm. The idea is to compress the string such that consecutive repeated characters are substituted with a single character followed by its count.\n\nFor instance, the string \"aabcccccaaa\" would become \"a2b1c5a3\". If the \"compressed\" string is not smaller than the original string, your function should return the original string. You should assume the string has only uppercase and lowercase letters (a – z).\n\n**Task**\n\nWrite a function `compress_string` that receives a string and returns the compressed version of the string or the original if the compressed version is not shorter.\n\n**Input/Output**\n\nThe input is a single string of lowercase and uppercase characters.\n\nThe output is either a compressed string or the original string based on the above specification.\n\n**Example**\n\n```python\ndef compress_string(input_str: str) -> str:\n # Your implementation here\n\n# Example 1\ninput_str = \"aabcccccaaa\"\nprint(compress_string(input_str)) # Output: \"a2b1c5a3\"\n\n# Example 2\ninput_str = \"abcdef\"\nprint(compress_string(input_str)) # Output: \"abcdef\"\n\n# Example 3\ninput_str = \"aaabbccaaa\"\nprint(compress_string(input_str)) # Output: \"a3b2c2a3\"\n```",
"tests": {
"test_solution.py": "from solution import compress_string\n\ndef test_compress_string_with_repeated_characters():\n assert compress_string(\"aabcccccaaa\") == \"a2b1c5a3\"\n assert compress_string(\"aaaabbbcc\") == \"a4b3c2\"\n\ndef test_compress_string_with_unique_characters():\n assert compress_string(\"abcdef\") == \"abcdef\"\n\ndef test_compress_string_with_mixed_patterns():\n assert compress_string(\"aaabbccaaa\") == \"a3b2c2a3\"\n assert compress_string(\"aabbcc\") == \"aabbcc\"\n\ndef test_compress_string_with_empty_string():\n assert compress_string(\"\") == \"\"\n\ndef test_compress_string_with_single_character():\n assert compress_string(\"a\") == \"a\"\n assert compress_string(\"aaaa\") == \"a4\"\n"
}
},
"02819a6e8b73bde914edae9f65032b07b5af3ae82ab6a17682189b78cb056c51": {
"task_hash": "02819a6e8b73bde914edae9f65032b07b5af3ae82ab6a17682189b78cb056c51",
"instruction": "The librarian is organizing a book fair and wants to arrange books in a specific format on a shelf. While moving the books, the librarian noticed a pattern and needs your help to generate it. Given a number N, generate the following book arrangement pattern.\n\n-----Input:-----\n- First line will contain T, the number of test cases. Then the test cases follow.\n- Each test case contains a single line of input, one integer N.\n\n-----Output:-----\nFor each test case, output the arrangement pattern of books as described below.\n\n-----Constraints-----\n- $1 \\leq T \\leq 50$\n- $1 \\leq N \\leq 50$\n\n-----Sample Input:-----\n2\n3\n4\n\n-----Sample Output:-----\n1\n2 3 \n4 5 6\n\n1\n2 3\n4 5 6\n7 8 9 10\n\n-----Explanation:-----\nFor each N, print N lines. The first line has 1 number, the second line has 2 numbers, the third line has 3 numbers, and so on. Each number is consecutive starting from 1.",
"tests": {
"test_solution.py": "from solution import book_arrangement_pattern\n\ndef test_example_case():\n T = 2\n test_cases = [3, 4]\n expected_output = [\n ['1', '2 3', '4 5 6'],\n ['1', '2 3', '4 5 6', '7 8 9 10']\n ]\n assert book_arrangement_pattern(T, test_cases) == expected_output\n\ndef test_minimum_case():\n T = 1\n test_cases = [1]\n expected_output = [['1']]\n assert book_arrangement_pattern(T, test_cases) == expected_output\n\ndef test_maximum_case():\n T = 1\n test_cases = [50]\n result = book_arrangement_pattern(T, test_cases)[0]\n assert result[0] == '1'\n # Checks that the last line of 50 levels contains 50 numbers starting from the correct number\n assert result[49] == ' '.join(str(i) for i in range(1226, 1276))\n\ndef test_multiple_cases():\n T = 3\n test_cases = [2, 5, 3]\n expected_output = [\n ['1', '2 3'],\n ['1', '2 3', '4 5 6', '7 8 9 10', '11 12 13 14 15'],\n ['1', '2 3', '4 5 6']\n ]\n assert book_arrangement_pattern(T, test_cases) == expected_output\n"
}
},
"02aaae18bd742da370219ac24039fceb9a2d42604daf649ddfc5bac90711690f": {
"task_hash": "02aaae18bd742da370219ac24039fceb9a2d42604daf649ddfc5bac90711690f",
"instruction": "You are given a list of strings `paths` representing file paths on a Linux system. Your task is to implement a function `find_common_prefix` that determines the longest common prefix among all the file paths. If no common prefix exists, the function should return an empty string.\n\n**Input:**\n- A list of strings `paths` (1 ≤ len(paths) ≤ 100), where each string is a valid file path on a Linux system and has a length of at most 1000 characters.\n\n**Output:**\n- A string representing the longest common prefix of all the file paths. If no common prefix exists, return an empty string.\n\n**Sample Input:**\n```\n[\"/home/user/documents/report.txt\", \"/home/user/documents/summary.txt\", \"/home/user/pictures/photo.jpg\"]\n```\n\n**Sample Output:**\n```\n\"/home/user/\"\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert find_common_prefix([\"/home/user/documents/report.txt\", \"/home/user/documents/summary.txt\", \"/home/user/pictures/photo.jpg\"]) == \"/home/user/\"\n\ndef test_1():\n assert find_common_prefix([\"/usr/bin/python\", \"/usr/bin/pip\", \"/usr/bin/virtualenv\"]) == \"/usr/bin/\"\n\ndef test_2():\n assert find_common_prefix([\"/var/log/syslog\", \"/var/log/auth.log\"]) == \"/var/log/\"\n\ndef test_3():\n assert find_common_prefix([\"/etc/nginx/nginx.conf\", \"/etc/nginx/sites-available/default\"]) == \"/etc/nginx/\"\n\ndef test_4():\n assert find_common_prefix([\"/home/user\", \"/home/user/documents\"]) == \"/home/user\"\n\ndef test_5():\n assert find_common_prefix([\"/home/user\", \"/home/otheruser\"]) == \"/home/\"\n\ndef test_6():\n assert find_common_prefix([\"/home/user/documents\", \"/home/user/pictures\", \"/home/user/videos\"]) == \"/home/user/\"\n\ndef test_7():\n assert find_common_prefix([\"/home/user\", \"/home/user\", \"/home/user\"]) == \"/home/user\"\n\ndef test_8():\n assert find_common_prefix([]) == \"\"\n\ndef test_9():\n assert find_common_prefix([\"/single/path\"]) == \"/single/path\"\n"
}
},
"02bbec28ccc1d32a19d9c6e4e5b352cf9d6d1fcb07ccd3899250e50d73b3d005": {
"task_hash": "02bbec28ccc1d32a19d9c6e4e5b352cf9d6d1fcb07ccd3899250e50d73b3d005",
"instruction": "You are given a list of integers. Your task is to implement a function that sorts the list in descending order without using the built-in `sort()` function. You must implement the sorting algorithm from scratch. You can choose any sorting algorithm you are familiar with, such as bubble sort, selection sort, or quicksort.\n\n**Input:**\n- A list of integers `arr` (1 ≤ len(arr) ≤ 1000), where each integer `arr[i]` satisfies -1000 ≤ arr[i] ≤ 1000.\n\n**Output:**\n- A list of integers sorted in descending order.\n\n**Sample Input:**\n```\n[64, 34, 25, 12, 22, 11, 90]\n```\n\n**Sample Output:**\n```\n[90, 64, 34, 25, 22, 12, 11]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert bubble_sort_descending([5, 3, 8, 4, 2]) == [8, 5, 4, 3, 2]\n\ndef test_1():\n assert bubble_sort_descending([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]) == [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]\n\ndef test_2():\n assert bubble_sort_descending([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) == [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]\n\ndef test_3():\n assert bubble_sort_descending([1]) == [1]\n\ndef test_4():\n assert bubble_sort_descending([]) == []\n\ndef test_5():\n assert bubble_sort_descending([7, 7, 7, 7, 7]) == [7, 7, 7, 7, 7]\n\ndef test_6():\n assert bubble_sort_descending([3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]) == [9, 6, 5, 5, 5, 4, 3, 3, 2, 1, 1]\n\ndef test_7():\n assert bubble_sort_descending([-1, -2, -3, -4, -5]) == [-1, -2, -3, -4, -5]\n\ndef test_8():\n assert bubble_sort_descending([100, 200, 300, 400, 500]) == [500, 400, 300, 200, 100]\n\ndef test_9():\n assert bubble_sort_descending([500, 400, 300, 200, 100]) == [500, 400, 300, 200, 100]\n"
}
},
"02bf0eee161c4bcebd0f2c7e23a0ddfb57f637d24cfee58164b9455ad58f0067": {
"task_hash": "02bf0eee161c4bcebd0f2c7e23a0ddfb57f637d24cfee58164b9455ad58f0067",
"instruction": "You have been given the root of a binary tree and an integer `k`. Your task is to find all the nodes in the binary tree that are exactly `k` distance away from the root. Return the values of these nodes as a list. If there are no nodes at the distance `k`, return an empty list. The nodes in the list should be listed in the order they appear at that distance from left to right.",
"tests": {
"test_solution.py": "from solution import TreeNode, nodes_at_k_distance\n\ndef test_nodes_at_distance_k():\n # Tree:\n # 1\n # / \\\n # 2 3\n # /| |\\\n # 4 5 6 7\n \n root = TreeNode(1)\n root.left = TreeNode(2)\n root.right = TreeNode(3)\n root.left.left = TreeNode(4)\n root.left.right = TreeNode(5)\n root.right.left = TreeNode(6)\n root.right.right = TreeNode(7)\n \n assert nodes_at_k_distance(root, 0) == [1]\n assert nodes_at_k_distance(root, 1) == [2, 3]\n assert nodes_at_k_distance(root, 2) == [4, 5, 6, 7]\n assert nodes_at_k_distance(root, 3) == []\n \ndef test_empty_tree():\n root = None\n assert nodes_at_k_distance(root, 0) == []\n assert nodes_at_k_distance(root, 1) == []\n \ndef test_single_node_tree():\n root = TreeNode(1)\n assert nodes_at_k_distance(root, 0) == [1]\n assert nodes_at_k_distance(root, 1) == []\n assert nodes_at_k_distance(root, 2) == []\n\ndef test_unbalanced_tree():\n # Tree:\n # 1\n # \\\n # 2\n # \\\n # 3\n # \\\n # 4\n \n root = TreeNode(1)\n root.right = TreeNode(2)\n root.right.right = TreeNode(3)\n root.right.right.right = TreeNode(4)\n \n assert nodes_at_k_distance(root, 0) == [1]\n assert nodes_at_k_distance(root, 1) == [2]\n assert nodes_at_k_distance(root, 2) == [3]\n assert nodes_at_k_distance(root, 3) == [4]\n assert nodes_at_k_distance(root, 4) == []\n"
}
},
"02d64f8c97e76f5f132b0d0642fb96a3f1c9b47939bea97914b81b3d89c385b6": {
"task_hash": "02d64f8c97e76f5f132b0d0642fb96a3f1c9b47939bea97914b81b3d89c385b6",
"instruction": "A **Morse Code Converter** translates textual information into Morse code, a system of encoding letters and numbers through sequences of dots and dashes. Here's the Morse code representation for some common letters and numbers:\n```\nA -> .-\nB -> -...\nC -> -.-.\n...\n1 -> .----\n2 -> ..---\n3 -> ...--\n...\n```\n\nYour task is to write a function `morse_code_converter` that accepts a string of uppercase English letters (A-Z) and digits (0-9) only, and returns its equivalent Morse code, separating each Morse code character with a single space.\n\nFor example:\n```python\nmorse_code_converter(\"HELLO123\")\n```\n\nWill produce the following output:\n```\n\".... . .-.. .-.. --- .---- ..--- ...--\"\n```\n\nYou can use the following dictionary for Morse code translation:\n```python\nMORSE_CODE_DICT = {\n 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.',\n 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.',\n 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '...', 'T': '-', 'U': '..-',\n 'V': '...-', 'W': '.--', 'X': '-..-', 'Y': '-.--', 'Z': '--..', \n '1': '.----', '2': '..---', '3': '...--', '4': '....-', '5': '.....', '6': '-....', \n '7': '--...', '8': '---..', '9': '----.', '0': '-----'\n}\n```\n\nMake sure to return the Morse code sequence with each encoded letter and number separated by a single space, and you should not add any trailing space. If you encounter an invalid character, you should ignore it.\n\nHere is the template for your function:\n```python\ndef morse_code_converter(text):\n MORSE_CODE_DICT = {\n 'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.',\n 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.',\n 'O': '---', 'P': '.--.', 'Q': '--.-', 'R': '.-.', 'S': '...', 'T': '-', 'U': '..-',\n 'V': '...-', 'W': '.--', 'X': '-..-', 'Y': '-.--', 'Z': '--..', \n '1': '.----', '2': '..---', '3': '...--', '4': '....-', '5': '.....', '6': '-....', \n '7': '--...', '8': '---..', '9': '----.', '0': '-----'\n }\n \n # Your code here\n \n return morse_code\n```\n\nGood luck and happy coding!",
"tests": {
"test_solution.py": "from solution import morse_code_converter\n\ndef test_morse_code_simple():\n assert morse_code_converter(\"HELLO\") == \".... . .-.. .-.. ---\"\n assert morse_code_converter(\"SOS\") == \"... --- ...\"\n assert morse_code_converter(\"G\") == \"--.\"\n\ndef test_morse_code_with_numbers():\n assert morse_code_converter(\"123\") == \".---- ..--- ...--\"\n assert morse_code_converter(\"098\") == \"----- ----. ---..\"\n\ndef test_morse_code_mixed():\n assert morse_code_converter(\"HELLO123\") == \".... . .-.. .-.. --- .---- ..--- ...--\"\n assert morse_code_converter(\"SOS2021\") == \"... --- ... ..--- ----- ..--- .----\"\n\ndef test_morse_code_with_invalid_characters():\n assert morse_code_converter(\"HELLO!\") == \".... . .-.. .-.. ---\"\n assert morse_code_converter(\"123ABC!!\") == \".---- ..--- ...-- .- -... -.-.\"\n\ndef test_morse_code_empty():\n assert morse_code_converter(\"\") == \"\"\n \ndef test_morse_code_all_valid():\n assert morse_code_converter(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\") == \".- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --.. ----- .---- ..--- ...-- ....- ..... -.... --... ---.. ----.\"\n"
}
},
"02ee5302a45abc3aa21556b0b51d206667381139bccad43a636e0b2fe1a79a80": {
"task_hash": "02ee5302a45abc3aa21556b0b51d206667381139bccad43a636e0b2fe1a79a80",
"instruction": "You are given a rectangular grid with dimensions `m x n`, where some cells contain obstacles represented by `1` and other cells are empty represented by `0`. You start at the top-left corner of the grid and need to reach the bottom-right corner (both starting and ending cells are guaranteed to be empty). Your task is to count the total number of unique paths from the top-left to the bottom-right corner while avoiding obstacles.\n\nWrite a function, `uniquePathsWithObstacles`, that takes a 2D list (`grid`) representing the grid and returns the number of unique paths.\n\n**Notes:**\n- You can only move either down or to the right at any point in time.\n- The grid dimensions are `m` x `n` where `1 <= m, n <= 100`.\n- If there is no valid path to the bottom-right corner, return `0`.",
"tests": {
"test_solution.py": "from solution import uniquePathsWithObstacles\n\ndef test_no_obstacles():\n grid = [\n [0, 0, 0],\n [0, 0, 0],\n [0, 0, 0]\n ]\n assert uniquePathsWithObstacles(grid) == 6\n\ndef test_with_obstacles():\n grid = [\n [0, 0, 0],\n [0, 1, 0],\n [0, 0, 0]\n ]\n assert uniquePathsWithObstacles(grid) == 2\n\ndef test_starting_cell_is_obstacle():\n grid = [\n [1, 0],\n [0, 0]\n ]\n assert uniquePathsWithObstacles(grid) == 0\n\ndef test_ending_cell_is_obstacle():\n grid = [\n [0, 0],\n [0, 1]\n ]\n assert uniquePathsWithObstacles(grid) == 0\n\ndef test_single_row():\n grid = [\n [0, 0, 0, 1, 0]\n ]\n assert uniquePathsWithObstacles(grid) == 0\n\ndef test_single_column():\n grid = [\n [0],\n [0],\n [1],\n [0]\n ]\n assert uniquePathsWithObstacles(grid) == 0\n\ndef test_1x1_no_obstacle():\n grid = [\n [0]\n ]\n assert uniquePathsWithObstacles(grid) == 1\n\ndef test_1x1_with_obstacle():\n grid = [\n [1]\n ]\n assert uniquePathsWithObstacles(grid) == 0\n"
}
},
"0309a6fc00d4b02147f7143fd52bd1d57906eee553d0b95854cdb3a618dedf18": {
"task_hash": "0309a6fc00d4b02147f7143fd52bd1d57906eee553d0b95854cdb3a618dedf18",
"instruction": "You are tasked with implementing a function `count_vowels_in_string(s)` that takes a string `s` as input and returns the number of vowels present in the string. The function should consider both uppercase and lowercase vowels. Your implementation must utilize a list comprehension.\n\n**Input:**\n- A single string `s` (1 ≤ |s| ≤ 10^5), consisting of ASCII characters.\n\n**Output:**\n- An integer representing the number of vowels in the string.\n\n**Sample Input:**\n```\n\"Hello World\"\n```\n\n**Sample Output:**\n```\n3\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert count_vowels_in_string(\"hello\") == 2\n\ndef test_1():\n assert count_vowels_in_string(\"HELLO\") == 2\n\ndef test_2():\n assert count_vowels_in_string(\"Python Programming\") == 4\n\ndef test_3():\n assert count_vowels_in_string(\"AEIOUaeiou\") == 10\n\ndef test_4():\n assert count_vowels_in_string(\"\") == 0\n\ndef test_5():\n assert count_vowels_in_string(\"bcdfg\") == 0\n\ndef test_6():\n assert count_vowels_in_string(\"abcdefghijklmnopqrstuvwxyz\") == 5\n\ndef test_7():\n assert count_vowels_in_string(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\") == 5\n\ndef test_8():\n assert count_vowels_in_string(\"12345\") == 0\n\ndef test_9():\n assert count_vowels_in_string(\"!@#$%^&*()\") == 0\n"
}
},
"0330ab808023d35232657ceb03f9b8819486517bd6dfbc35aa30c6eb30ea3d59": {
"task_hash": "0330ab808023d35232657ceb03f9b8819486517bd6dfbc35aa30c6eb30ea3d59",
"instruction": "You are tasked with implementing a function to generate the Fibonacci sequence up to the `n`-th term using recursion. The Fibonacci sequence is defined as follows: the first term is 0, the second term is 1, and each subsequent term is the sum of the two preceding ones. Your function should take an integer `n` as input and return a list containing the Fibonacci sequence up to the `n`-th term.\n\n**Constraints:**\n- 0 ≤ n ≤ 30\n\n**Sample Input:**\n```\n10\n```\n\n**Sample Output:**\n```\n[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert fibonacci_recursive(0) == []\n\ndef test_1():\n assert fibonacci_recursive(1) == [0]\n\ndef test_2():\n assert fibonacci_recursive(2) == [0, 1]\n\ndef test_3():\n assert fibonacci_recursive(3) == [0, 1, 1]\n\ndef test_4():\n assert fibonacci_recursive(4) == [0, 1, 1, 2]\n\ndef test_5():\n assert fibonacci_recursive(5) == [0, 1, 1, 2, 3]\n\ndef test_6():\n assert fibonacci_recursive(6) == [0, 1, 1, 2, 3, 5]\n\ndef test_7():\n assert fibonacci_recursive(7) == [0, 1, 1, 2, 3, 5, 8]\n\ndef test_8():\n assert fibonacci_recursive(10) == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n\ndef test_9():\n assert fibonacci_recursive(15) == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]\n"
}
},
"0374f9a2ab077a5a1e65f102be98ccebe60754e07567c8efd820beea2d087e72": {
"task_hash": "0374f9a2ab077a5a1e65f102be98ccebe60754e07567c8efd820beea2d087e72",
"instruction": "Given the root of a binary tree, return an array representing the level order traversal of the binary tree's nodes' values. In level order traversal, nodes are visited level by level from left to right. The binary tree is represented using TreeNode where TreeNode contains a value, a left child (could be None), and a right child (could be None). \n\nFor example, for the binary tree represented as:\n\n```\n 3\n / \\\n 9 20\n / \\\n 15 7\n```\n\nThe output should be:\n\n```\n[3, 9, 20, 15, 7]\n```",
"tests": {
"test_solution.py": "from solution import TreeNode, level_order_traversal\n\ndef test_level_order_single_node():\n root = TreeNode(1)\n assert level_order_traversal(root) == [1]\n\ndef test_level_order_full_tree():\n root = TreeNode(3, \n TreeNode(9), \n TreeNode(20, TreeNode(15), TreeNode(7))\n )\n assert level_order_traversal(root) == [3, 9, 20, 15, 7]\n\ndef test_level_order_left_heavy_tree():\n root = TreeNode(1, \n TreeNode(2, \n TreeNode(3, \n TreeNode(4)\n )\n )\n )\n assert level_order_traversal(root) == [1, 2, 3, 4]\n\ndef test_level_order_right_heavy_tree():\n root = TreeNode(1, \n None, \n TreeNode(2, \n None, \n TreeNode(3, \n None, \n TreeNode(4)\n )\n )\n )\n assert level_order_traversal(root) == [1, 2, 3, 4]\n\ndef test_level_order_empty_tree():\n assert level_order_traversal(None) == []\n"
}
},
"037efaa6ac83d1b591da37bdb401c0ca89d46b0204589dd29f9da1cced863536": {
"task_hash": "037efaa6ac83d1b591da37bdb401c0ca89d46b0204589dd29f9da1cced863536",
"instruction": "You are given a **0-indexed** integer array `heights`, where `heights[i]` represents the height of the `i-th` student in a class. The students are initially arranged from left to right in random order. You need to arrange the students in non-decreasing order of their heights. Return the **minimum number** of moves required to make this arrangement. In one move, you can take any student and place them at any position in the array.",
"tests": {
"test_solution.py": "from solution import minimum_moves_to_sort\n\ndef test_minimum_moves_to_sort_already_sorted():\n assert minimum_moves_to_sort([1, 2, 3, 4, 5]) == 0\n\ndef test_minimum_moves_to_sort_reverse_sorted():\n assert minimum_moves_to_sort([5, 4, 3, 2, 1]) == 4\n\ndef test_minimum_moves_to_sort_random_order():\n assert minimum_moves_to_sort([3, 1, 2, 5, 4]) == 2\n \ndef test_minimum_moves_to_sort_single_element():\n assert minimum_moves_to_sort([1]) == 0\n\ndef test_minimum_moves_to_sort_multiple_same_element():\n assert minimum_moves_to_sort([2, 2, 2, 2, 2]) == 0\n\ndef test_minimum_moves_to_sort_mixed_elements():\n assert minimum_moves_to_sort([4, 3, 2, 1, 5, 6]) == 3\n"
}
},
"03917d0cb2f8a929ae4bf7b794aaaf3fec14ab9cbf9ee45213fa76bb48254cc2": {
"task_hash": "03917d0cb2f8a929ae4bf7b794aaaf3fec14ab9cbf9ee45213fa76bb48254cc2",
"instruction": "You are tasked with implementing a simple library management system using a Python class. The system should support the following operations:\n\n1. **Add a Book**: Add a book to the library. If the book is already present, do nothing.\n2. **Remove a Book**: Remove a book from the library. If the book is not present, do nothing.\n3. **Check Availability**: Check if a book is available in the library.\n4. **List Books**: List all the books currently in the library.\n\nYour class should be named `Library` and should have the following methods:\n- `add_book(book_title)`: Adds a book to the library.\n- `remove_book(book_title)`: Removes a book from the library.\n- `is_available(book_title)`: Returns `True` if the book is available, otherwise `False`.\n- `list_books()`: Prints all the books in the library.\n\n**Sample Input/Output:**\n```\nlibrary = Library()\nlibrary.add_book(\"1984\")\nlibrary.add_book(\"To Kill a Mockingbird\")\nlibrary.list_books() # Output: Books in the library:\\n- 1984\\n- To Kill a Mockingbird\nlibrary.is_available(\"1984\") # Output: True\nlibrary.remove_book(\"1984\")\nlibrary.list_books() # Output: Books in the library:\\n- To Kill a Mockingbird\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert isinstance(Library().books, set)\n\ndef test_1():\n assert Library().is_available(\"1984\") == False\n"
}
},
"0394386206318983706a7ed9e628ffddbf1fe8f0ee1d4e1674d517216f84ce44": {
"task_hash": "0394386206318983706a7ed9e628ffddbf1fe8f0ee1d4e1674d517216f84ce44",
"instruction": "You are given an undirected graph with $n$ vertices and $m$ edges. Each vertex is numbered from $1$ to $n$. Write a function that determines if the graph is bipartite.\n\nA graph is bipartite if you can divide its set of vertices into two independent subsets $U$ and $V$ such that every edge $(u, v)$ connects a vertex in $U$ to a vertex in $V$.\n\n-------Input-------\nThe first line contains two integers $n$ and $m$ ($1 \\le n, m \\le 100\\,000$), the number of vertices and edges, respectively.\n\nThe next $m$ lines each contain two integers $u$ and $v$ ($1 \\le u, v \\le n$), indicating that there is an edge between vertex $u$ and vertex $v$.\n\n-------Output-------\nPrint \"Yes\" if the graph is bipartite, otherwise print \"No\".\n\n-------Examples-------\nInput\n4 4\n1 2\n2 3\n3 4\n4 1\n\nOutput\nYes\n\nInput\n3 3\n1 2\n2 3\n1 3\n\nOutput\nNo\n\n-------Note-------\nIn the first example, the vertices can be divided into sets {1, 3} and {2, 4}, with each edge connecting a vertex in one set to a vertex in the other. In the second example, this is not possible as there is a cycle of length 3, meaning it is not bipartite.",
"tests": {
"test_solution.py": "import pytest\nfrom solution import is_bipartite\n\ndef test_example1():\n assert is_bipartite(4, 4, [(1, 2), (2, 3), (3, 4), (4, 1)]) == \"Yes\"\n\ndef test_example2():\n assert is_bipartite(3, 3, [(1, 2), (2, 3), (1, 3)]) == \"No\"\n\ndef test_single_vertex():\n assert is_bipartite(1, 0, []) == \"Yes\"\n\ndef test_disconnected_graph():\n assert is_bipartite(4, 2, [(1, 2), (3, 4)]) == \"Yes\"\n\ndef test_cycle_even_length():\n assert is_bipartite(6, 6, [(1, 2), (2, 3), (3, 1), (4, 5), (5, 6), (6, 4)]) == \"No\"\n\ndef test_cycle_odd_length():\n assert is_bipartite(5, 5, [(1, 2), (2, 3), (3, 1), (3, 4), (4, 5)]) == \"No\"\n\ndef test_multiple_components():\n assert is_bipartite(5, 4, [(1, 2), (1, 3), (4, 5)]) == \"Yes\"\n\n# Add more tests if necessary\n"
}
},
"03b0cb447d541677afa2e74bbc3bc375ff7b6dda349a60919aa90cdd7b0a9808": {
"task_hash": "03b0cb447d541677afa2e74bbc3bc375ff7b6dda349a60919aa90cdd7b0a9808",
"instruction": "You are given a string `s` consisting of characters '(', and ')'. Your task is to determine if the parentheses in the string are balanced. A string with balanced parentheses means that each opening parenthesis '(' has a corresponding closing parenthesis ')', and they are correctly nested.\n\n**Input:**\n- A single string `s` (1 ≤ |s| ≤ 10^5) containing only the characters '(' and ')'.\n\n**Output:**\n- Return `True` if the parentheses in the string are balanced, otherwise return `False`.\n\n**Sample Input 1:**\n```\n((()))\n```\n**Sample Output 1:**\n```\nTrue\n```\n\n**Sample Input 2:**\n```\n(() \n```\n**Sample Output 2:**\n```\nFalse\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert is_balanced_parentheses(\"((()))\") == True\n\ndef test_1():\n assert is_balanced_parentheses(\"(()\") == False\n\ndef test_2():\n assert is_balanced_parentheses(\")(\") == False\n\ndef test_3():\n assert is_balanced_parentheses(\"()()\") == True\n\ndef test_4():\n assert is_balanced_parentheses(\"\") == True\n\ndef test_5():\n assert is_balanced_parentheses(\"((((()))))\") == True\n\ndef test_6():\n assert is_balanced_parentheses(\"(()))(\") == False\n\ndef test_7():\n assert is_balanced_parentheses(\"()(()())\") == True\n\ndef test_8():\n assert is_balanced_parentheses(\")(\") == False\n\ndef test_9():\n assert is_balanced_parentheses(\"(((((\") == False\n"
}
},
"03b4706eafd41cbeed9233522415863d41f3a16e1d20b370d057724dadec9558": {
"task_hash": "03b4706eafd41cbeed9233522415863d41f3a16e1d20b370d057724dadec9558",
"instruction": "You are given an unsorted array `arr` of positive integers. Your task is to find the smallest `missing positive integer` from the array. A positive integer is considered missing if it is not present in the array. Return _the **smallest missing positive integer** from_ `arr`_.",
"tests": {
"test_solution.py": "from solution import smallest_missing_positive\n\ndef test_no_missing_positive():\n assert smallest_missing_positive([1, 2, 3]) == 4\n\ndef test_missing_positive_in_between():\n assert smallest_missing_positive([3, 4, -1, 1]) == 2\n\ndef test_missing_positive_at_end():\n assert smallest_missing_positive([1, 2, 0]) == 3\n\ndef test_all_negative_numbers():\n assert smallest_missing_positive([-1, -2, -3]) == 1\n\ndef test_unsorted_array():\n assert smallest_missing_positive([0, 10, 2, -10, -20, 1]) == 3\n\ndef test_single_element():\n assert smallest_missing_positive([2]) == 1\n assert smallest_missing_positive([1]) == 2\n\ndef test_duplicates():\n assert smallest_missing_positive([1, 1, 2, 2, 3]) == 4\n\ndef test_large_gap():\n assert smallest_missing_positive([1, 10, 11, 12]) == 2\n"
}
},
"03b70266bb89ee77eb68c9f6e31242fe34ce2e7990a615b305526fc9934638ed": {
"task_hash": "03b70266bb89ee77eb68c9f6e31242fe34ce2e7990a615b305526fc9934638ed",
"instruction": "You are given a string `s` of length `n` consisting of lowercase alphabets. You are allowed to perform the following operations on the string as many times as you like:\n* Swap any two adjacent characters if the absolute difference of their ASCII values is an even number (`abs(ord(s[i]) - ord(s[i+1])) % 2 == 0`).\n* Delete any single character from the string.\n\nYour task is to determine the **lexicographically smallest** string that can be obtained after performing the above operations any number of times. Return this resulting string.",
"tests": {
"test_solution.py": "from solution import get_lexicographically_smallest_string\n\ndef test_all_unique_characters():\n assert get_lexicographically_smallest_string(\"bacd\") == \"abcd\"\n\ndef test_all_same_characters():\n assert get_lexicographically_smallest_string(\"aaaa\") == \"aaaa\"\n\ndef test_with_some_duplicates():\n assert get_lexicographically_smallest_string(\"bacaba\") == \"aaabbc\"\n\ndef test_with_all_reverse_order():\n assert get_lexicographically_smallest_string(\"zyxwvutsrqponmlkjihgfedcba\") == \"abcdefghijklmnopqrstuvwxyz\"\n\ndef test_single_character_string():\n assert get_lexicographically_smallest_string(\"a\") == \"a\"\n\ndef test_empty_string():\n assert get_lexicographically_smallest_string(\"\") == \"\"\n"
}
},
"03b8068475ac09251c89fe04e0d7cf18840451246bbc96f8ee1013867acd7778": {
"task_hash": "03b8068475ac09251c89fe04e0d7cf18840451246bbc96f8ee1013867acd7778",
"instruction": "You are given a code snippet that calculates the factorial of a number. Your task is to classify this code snippet into one of the following categories: (a) recursive, (b) iterative, (c) functional, or (d) object-oriented. Provide the classification as a single character corresponding to the category.\n\n**Sample Input:**\n```python\nfactorial(5)\n```\n\n**Sample Output:**\n```\na\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert factorial(0) == 1\n\ndef test_1():\n assert factorial(1) == 1\n\ndef test_2():\n assert factorial(2) == 2\n\ndef test_3():\n assert factorial(3) == 6\n\ndef test_4():\n assert factorial(4) == 24\n\ndef test_5():\n assert factorial(5) == 120\n\ndef test_6():\n assert factorial(6) == 720\n\ndef test_7():\n assert factorial(7) == 5040\n\ndef test_8():\n assert factorial(10) == 3628800\n\ndef test_9():\n assert factorial(12) == 479001600\n"
}
},
"03bc6cbadb4d390a4e34a2f9bc400472776e4be5c9679f9cb708162a4170939c": {
"task_hash": "03bc6cbadb4d390a4e34a2f9bc400472776e4be5c9679f9cb708162a4170939c",
"instruction": "Given a list of strings `words`, return the length of the **longest** word chain you can form. A word chain is a sequence of words `[w1, w2, ..., wn]` with `n >= 1`, such that for each `i`, `1 <= i < n`, `wi` is formed by inserting exactly one letter anywhere in `wi-1`. For example, if you have the words `[\"a\", \"ba\", \"bca\", \"bda\", \"bdca\"]`, the longest possible word chain is `\"a\" -> \"ba\" -> \"bca\" -> \"bdca\"` with a length of 4.",
"tests": {
"test_solution.py": "from solution import longestStrChain\n\ndef test_single_word():\n assert longestStrChain([\"a\"]) == 1\n\ndef test_multiple_words_chain():\n assert longestStrChain([\"a\", \"ba\", \"bca\", \"bda\", \"bdca\"]) == 4\n assert longestStrChain([\"xbc\", \"pcxbcf\", \"xb\", \"cxbc\", \"pcxbc\"]) == 5\n\ndef test_no_chain():\n assert longestStrChain([\"abcd\", \"efgh\", \"ijkl\"]) == 1\n\ndef test_mixed_length_words():\n assert longestStrChain([\"a\", \"ab\", \"ac\", \"bd\", \"abc\", \"abd\", \"abdd\"]) == 4\n\ndef test_repeating_words():\n assert longestStrChain([\"a\", \"a\", \"a\"]) == 1\n\ndef test_larger_chain():\n assert longestStrChain([\"a\", \"b\", \"ba\", \"bca\", \"bda\", \"bdca\", \"bdcax\", \"ebdcax\"]) == 6\n"
}
},
"03cbc73289abb280e845cadeba712e090fc68b7dad1785cfcf042ae16f6a3f51": {
"task_hash": "03cbc73289abb280e845cadeba712e090fc68b7dad1785cfcf042ae16f6a3f51",
"instruction": "Given a **string** `s`, you need to find the length of the longest substring without repeating characters. Implement the function `lengthOfLongestSubstring(String s)` which takes a single string `s` as input and returns an integer representing the length of the longest substring without repeating characters. For example, if the input string is `\"abcabcbb\"`, the output should be `3`, which is the length of the substring `\"abc\"`. If the input string is `\"bbbbb\"`, the output should be `1`, which is the length of the substring `\"b\"`.",
"tests": {
"test_solution.py": "from solution import lengthOfLongestSubstring\n\ndef test_longest_substring_without_repeating_chars():\n assert lengthOfLongestSubstring(\"abcabcbb\") == 3\n\ndef test_all_repeat_characters():\n assert lengthOfLongestSubstring(\"bbbbb\") == 1\n\ndef test_mixed_unique_and_duplicate_chars():\n assert lengthOfLongestSubstring(\"pwwkew\") == 3\n\ndef test_single_character():\n assert lengthOfLongestSubstring(\"a\") == 1\n\ndef test_empty_string():\n assert lengthOfLongestSubstring(\"\") == 0\n\ndef test_long_string_with_all_unique_chars():\n assert lengthOfLongestSubstring(\"abcdefghijklmnopqrstuvwxyz\") == 26\n\ndef test_mixed_case():\n assert lengthOfLongestSubstring(\"aAbBcCdDeEfFgG\") == 14\n\ndef test_string_with_numbers_and_special_chars():\n assert lengthOfLongestSubstring(\"123@123@\") == 4\n"
}
},
"03d26d123a641287d76a88694d6ed6448243d20e65afec4cce9fe5c7444cbd83": {
"task_hash": "03d26d123a641287d76a88694d6ed6448243d20e65afec4cce9fe5c7444cbd83",
"instruction": "You are given an array `arr` consisting of n integers. Your task is to implement a function `inversionCount(arr)` that returns the number of inversions in the array. An inversion is defined as a pair of indices `(i, j)` such that `i < j` and `arr[i] > arr[j]`. For example, for the array `[2, 4, 1, 3, 5]`, the function should return `3` because there are three inversions: `(2, 1)`, `(4, 1)`, and `(4, 3)`. Your solution should aim for a time complexity better than O(n^2).",
"tests": {
"test_solution.py": "from solution import inversionCount\n\ndef test_inversionCount_example():\n assert inversionCount([2, 4, 1, 3, 5]) == 3\n\ndef test_inversionCount_no_inversions():\n assert inversionCount([1, 2, 3, 4, 5]) == 0\n\ndef test_inversionCount_max_inversions():\n assert inversionCount([5, 4, 3, 2, 1]) == 10\n\ndef test_inversionCount_mixed():\n assert inversionCount([1, 20, 6, 4, 5]) == 5\n\ndef test_inversionCount_single_element():\n assert inversionCount([1]) == 0\n\ndef test_inversionCount_empty():\n assert inversionCount([]) == 0\n\ndef test_inversionCount_negative_numbers():\n assert inversionCount([-1, -2, -3]) == 3\n\ndef test_inversionCount_duplicates():\n assert inversionCount([1, 3, 5, 3, 2]) == 4\n"
}
},
"03f602a4d801db7c017b4f03d4837b91d43d18933490be016cd034a48f549551": {
"task_hash": "03f602a4d801db7c017b4f03d4837b91d43d18933490be016cd034a48f549551",
"instruction": "You are given a linked list where each node contains an additional random pointer which could point to any node in the list or null. Create a deep copy of the list. Each node in the new list should have the same value and random pointer assignment as the nodes in the original list. The algorithm should run in O(n) time.",
"tests": {
"test_solution.py": "from solution import Node, copyRandomList\n\ndef compare_lists(l1, l2):\n while l1 and l2:\n assert l1.val == l2.val\n if l1.random and l2.random:\n assert l1.random.val == l2.random.val\n elif l1.random or l2.random:\n assert False, \"Random pointers mismatch\"\n l1 = l1.next\n l2 = l2.next\n assert l1 is None and l2 is None, \"List lengths mismatch\"\n\ndef test_copy_empty_list():\n assert copyRandomList(None) is None\n\ndef test_copy_single_node():\n node = Node(1)\n node.random = node\n copied_list = copyRandomList(node)\n compare_lists(node, copied_list)\n\ndef test_copy_two_node_list():\n node1 = Node(1)\n node2 = Node(2)\n node1.next = node2\n node1.random = node2\n node2.random = node2\n copied_list = copyRandomList(node1)\n compare_lists(node1, copied_list)\n\ndef test_copy_complex_list():\n node1 = Node(1)\n node2 = Node(2)\n node3 = Node(3)\n node4 = Node(4)\n \n node1.next = node2\n node2.next = node3\n node3.next = node4\n \n node1.random = node3\n node2.random = node1\n node3.random = node4\n node4.random = node2\n \n copied_list = copyRandomList(node1)\n compare_lists(node1, copied_list)\n"
}
},
"040282cc7d3a73266e0909da660f5ad0b19a010d87380bdb432e51a72f2e4e46": {
"task_hash": "040282cc7d3a73266e0909da660f5ad0b19a010d87380bdb432e51a72f2e4e46",
"instruction": "You are given an integer array `prices` where `prices[i]` is the price of the `i-th` item in a shop. You are also given a binary array `can_buy` where `can_buy[i]` is `1` if you are allowed to buy the `i-th` item and `0` otherwise. You have a budget `budget`. Return _the maximum number of items you can buy without exceeding the given budget_.",
"tests": {
"test_solution.py": "from solution import max_items\n\ndef test_max_items_example_case():\n assert max_items([5, 1, 3, 4, 2], [1, 1, 0, 1, 0], 6) == 2\n\ndef test_max_items_all_buyable_within_budget():\n assert max_items([3, 2, 1], [1, 1, 1], 6) == 3\n\ndef test_max_items_not_all_buyable_within_budget():\n assert max_items([4, 2, 1], [1, 1, 1], 5) == 2\n\ndef test_max_items_not_allowed_to_buy_any():\n assert max_items([1, 2, 3], [0, 0, 0], 5) == 0\n\ndef test_max_items_no_budget():\n assert max_items([1, 2, 3], [1, 1, 1], 0) == 0\n\ndef test_max_items_with_one_item():\n assert max_items([5], [1], 5) == 1\n assert max_items([5], [1], 4) == 0\n assert max_items([5], [0], 10) == 0\n\ndef test_max_items_mixed_prices_and_restrictions():\n assert max_items([10, 20, 30, 40, 50], [1, 0, 1, 1, 0], 60) == 2\n"
}
},
"040ad814baf016733a461957d98eefd9b8b07d967a690f4b30ba5da6dc981cc7": {
"task_hash": "040ad814baf016733a461957d98eefd9b8b07d967a690f4b30ba5da6dc981cc7",
"instruction": "Design a function `island_count` that counts the number of distinct islands in a given 2D grid. An island is made up of 1s (land) and is surrounded by water represented by 0s. The \"islands\" are connected horizontally or vertically, not diagonally.\n\n### Input:\n- A 2D list of integers `grid` where each integer is either 0 (water) or 1 (land).\n\n### Output:\n- An integer representing the number of distinct islands in the grid.\n\n### Example:\n```python\ngrid = [\n [1, 1, 0, 0, 0],\n [1, 1, 0, 0, 1],\n [0, 0, 0, 1, 1],\n [0, 0, 0, 0, 0],\n [1, 1, 0, 1, 1]\n]\nisland_count(grid) # 4\n```\n\n### Notes:\n- The dimensions of `grid` are 1 <= m, n <= 50, where `m` is the number of rows and `n` is the number of columns in `grid`.\n- The function should handle both small and large grids efficiently.\n\n### Hints:\n- Consider using depth-first search (DFS) or breadth-first search (BFS) to explore each island.\n- Make sure to mark the visited land pieces to avoid counting the same island multiple times.",
"tests": {
"test_solution.py": "from solution import island_count\n\ndef test_single_island():\n grid = [\n [1, 1, 0, 0, 0],\n [1, 1, 0, 0, 0],\n [0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0]\n ]\n assert island_count(grid) == 1\n\ndef test_multiple_islands():\n grid = [\n [1, 1, 0, 0, 0],\n [1, 1, 0, 0, 1],\n [0, 0, 0, 1, 1],\n [0, 0, 0, 0, 0],\n [1, 1, 0, 1, 1]\n ]\n assert island_count(grid) == 4\n\ndef test_no_island():\n grid = [\n [0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0],\n [0, 0, 0, 0, 0]\n ]\n assert island_count(grid) == 0\n\ndef test_all_land():\n grid = [\n [1, 1, 1, 1, 1],\n [1, 1, 1, 1, 1],\n [1, 1, 1, 1, 1],\n [1, 1, 1, 1, 1]\n ]\n assert island_count(grid) == 1\n\ndef test_single_cell_islet():\n grid = [\n [1, 0, 0, 0, 1],\n [0, 0, 0, 0, 0],\n [0, 0, 0, 0, 1],\n [0, 1, 0, 0, 0]\n ]\n assert island_count(grid) == 4\n\ndef test_empty_grid():\n grid = []\n assert island_count(grid) == 0\n"
}
},
"0411412220751d72c322be1bbf81416b9043c6f140ba0b0943e49f5fb3e5291e": {
"task_hash": "0411412220751d72c322be1bbf81416b9043c6f140ba0b0943e49f5fb3e5291e",
"instruction": "Implement a Python class named `Book` with the following specifications:\n- The class should have an initializer that accepts three parameters: `title`, `author`, and `publication_year`.\n- Implement a method `details` that returns a formatted string: \"Title: {title}, Author: {author}, Published: {year}\".\n- Write a `main` function that creates an instance of `Book` using the sample input and prints the details of the book.\n\n**Sample Input:**\n- Title: \"1984\"\n- Author: \"George Orwell\"\n- Publication Year: 1949\n\n**Sample Output:**\n```\nTitle: 1984, Author: George Orwell, Published: 1949\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert Book(\"1984\", \"George Orwell\", 1949).details() == \"Title: 1984, Author: George Orwell, Published: 1949\"\n\ndef test_1():\n assert Book(\"To Kill a Mockingbird\", \"Harper Lee\", 1960).details() == \"Title: To Kill a Mockingbird, Author: Harper Lee, Published: 1960\"\n\ndef test_2():\n assert Book(\"The Great Gatsby\", \"F. Scott Fitzgerald\", 1925).details() == \"Title: The Great Gatsby, Author: F. Scott Fitzgerald, Published: 1925\"\n\ndef test_3():\n assert Book(\"Pride and Prejudice\", \"Jane Austen\", 1813).details() == \"Title: Pride and Prejudice, Author: Jane Austen, Published: 1813\"\n\ndef test_4():\n assert Book(\"Moby Dick\", \"Herman Melville\", 1851).details() == \"Title: Moby Dick, Author: Herman Melville, Published: 1851\"\n\ndef test_5():\n assert Book(\"War and Peace\", \"Leo Tolstoy\", 1869).details() == \"Title: War and Peace, Author: Leo Tolstoy, Published: 1869\"\n\ndef test_6():\n assert Book(\"The Catcher in the Rye\", \"J.D. Salinger\", 1951).details() == \"Title: The Catcher in the Rye, Author: J.D. Salinger, Published: 1951\"\n\ndef test_7():\n assert Book(\"The Hobbit\", \"J.R.R. Tolkien\", 1937).details() == \"Title: The Hobbit, Author: J.R.R. Tolkien, Published: 1937\"\n\ndef test_8():\n assert Book(\"Brave New World\", \"Aldous Huxley\", 1932).details() == \"Title: Brave New World, Author: Aldous Huxley, Published: 1932\"\n\ndef test_9():\n assert Book(\"Fahrenheit 451\", \"Ray Bradbury\", 1953).details() == \"Title: Fahrenheit 451, Author: Ray Bradbury, Published: 1953\"\n"
}
},
"04114c5889687acb2c2b849a82dfe72f63849793318ecfba2f9f62865a4ed473": {
"task_hash": "04114c5889687acb2c2b849a82dfe72f63849793318ecfba2f9f62865a4ed473",
"instruction": "Both Alice and Bob are passionate about number theory and enjoy playing games that involve numbers. Recently, they started playing a new game involving prime numbers and lists of integers.\n\nIn the game, they are given a list of n integers. Alice and Bob take turns, starting with Alice, to choose any integer from the list and replace it with any prime number of their choice. The chosen prime number must be greater than the integer being replaced. The game ends when it is impossible to replace any integer in the list with a prime number greater than itself.\n\nA prime number is a number greater than 1 that has no positive divisors other than 1 and itself.\n\nAlice wants the final product of all numbers in the list to be as small as possible, while Bob wants the product to be as large as possible. Both players play optimally.\n\nGiven the initial list of integers, what will be the final product of the numbers in the list if both Alice and Bob play optimally?\n\n-----Input-----\n\nThe first line of the input contains a single integer n (1 ≤ n ≤ 10^5), denoting the length of the list.\n\nThe second line contains n integers a_1, a_2, ..., a_n (1 ≤ a_i ≤ 10^6), the initial list of integers.\n\n-----Output-----\n\nPrint a single integer, which is the final product of all numbers in the list after Alice and Bob have played optimally. Print the answer modulo 10^9 + 7.\n\n-----Examples-----\nInput\n3\n4 6 8\n\nOutput\n60\n\nInput\n2\n10 5\n\nOutput\n143\n\nInput\n1\n2\n\nOutput\n3\n\n-----Note-----\n\nIn the first example, the initial list of integers is [4, 6, 8]. Alice replaces 4 with 5 (since 5 is the smallest prime greater than 4). The list becomes [5, 6, 8]. Bob replaces 6 with 7 (since 7 is the smallest prime greater than 6). The list becomes [5, 7, 8]. Alice replaces 8 with 11 (since 11 is the smallest prime greater than 8). The list becomes [5, 7, 11]. The final product is 5 * 7 * 11 = 385. The output should be 60 % (10^9 + 7) = 60.\n\nIn the second example, the initial list of integers is [10, 5]. Alice replaces 10 with 11. The list becomes [11, 5]. Bob replaces 5 with 7. The list becomes [11, 7]. The final product is 11 * 7 = 77. The output should be 143 % (10^9 + 7) = 143.",
"tests": {
"test_solution.py": "from solution import game_final_product\n\ndef test_example_1():\n assert game_final_product(3, [4, 6, 8]) == 385 % (10**9 + 7)\n\ndef test_example_2():\n assert game_final_product(2, [10, 5]) == 77 % (10**9 + 7)\n\ndef test_example_3():\n assert game_final_product(1, [2]) == 3 % (10**9 + 7)\n\ndef test_large_numbers():\n assert game_final_product(2, [1000000, 999999]) == (1000003 * 1000003) % (10**9 + 7)\n\ndef test_minimal_case():\n assert game_final_product(1, [1]) == 2 % (10**9 + 7)\n\ndef test_all_same():\n assert game_final_product(3, [5, 5, 5]) == (7 * 7 * 7) % (10**9 + 7)\n"
}
},
"041840b248b5c36d0382c045b56fe81d7157fc0eb35d87e73dca2a6dc6bd2ccc": {
"task_hash": "041840b248b5c36d0382c045b56fe81d7157fc0eb35d87e73dca2a6dc6bd2ccc",
"instruction": "Given two arrays of integers `arr1` and `arr2`, return the minimum number of operations required to make `arr1` and `arr2` identical. In one operation, you can either remove an integer from `arr1` or `arr2` or add an integer to `arr1` or `arr2`. It is guaranteed that the minimum number of operations needed will always be finite given the constraints. An operation may not change the order of elements within the arrays. The arrays may contain duplicate elements.",
"tests": {
"test_solution.py": "from solution import min_operations_to_make_identical\n\ndef test_identical_arrays():\n assert min_operations_to_make_identical([1, 2, 3], [1, 2, 3]) == 0\n\ndef test_arrays_with_different_elements():\n assert min_operations_to_make_identical([1, 2, 2, 3], [1, 2, 3, 4]) == 2\n\ndef test_empty_and_non_empty_array():\n assert min_operations_to_make_identical([], [1, 2, 3]) == 3\n assert min_operations_to_make_identical([1, 2, 3], []) == 3\n\ndef test_with_duplicate_elements():\n assert min_operations_to_make_identical([1, 1, 2, 3], [1, 2, 2, 3]) == 2\n\ndef test_arrays_with_no_common_elements():\n assert min_operations_to_make_identical([1, 2, 3], [4, 5, 6]) == 6\n"
}
},
"0424884a82bb64a713a564fd9d40447c642890aba0dee37165ce7e3558adb287": {
"task_hash": "0424884a82bb64a713a564fd9d40447c642890aba0dee37165ce7e3558adb287",
"instruction": "Given a directed graph represented as an adjacency list, determine if there is a path between two given nodes `start` and `end`. You must return `true` if a path exists and `false` otherwise. The graph does not contain any negative weight edges, and there are no self-loops. Each node in the graph is represented by an integer.",
"tests": {
"test_solution.py": "from solution import has_path\n\ndef test_direct_path():\n graph = {\n 0: [1, 2],\n 1: [3],\n 2: [],\n 3: []\n }\n assert has_path(graph, 0, 3) == True\n\ndef test_no_path():\n graph = {\n 0: [1, 2],\n 1: [2],\n 2: [],\n }\n assert has_path(graph, 0, 3) == False\n\ndef test_indirect_path():\n graph = {\n 0: [1],\n 1: [2],\n 2: [3],\n 3: []\n }\n assert has_path(graph, 0, 3) == True\n\ndef test_path_to_self():\n graph = {\n 0: [1, 2],\n 1: [3],\n 2: [],\n 3: []\n }\n assert has_path(graph, 3, 3) == True\n\ndef test_disconnected_graph():\n graph = {\n 0: [],\n 1: [],\n 2: [],\n 3: []\n }\n assert has_path(graph, 0, 1) == False\n assert has_path(graph, 1, 2) == False\n assert has_path(graph, 2, 3) == False\n"
}
},
"0429d5707e8ce2776753b400bf6c7ac4fc53316160b07c33bdd2f6722ee236bb": {
"task_hash": "0429d5707e8ce2776753b400bf6c7ac4fc53316160b07c33bdd2f6722ee236bb",
"instruction": "You are tasked with implementing a Python class named `Car` that models a car with attributes `make`, `model`, and `year`. Your class should include an initializer method to set these attributes and a method `describe` that returns a string formatted as \"This car is a {year} {make} {model}.\" \n\n**Sample Input:**\n```\ncar = Car(\"Toyota\", \"Corolla\", 2020)\n```\n\n**Sample Output:**\n```\nThis car is a 2020 Toyota Corolla.\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert Car(\"Toyota\", \"Corolla\", 2020).describe() == \"This car is a 2020 Toyota Corolla.\"\n\ndef test_1():\n assert Car(\"Honda\", \"Civic\", 2018).describe() == \"This car is a 2018 Honda Civic.\"\n\ndef test_2():\n assert Car(\"Ford\", \"Mustang\", 2022).describe() == \"This car is a 2022 Ford Mustang.\"\n\ndef test_3():\n assert Car(\"Chevrolet\", \"Impala\", 2019).describe() == \"This car is a 2019 Chevrolet Impala.\"\n\ndef test_4():\n assert Car(\"Tesla\", \"Model S\", 2021).describe() == \"This car is a 2021 Tesla Model S.\"\n\ndef test_5():\n assert Car(\"BMW\", \"X5\", 2023).describe() == \"This car is a 2023 BMW X5.\"\n\ndef test_6():\n assert Car(\"Audi\", \"A4\", 2017).describe() == \"This car is a 2017 Audi A4.\"\n\ndef test_7():\n assert Car(\"Mercedes-Benz\", \"C-Class\", 2020).describe() == \"This car is a 2020 Mercedes-Benz C-Class.\"\n\ndef test_8():\n assert Car(\"Lamborghini\", \"Aventador\", 2022).describe() == \"This car is a 2022 Lamborghini Aventador.\"\n\ndef test_9():\n assert Car(\"Porsche\", \"911\", 2019).describe() == \"This car is a 2019 Porsche 911.\"\n"
}
},
"043a7c04cc081191c2ca7ac2cf705b58bf78c615b8c14207541f8d3ef7d62fcf": {
"task_hash": "043a7c04cc081191c2ca7ac2cf705b58bf78c615b8c14207541f8d3ef7d62fcf",
"instruction": "You are given a list of `n` integers representing the heights of students standing in a row. The students are standing in the order of their heights from left to right. Each student wants to know the number of students who are taller than themselves and are standing to their right. Return an integer list where the `i-th` element is the number of students taller than the `i-th` student and to their right.",
"tests": {
"test_solution.py": "from solution import count_students_taller\n\ndef test_all_same_height():\n assert count_students_taller([150, 150, 150, 150]) == [0, 0, 0, 0]\n\ndef test_ascending_order():\n assert count_students_taller([150, 160, 170, 180]) == [3, 2, 1, 0]\n\ndef test_descending_order():\n assert count_students_taller([180, 170, 160, 150]) == [0, 0, 0, 0]\n\ndef test_random_order():\n assert count_students_taller([160, 150, 180, 170]) == [2, 2, 0, 0]\n assert count_students_taller([170, 160, 180, 150, 175]) == [2, 2, 0, 1, 0]\n\ndef test_single_element():\n assert count_students_taller([160]) == [0]\n\ndef test_two_elements():\n assert count_students_taller([160, 170]) == [1, 0]\n assert count_students_taller([170, 160]) == [0, 0]\n"
}
},
"043dee981bcba6aa6c149a2f0127b62e44bdcc23056334c765719b501efc6a09": {
"task_hash": "043dee981bcba6aa6c149a2f0127b62e44bdcc23056334c765719b501efc6a09",
"instruction": "You are given an array of integers arr and an integer target. Find the length of the smallest contiguous subarray whose sum is greater than or equal to target. If no such subarray exists, return 0.\n\nExample 1:\n\nGiven arr = [2,3,1,2,4,3] and target = 7,\n\nReturn: 2\n\nExplanation: The subarray [4,3] has the minimal length under the problem constraints.\n\nExample 2:\n\nGiven arr = [1,1,1,1,1,1,1,1] and target = 11,\n\nReturn: 0\n\nExplanation: No subarray sums to or exceeds target 11.\n\nExample 3:\n\nGiven arr = [1,4,4] and target = 4,\n\nReturn: 1\n\nExplanation: The subarray [4] has the minimal length under the problem constraints.\n\nThe solution should aim to achieve a time complexity better than O(n^2).",
"tests": {
"test_solution.py": "from solution import min_subarray_len\n\ndef test_min_subarray_len_example1():\n assert min_subarray_len([2,3,1,2,4,3], 7) == 2\n \ndef test_min_subarray_len_example2():\n assert min_subarray_len([1,1,1,1,1,1,1,1], 11) == 0\n \ndef test_min_subarray_len_example3():\n assert min_subarray_len([1,4,4], 4) == 1\n \ndef test_min_subarray_len_no_sublarray():\n assert min_subarray_len([1,2,3,4,5], 20) == 0\n\ndef test_min_subarray_len_single_element():\n assert min_subarray_len([5], 5) == 1\n assert min_subarray_len([3], 4) == 0\n\ndef test_min_subarray_len_large_array():\n arr = [1] * 10**6\n assert min_subarray_len(arr, 10**5) == 100000\n\ndef test_min_subarray_len_with_negatives():\n assert min_subarray_len([2, -1, 2, -1, 2, -1, 2], 3) == 3\n"
}
},
"044546c04b4b9782a255ac49fafe3dc23fc9d94aae9cf564617988ac2e4acb81": {
"task_hash": "044546c04b4b9782a255ac49fafe3dc23fc9d94aae9cf564617988ac2e4acb81",
"instruction": "Anna loves organizing strings and she recently found a new way to do so. She can perform different operations to make a string sorted in non-decreasing order:\n\n1. Select any single character in the string and change it to any other character from the English alphabet.\n2. Select any substring of the string and reverse it.\n\nAnna wants to know the minimum number of operations required to sort a given string in non-decreasing order.\n\n-----Input-----\n\nThe first line contains an integer $t$ ($1 \\le t \\le 100$) — the number of test cases.\n\nEach of the next $t$ lines contains a non-empty string $s$ consisting of lowercase English letters ($1 \\leq |s| \\leq 1000$).\n\n-----Output-----\n\nPrint $t$ integers — the answers to the given test cases in the order they are written in the test. Each answer is an integer: the minimum number of operations required to sort the string in non-decreasing order.\n\n-----Example-----\nInput\n3\ncba\nbca\nabc\n\nOutput\n2\n1\n0\n\n-----Explanation-----\n\nIn the first test case, one optimal solution is:\n1. Reverse the substring \"cba\" to get \"abc\" (1 operation).\n\nIn the second test case, one optimal solution is:\n1. Reverse the substring \"bca\" to get \"acb\" (1 operation).\n2. Change the first character 'a' to 'b', making the string \"abc\" (1 operation).\n\nIn the third test case, the string is already sorted, so no operations are needed.",
"tests": {
"test_solution.py": "from solution import min_operations_to_sort_string\n\ndef test_single_case_cba():\n assert min_operations_to_sort_string(1, ['cba']) == [2]\n\ndef test_single_case_bca():\n assert min_operations_to_sort_string(1, ['bca']) == [1]\n\ndef test_single_case_abc():\n assert min_operations_to_sort_string(1, ['abc']) == [0]\n\ndef test_multiple_cases():\n assert min_operations_to_sort_string(3, ['cba', 'bca', 'abc']) == [2, 1, 0]\n\ndef test_edge_case_single_char():\n assert min_operations_to_sort_string(1, ['a']) == [0]\n\ndef test_edge_case_identical_chars():\n assert min_operations_to_sort_string(1, ['aaaa']) == [0]\n\ndef test_no_operations_needed():\n assert min_operations_to_sort_string(2, ['abcd', 'aabb']) == [0, 0]\n\ndef test_reverse_entire_string():\n assert min_operations_to_sort_string(1, ['dcba']) == [3]\n\ndef test_min_change_and_reverse():\n assert min_operations_to_sort_string(1, ['badc']) == [2]\n"
}
},
"044791d2e939da207a4e9361b9880fa916d90d2da4b5e7f6ad108aa033c546db": {
"task_hash": "044791d2e939da207a4e9361b9880fa916d90d2da4b5e7f6ad108aa033c546db",
"instruction": "Alex is developing his own tiny database management system. For one of its features, he needs to support range sum queries efficiently. Given an array of numbers, Alex wants to perform the following two operations:\n1. Update the value at a specific index.\n2. Calculate the sum of elements within a given range (inclusive of both ends).\n\nHelp Alex implement this feature by designing a program that allows efficient range sum queries and point updates on an array.\n\n-----Input:-----\n- The first line contains three integers N, Q1, and Q2, where N is the number of elements in the array, Q1 is the number of update queries, and Q2 is the number of range sum queries.\n- The second line contains N integers, the initial values of the array.\n- The next Q1 lines each contain two integers i and x, indicating that the element at index i (0-based) should be updated to x.\n- The final Q2 lines each contain two integers l and r, indicating that a range sum query needs to be performed from index l to index r (inclusive).\n\n-----Output:-----\nFor each range sum query, output the sum of the elements in the specified range.\n\n-----Constraints-----\n- $1 \\leq N \\leq 1000$\n- $1 \\leq Q1, Q2 \\leq 1000$\n- $1 \\leq l \\leq r \\leq N-1$\n- $-10^9 \\leq \\text{array elements}, x \\leq 10^9$\n\n-----Sample Input:-----\n5 2 2\n1 2 3 4 5\n1 10\n3 -2\n0 2\n1 4\n\n-----Sample Output:-----\n14\n26\n\n-----Explanation:-----\nExample: \n- Initial array: [1, 2, 3, 4, 5]\n- After the first update query (1, 10): [1, 10, 3, 4, 5]\n- After the second update query (3, -2): [1, 10, 3, -2, 5]\n- Range sum query (0, 2): 1 + 10 + 3 = 14\n- Range sum query (1, 4): 10 + 3 - 2 + 5 = 16",
"tests": {
"test_solution.py": "from solution import perform_operations\n\ndef test_simple_case():\n N, Q1, Q2 = 5, 2, 2\n initial_array = [1, 2, 3, 4, 5]\n updates = [(1, 10), (3, -2)]\n range_queries = [(0, 2), (1, 4)]\n assert perform_operations(N, Q1, Q2, initial_array, updates, range_queries) == [14, 16]\n\ndef test_no_updates():\n N, Q1, Q2 = 5, 0, 1\n initial_array = [1, 2, 3, 4, 5]\n updates = []\n range_queries = [(1, 3)]\n assert perform_operations(N, Q1, Q2, initial_array, updates, range_queries) == [9]\n\ndef test_all_elements_same():\n N, Q1, Q2 = 5, 5, 2\n initial_array = [0] * 5\n updates = [(0, 1), (1, 1), (2, 1), (3, 1), (4, 1)]\n range_queries = [(0, 4), (2, 3)]\n assert perform_operations(N, Q1, Q2, initial_array, updates, range_queries) == [5, 2]\n\ndef test_edge_case():\n N, Q1, Q2 = 1, 1, 1\n initial_array = [10]\n updates = [(0, -10)]\n range_queries = [(0, 0)]\n assert perform_operations(N, Q1, Q2, initial_array, updates, range_queries) == [-10]\n\ndef test_large_numbers():\n N, Q1, Q2 = 3, 2, 1\n initial_array = [10**9, -10**9, 10**9]\n updates = [(1, 10**9), (2, -10**9)]\n range_queries = [(0, 2)]\n assert perform_operations(N, Q1, Q2, initial_array, updates, range_queries) == [10**9]\n"
}
},
"045185843c34aed3081ce63d9b7da1cdc81651f0be94a3d8f2f2ba332169b3c7": {
"task_hash": "045185843c34aed3081ce63d9b7da1cdc81651f0be94a3d8f2f2ba332169b3c7",
"instruction": "You are given a list of books, where each book is represented as a tuple containing the title and the author. Your task is to implement a function `generate_book_summary` that takes this list as input and returns a string summarizing the books in a specific format. The output should list each book in the format \"Book X: Title by Author\", where X is the position of the book in the list (starting from 1). The function should handle any number of books provided in the input list.\n\n**Sample Input:**\n```python\nbooks = [(\"Pride and Prejudice\", \"Jane Austen\"), (\"To Kill a Mockingbird\", \"Harper Lee\")]\n```\n\n**Sample Output:**\n```\n\"Book 1: Pride and Prejudice by Jane Austen, Book 2: To Kill a Mockingbird by Harper Lee\"\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert generate_book_summary([(\"Pride and Prejudice\", \"Jane Austen\"), (\"To Kill a Mockingbird\", \"Harper Lee\")]) == \"Book 1: Pride and Prejudice by Jane Austen, Book 2: To Kill a Mockingbird by Harper Lee\"\n\ndef test_1():\n assert generate_book_summary([(\"1984\", \"George Orwell\")]) == \"Book 1: 1984 by George Orwell\"\n\ndef test_2():\n assert generate_book_summary([]) == \"\"\n\ndef test_3():\n assert generate_book_summary([(\"The Great Gatsby\", \"F. Scott Fitzgerald\"), (\"Moby Dick\", \"Herman Melville\"), (\"War and Peace\", \"Leo Tolstoy\")]) == \"Book 1: The Great Gatsby by F. Scott Fitzgerald, Book 2: Moby Dick by Herman Melville, Book 3: War and Peace by Leo Tolstoy\"\n\ndef test_4():\n assert generate_book_summary([(\"Brave New World\", \"Aldous Huxley\"), (\"Animal Farm\", \"George Orwell\")]) == \"Book 1: Brave New World by Aldous Huxley, Book 2: Animal Farm by George Orwell\"\n\ndef test_5():\n assert generate_book_summary([(\"The Catcher in the Rye\", \"J.D. Salinger\"), (\"The Hobbit\", \"J.R.R. Tolkien\"), (\"Fahrenheit 451\", \"Ray Bradbury\"), (\"The Lord of the Rings\", \"J.R.R. Tolkien\")]) == \"Book 1: The Catcher in the Rye by J.D. Salinger, Book 2: The Hobbit by J.R.R. Tolkien, Book 3: Fahrenheit 451 by Ray Bradbury, Book 4: The Lord of the Rings by J.R.R. Tolkien\"\n\ndef test_6():\n assert generate_book_summary([(\"The Odyssey\", \"Homer\"), (\"The Iliad\", \"Homer\")]) == \"Book 1: The Odyssey by Homer, Book 2: The Iliad by Homer\"\n\ndef test_7():\n assert generate_book_summary([(\"The Picture of Dorian Gray\", \"Oscar Wilde\"), (\"The Importance of Being Earnest\", \"Oscar Wilde\")]) == \"Book 1: The Picture of Dorian Gray by Oscar Wilde, Book 2: The Importance of Being Earnest by Oscar Wilde\"\n\ndef test_8():\n assert generate_book_summary([(\"The Brothers Karamazov\", \"Fyodor Dostoevsky\"), (\"Crime and Punishment\", \"Fyodor Dostoevsky\"), (\"Notes from a Dead House\", \"Fyodor Dostoevsky\")]) == \"Book 1: The Brothers Karamazov by Fyodor Dostoevsky, Book 2: Crime and Punishment by Fyodor Dostoevsky, Book 3: Notes from a Dead House by Fyodor Dostoevsky\"\n\ndef test_9():\n assert generate_book_summary([(\"The Trial\", \"Franz Kafka\"), (\"Metamorphosis\", \"Franz Kafka\"), (\"The Castle\", \"Franz Kafka\")]) == \"Book 1: The Trial by Franz Kafka, Book 2: Metamorphosis by Franz Kafka, Book 3: The Castle by Franz Kafka\"\n"
}
},
"045821826b855ebe59ed10b5ec28eb5100691a789f8ab3cd308288d8b924d84f": {
"task_hash": "045821826b855ebe59ed10b5ec28eb5100691a789f8ab3cd308288d8b924d84f",
"instruction": "Implement a Python class `Car` with the following specifications:\n\n- **Attributes:**\n - `make`: A string representing the manufacturer of the car.\n - `model`: A string representing the model of the car.\n - `year`: An integer representing the year the car was manufactured.\n - `speed`: An integer representing the current speed of the car, initialized to 0.\n\n- **Methods:**\n - `start()`: Prints \"Engine started.\"\n - `stop()`: Prints \"Engine stopped.\"\n - `accelerate()`: Increases the speed of the car by 10 units.\n - `brake()`: Decreases the speed of the car by 10 units, ensuring the speed does not go below 0.\n\n**Sample Input/Output:**\n```python\ncar = Car(\"Toyota\", \"Corolla\", 2020)\ncar.start() # Output: Engine started.\ncar.accelerate()\ncar.accelerate()\nprint(car.speed) # Output: 20\ncar.brake()\nprint(car.speed) # Output: 10\ncar.stop() # Output: Engine stopped.\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert Car(\"Toyota\", \"Corolla\", 2020).make == \"Toyota\"\n\ndef test_1():\n assert Car(\"Honda\", \"Civic\", 2019).model == \"Civic\"\n\ndef test_2():\n assert Car(\"Ford\", \"Mustang\", 2021).year == 2021\n\ndef test_3():\n assert Car(\"Chevrolet\", \"Camaro\", 2022).speed == 0\n"
}
},
"04783b840ae3b5d894ce34fbcd61901d72ab2b1d307b87c27bf550a21b2c7c90": {
"task_hash": "04783b840ae3b5d894ce34fbcd61901d72ab2b1d307b87c27bf550a21b2c7c90",
"instruction": "You are given a string `s` consisting of lowercase English letters and a string `t` consisting of lowercase English letters. Your task is to form a new string by removing characters from `s` such that the new string is an anagram of `t`. If it is not possible to form such a string, return `\"-1\"`. An anagram of a string `t` is another string that contains the same characters, only the order of characters can be different. Return _the minimum number of characters you need to remove from `s` to make it an anagram of `t` or `\"-1\"` if it is impossible_.",
"tests": {
"test_solution.py": "from solution import min_removals_to_make_anagram\n\ndef test_min_removals_possible_anagram():\n assert min_removals_to_make_anagram(\"abcbca\", \"abc\") == 3\n\ndef test_min_removals_identical_strings():\n assert min_removals_to_make_anagram(\"aabbcc\", \"aabbcc\") == 0\n\ndef test_min_removals_impossible():\n assert min_removals_to_make_anagram(\"abcd\", \"efg\") == \"-1\"\n\ndef test_min_removals_extra_characters():\n assert min_removals_to_make_anagram(\"aaabbbccc\", \"abc\") == 6\n\ndef test_min_removals_empty_t():\n assert min_removals_to_make_anagram(\"abc\", \"\") == 3\n\ndef test_min_removals_t_contains_more_of_a_character():\n assert min_removals_to_make_anagram(\"aabbcc\", \"abcdef\") == \"-1\"\n\ndef test_min_removals_t_longer_than_s():\n assert min_removals_to_make_anagram(\"abc\", \"abcd\") == \"-1\"\n"
}
},
"0485bd902740125b08f52b0f5804fb9546a4fb48e14528d8671dd05fd8dcbc74": {
"task_hash": "0485bd902740125b08f52b0f5804fb9546a4fb48e14528d8671dd05fd8dcbc74",
"instruction": "You are given two strings `s` and `t` of length `n`, consisting only of lowercase alphabetic characters. You can swap the characters at any two indices of `t`. Determine if it's possible to make `t` equal to `s` by performing at most one swap. If it is possible, return `true`; otherwise, return `false`.",
"tests": {
"test_solution.py": "from solution import can_swap_to_equal\n\ndef test_identical_strings():\n assert can_swap_to_equal(\"abcdef\", \"abcdef\") == True\n\ndef test_one_swap_possible():\n assert can_swap_to_equal(\"abcdef\", \"abcfed\") == True\n\ndef test_not_possible_with_one_swap():\n assert can_swap_to_equal(\"abcdef\", \"abcfde\") == False\n\ndef test_more_than_two_differences():\n assert can_swap_to_equal(\"abcdef\", \"abdcfe\") == False\n\ndef test_empty_strings():\n assert can_swap_to_equal(\"\", \"\") == True\n\ndef test_one_character_different():\n assert can_swap_to_equal(\"a\", \"b\") == False\n\ndef test_two_character_swap_no_solution():\n assert can_swap_to_equal(\"ab\", \"cd\") == False\n\ndef test_just_one_character_change():\n assert can_swap_to_equal(\"abcde\", \"abfde\") == False\n"
}
},
"04b3ad686305c4af0fbce723b35c3271d661b743c3f4d65a4cb13fe0e2e8a279": {
"task_hash": "04b3ad686305c4af0fbce723b35c3271d661b743c3f4d65a4cb13fe0e2e8a279",
"instruction": "You are given a string `s` consisting of alphabetic characters only. You need to determine the **longest palindromic substring** contained in `s`. Return _the longest palindromic substring_. If there are multiple with the same length, return the one that appears first.",
"tests": {
"test_solution.py": "from solution import longest_palindromic_substring\n\ndef test_single_character():\n assert longest_palindromic_substring(\"a\") == \"a\"\n\ndef test_even_length_palindrome():\n assert longest_palindromic_substring(\"abba\") == \"abba\"\n\ndef test_odd_length_palindrome():\n assert longest_palindromic_substring(\"racecar\") == \"racecar\"\n\ndef test_non_palindromic_string():\n assert longest_palindromic_substring(\"abcde\") == \"a\"\n\ndef test_multiple_palindromes():\n assert longest_palindromic_substring(\"babad\") == \"bab\" or longest_palindromic_substring(\"babad\") == \"aba\"\n\ndef test_palindrome_at_start():\n assert longest_palindromic_substring(\"abacdfgdcaba\") == \"aba\"\n\ndef test_entire_string_is_palindrome():\n assert longest_palindromic_substring(\"madam\") == \"madam\"\n\ndef test_longest_palindrome_in_middle():\n assert longest_palindromic_substring(\"forgeeksskeegfor\") == \"geeksskeeg\"\n\ndef test_empty_string():\n assert longest_palindromic_substring(\"\") == \"\"\n"
}
},
"04b9e67e027561a419644eac46486e147917eff9f502b12d15701b799dddd132": {
"task_hash": "04b9e67e027561a419644eac46486e147917eff9f502b12d15701b799dddd132",
"instruction": "Given a list of `n` integers where each integer in the list falls between 1 and `n` inclusive, some integers may appear multiple times while others may be missing. Write a function that returns a list of all the integers between 1 and `n` that do not appear in the list. Duplicate numbers should not be included in the output.\n\nFor example, given the input `[4,3,2,7,8,2,3,1]`, the output should be `[5,6]`.",
"tests": {
"test_solution.py": "from solution import find_missing_numbers\n\ndef test_find_missing_numbers_all_present():\n assert find_missing_numbers([1, 2, 3, 4, 5]) == []\n\ndef test_find_missing_numbers_some_missing():\n assert find_missing_numbers([4, 3, 2, 7, 8, 2, 3, 1]) == [5, 6]\n assert find_missing_numbers([1, 2, 3, 4, 7, 7, 7, 8]) == [5, 6]\n\ndef test_find_missing_numbers_single_element_missing():\n assert find_missing_numbers([2, 2]) == [1]\n assert find_missing_numbers([1, 1]) == [2]\n\ndef test_find_missing_numbers_all_missing():\n assert find_missing_numbers([7, 7, 7, 7, 7, 7, 7, 7]) == [1, 2, 3, 4, 5, 6, 8]\n assert find_missing_numbers([8, 8, 8, 8, 8, 8, 8, 8]) == [1, 2, 3, 4, 5, 6, 7]\n\ndef test_find_missing_numbers_empty_list():\n assert find_missing_numbers([]) == []\n"
}
},
"04be119018a40eba9b8deef69e67fa168b7c22a0d81741254f8d7b314e8462bf": {
"task_hash": "04be119018a40eba9b8deef69e67fa168b7c22a0d81741254f8d7b314e8462bf",
"instruction": "You are given a sorted list of integers and a target integer. Implement a function `binary_search` that returns the index of the target integer in the list. If the target integer is not present in the list, return -1. Your function should handle edge cases such as an empty list or a target outside the range of the list.\n\n**Input:**\n- The first line contains an integer `n` (0 ≤ n ≤ 10^5), the number of elements in the sorted list.\n- The second line contains `n` space-separated integers representing the sorted list.\n- The third line contains an integer `target`, the value to search for.\n\n**Output:**\n- Print the index of the target integer in the list, or -1 if the target is not found.\n\n**Sample Input:**\n```\n10\n1 2 3 4 5 6 7 8 9 10\n5\n```\n\n**Sample Output:**\n```\n4\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert binary_search([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 5) == 4\n\ndef test_1():\n assert binary_search([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 1) == 0\n\ndef test_2():\n assert binary_search([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 10) == 9\n\ndef test_3():\n assert binary_search([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 0) == -1\n\ndef test_4():\n assert binary_search([1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 11) == -1\n\ndef test_5():\n assert binary_search([], 5) == -1\n\ndef test_6():\n assert binary_search([1], 1) == 0\n\ndef test_7():\n assert binary_search([1], 2) == -1\n\ndef test_8():\n assert binary_search([1, 3, 5, 7, 9], 3) == 1\n\ndef test_9():\n assert binary_search([1, 3, 5, 7, 9], 8) == -1\n"
}
},
"04beb6e02cc6dfb7ce4beb13fe366ee271190d3029ff9c220ee52b620749fd85": {
"task_hash": "04beb6e02cc6dfb7ce4beb13fe366ee271190d3029ff9c220ee52b620749fd85",
"instruction": "You are tasked with implementing a function `convert_to_roman` that converts an integer to its Roman numeral representation. The function should handle integers in the range from 1 to 3999, inclusive. Roman numerals are represented by the following symbols: `I` for 1, `V` for 5, `X` for 10, `L` for 50, `C` for 100, `D` for 500, and `M` for 1000. In Roman numeral notation, symbols are typically written from largest to smallest from left to right. However, there are exceptions where smaller numerals are placed before larger numerals to denote subtraction, such as `IV` for 4 (5 - 1) and `IX` for 9 (10 - 1). Your function should correctly handle these cases.\n\n**Sample Input:**\n```\nconvert_to_roman(3)\nconvert_to_roman(58)\nconvert_to_roman(1994)\n```\n\n**Sample Output:**\n```\n'III'\n'LVIII'\n'MCMXCIV'\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert convert_to_roman(1) == \"I\"\n\ndef test_1():\n assert convert_to_roman(4) == \"IV\"\n\ndef test_2():\n assert convert_to_roman(9) == \"IX\"\n\ndef test_3():\n assert convert_to_roman(58) == \"LVIII\"\n\ndef test_4():\n assert convert_to_roman(1994) == \"MCMXCIV\"\n\ndef test_5():\n assert convert_to_roman(3999) == \"MMMCMXCIX\"\n\ndef test_6():\n assert convert_to_roman(500) == \"D\"\n\ndef test_7():\n assert convert_to_roman(1000) == \"M\"\n\ndef test_8():\n assert convert_to_roman(444) == \"CDXLIV\"\n\ndef test_9():\n assert convert_to_roman(2023) == \"MMXXIII\"\n"
}
},
"04c17772841c3613e37942d921494532949731257f92118db750c172bfea3455": {
"task_hash": "04c17772841c3613e37942d921494532949731257f92118db750c172bfea3455",
"instruction": "You are given a list of integers `nums` and an integer `target`. Your task is to find whether there exist three numbers in `nums` such that their sum is exactly equal to `target`. Return `True` if there are such three numbers, otherwise return `False`. You may assume that each input would have exactly one solution, and you may not use the same element more than once.",
"tests": {
"test_solution.py": "from solution import three_sum\n\ndef test_three_sum_exists():\n assert three_sum([1, 2, 3, 4, 5], 9) == True # 2 + 3 + 4 = 9\n assert three_sum([1, 2, 3, 4, 5], 10) == True # 1 + 4 + 5 = 10\n assert three_sum([1, 2, 3, 4, 5, 6], 11) == True # 1 + 4 + 6 = 11\n assert three_sum([1, 2, 3, 4, 5, 6, 7], 18) == True # 5 + 6 + 7 = 18\n\ndef test_three_sum_does_not_exist():\n assert three_sum([1, 2, 3, 4, 5], 20) == False # No combination sums to 20\n assert three_sum([1, 2, 4, 5, 6], 2) == False # No combination sums to 2\n assert three_sum([-1, -2, -3, -4, -5], 0) == False # Negative numbers cannot sum to positive 0\n\ndef test_three_sum_with_negatives():\n assert three_sum([-1, -2, -3, -4, -5, 0, 1, 2, 3, 4, 5], 0) == True # -2 + 0 + 2 = 0\n assert three_sum([-1, 1, 2, 3, 4, 5], 6) == True # -1 + 2 + 5 = 6\n\ndef test_three_sum_multiple_combinations():\n assert three_sum([1, 1, 1, 2, 2, 2, 3, 3, 3], 6) == True # Multiple combinations like 1 + 2 + 3 = 6\n"
}
},
"04c657b07c1a1185ca77dc71b951d2a5c3279e4de46311cc07333f1621b4d975": {
"task_hash": "04c657b07c1a1185ca77dc71b951d2a5c3279e4de46311cc07333f1621b4d975",
"instruction": "You are given a list of integers. Implement the `merge_sort` function to sort the list in ascending order using the merge sort algorithm. Your function should return a new sorted list. The input list can contain up to 10^5 integers, each ranging from -10^9 to 10^9.\n\n**Sample Input:**\n```\n[38, 27, 43, 3, 9, 82, 10]\n```\n\n**Sample Output:**\n```\n[3, 9, 10, 27, 38, 43, 82]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert merge_sort([38, 27, 43, 3, 9, 82, 10]) == [3, 9, 10, 27, 38, 43, 82]\n\ndef test_1():\n assert merge_sort([5, 2, 9, 1, 5, 6]) == [1, 2, 5, 5, 6, 9]\n\ndef test_2():\n assert merge_sort([1, 2, 3, 4, 5]) == [1, 2, 3, 4, 5]\n\ndef test_3():\n assert merge_sort([5, 4, 3, 2, 1]) == [1, 2, 3, 4, 5]\n\ndef test_4():\n assert merge_sort([]) == []\n\ndef test_5():\n assert merge_sort([1]) == [1]\n\ndef test_6():\n assert merge_sort([7, 7, 7, 7]) == [7, 7, 7, 7]\n\ndef test_7():\n assert merge_sort([10, -1, 2, 5, 0, 6, 4, -5, 3]) == [-5, -1, 0, 2, 3, 4, 5, 6, 10]\n\ndef test_8():\n assert merge_sort([100, 90, 80, 70, 60, 50, 40, 30, 20, 10]) == [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]\n\ndef test_9():\n assert merge_sort([1, 3, 2, 4, 6, 5, 7, 9, 8, 0]) == [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n"
}
},
"04c7210e5f6528d156cfcc0bbbd666e971c636d2986fc66dc3bfadec464e83ea": {
"task_hash": "04c7210e5f6528d156cfcc0bbbd666e971c636d2986fc66dc3bfadec464e83ea",
"instruction": "You are given a **0-indexed** integer array `nums` of length `n`. A subarray is a contiguous non-empty sequence of elements within an array. Define the **width** of a subarray as the difference between the maximum and minimum element in that subarray. Return the **maximum width** of any subarray of `nums` that meets the following condition: the subarray's width **must not exceed** a given integer `limit`. Your solution should run in `O(n log n)` time.",
"tests": {
"test_solution.py": "from solution import longest_subarray_with_limit\n\ndef test_example_case():\n assert longest_subarray_with_limit([8, 2, 4, 7], 4) == 2\n\ndef test_large_limit():\n assert longest_subarray_with_limit([10, 1, 2, 4, 7, 2], 5) == 4\n\ndef test_small_limit():\n assert longest_subarray_with_limit([4, 2, 2, 2, 4, 4, 2, 2], 0) == 3\n\ndef test_entire_array_within_limit():\n assert longest_subarray_with_limit([1, 2, 3, 4, 5], 4) == 5\n\ndef test_no_valid_subarray():\n assert longest_subarray_with_limit([1, 2, 3, 4, 5], 0) == 1\n\ndef test_single_element_array():\n assert longest_subarray_with_limit([100], 10) == 1\n\ndef test_all_same_elements():\n assert longest_subarray_with_limit([7, 7, 7, 7, 7], 0) == 5\n"
}
},
"04d09ea08d422d5d98bd617ab8d061c812dcfa662bdea0bce9a976f98adab6be": {
"task_hash": "04d09ea08d422d5d98bd617ab8d061c812dcfa662bdea0bce9a976f98adab6be",
"instruction": "A company is organizing a coding contest with `n` participants and needs to assign each participant one or more practice problems. Each problem has a unique difficulty level denoted by an integer. The organizer wants to ensure that every participant receives at least one problem and no two participants receive the same set of problems to avoid any unfair advantage.\n\nAn assignment is represented by an array `problems`, where `problems[i]` is the set of problems assigned to the `i`-th participant. Given `m` problems numbered `1` to `m`, determine _the **minimum** number of problems needed to ensure that each participant receives a unique set of problems._\n\nReturn _the **minimum** number of problems required._",
"tests": {
"test_solution.py": "from solution import minimum_problems\n\ndef test_minimum_problems_for_1_participant():\n assert minimum_problems(1) == 1\n\ndef test_minimum_problems_for_2_participants():\n assert minimum_problems(2) == 2\n\ndef test_minimum_problems_for_3_participants():\n assert minimum_problems(3) == 2 # with 1 problem: 2^1 - 1 = 1 combination; 2 problems: 2^2 - 1 = 3 combinations\n\ndef test_minimum_problems_for_4_participants():\n assert minimum_problems(4) == 3 # with 2 problems: 2^2 - 1 = 3 combinations; 3 problems: 2^3 - 1 = 7 combinations\n\ndef test_minimum_problems_for_7_participants():\n assert minimum_problems(7) == 3 # with 3 problems: 7 combinations\n\ndef test_minimum_problems_for_8_participants():\n assert minimum_problems(8) == 4 # with 4 problems: 2^4 - 1 = 15 combinations\n"
}
},
"04d302d07c48d01d3f064fb1fecbd4c3af6b0abeb6abbe38fa2641121e3202c6": {
"task_hash": "04d302d07c48d01d3f064fb1fecbd4c3af6b0abeb6abbe38fa2641121e3202c6",
"instruction": "A university records the grades of its students in a series of subjects. Each student has a unique ID and receives a grade between 0 and 100 in each subject. Write a program that will process multiple queries to find the average grade for a particular student across all subjects they are enrolled in.\n\n-----Input:-----\n- First-line will contain $Q$, the number of queries. Then the queries follow.\n- Each query contains the following:\n - An integer $T$ representing the type of query (1 for entering a grade, 2 for querying the average grade).\n - If $T$ is 1:\n - A string $ID$, representing the student's ID.\n - A string $subject$, representing the subject.\n - An integer $grade$, representing the student's grade in the subject (0 ≤ grade ≤ 100).\n - If $T$ is 2:\n - A string $ID$, representing the student's ID.\n\n-----Output:-----\nFor each query of type 2, output the average grade for the student ID provided, rounded to two decimal places. If the student has no recorded grades, output \"No grades recorded\".\n\n-----Constraints-----\n- $1 \\leq Q \\leq 10^5$\n- $1 \\leq |ID|, |subject| \\leq 10$\n- $0 \\leq grade \\leq 100$\n\n-----Sample Input:-----\n6\n1 Alice Physics 85\n1 Alice Math 90\n1 Bob Physics 80\n2 Alice\n2 Bob\n2 Charlie\n\n-----Sample Output:-----\n87.50\n80.00\nNo grades recorded",
"tests": {
"test_solution.py": "from solution import process_queries\n\ndef test_with_given_sample():\n queries = [\n (1, 'Alice', 'Physics', 85),\n (1, 'Alice', 'Math', 90),\n (1, 'Bob', 'Physics', 80),\n (2, 'Alice'),\n (2, 'Bob'),\n (2, 'Charlie')\n ]\n assert process_queries(queries) == [\"87.50\", \"80.00\", \"No grades recorded\"]\n\ndef test_with_no_grades_recorded():\n queries = [\n (2, 'Alice'),\n (2, 'Bob')\n ]\n assert process_queries(queries) == [\"No grades recorded\", \"No grades recorded\"]\n\ndef test_with_one_student_multiple_grades():\n queries = [\n (1, 'Alice', 'Physics', 85),\n (1, 'Alice', 'Math', 90),\n (1, 'Alice', 'Chemistry', 80),\n (2, 'Alice')\n ]\n assert process_queries(queries) == [\"85.00\"]\n\ndef test_with_multiple_students():\n queries = [\n (1, 'Alice', 'Physics', 85),\n (1, 'Bob', 'Math', 90),\n (2, 'Alice'),\n (2, 'Bob')\n ]\n assert process_queries(queries) == [\"85.00\", \"90.00\"]\n\ndef test_with_grade_updates():\n queries = [\n (1, 'Alice', 'Math', 90),\n (1, 'Alice', 'Math', 95),\n (2, 'Alice')\n ]\n assert process_queries(queries) == [\"95.00\"]\n"
}
},
"0510f7c0e1f1d4d284060fb5bf20c593e100ece8422063ead7045db4eb853385": {
"task_hash": "0510f7c0e1f1d4d284060fb5bf20c593e100ece8422063ead7045db4eb853385",
"instruction": "You are given a string `s` representing a URL. Your task is to implement a function `parse_url` that parses the URL and returns a dictionary with the following keys: `scheme`, `netloc`, `path`, `params`, `query`, and `fragment`. The `query` component should be represented as a dictionary where each key is a query parameter name and the value is a list of values for that parameter. Use the `urllib.parse` module for parsing.\n\n**Input:**\n- A single string `s` (1 ≤ |s| ≤ 1000) representing a valid URL.\n\n**Output:**\n- A dictionary with keys `scheme`, `netloc`, `path`, `params`, `query`, and `fragment`.\n\n**Sample Input:**\n```\nhttps://www.example.com/path/to/resource;params?query1=value1&query2=value2#fragment\n```\n\n**Sample Output:**\n```python\n{\n 'scheme': 'https',\n 'netloc': 'www.example.com',\n 'path': '/path/to/resource',\n 'params': 'params',\n 'query': {'query1': ['value1'], 'query2': ['value2']},\n 'fragment': 'fragment'\n}\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert parse_url(\"http://example.com\") == {'scheme': 'http', 'netloc': 'example.com', 'path': '', 'params': '', 'query': {}, 'fragment': ''}\n\ndef test_1():\n assert parse_url(\"https://www.example.com/path/to/resource\") == {'scheme': 'https', 'netloc': 'www.example.com', 'path': '/path/to/resource', 'params': '', 'query': {}, 'fragment': ''}\n\ndef test_2():\n assert parse_url(\"ftp://ftp.example.com/resource;params\") == {'scheme': 'ftp', 'netloc': 'ftp.example.com', 'path': '/resource', 'params': 'params', 'query': {}, 'fragment': ''}\n\ndef test_3():\n assert parse_url(\"http://example.com?query=param&another=one\") == {'scheme': 'http', 'netloc': 'example.com', 'path': '', 'params': '', 'query': {'query': ['param'], 'another': ['one']}, 'fragment': ''}\n\ndef test_4():\n assert parse_url(\"https://example.com#fragment\") == {'scheme': 'https', 'netloc': 'example.com', 'path': '', 'params': '', 'query': {}, 'fragment': 'fragment'}\n\ndef test_5():\n assert parse_url(\"http://user:pass@host:8080/path;params?query=param#fragment\") == {'scheme': 'http', 'netloc': 'user:pass@host:8080', 'path': '/path', 'params': 'params', 'query': {'query': ['param']}, 'fragment': 'fragment'}\n\ndef test_6():\n assert parse_url(\"https://example.com/path/to/resource?query=param&query=another\") == {'scheme': 'https', 'netloc': 'example.com', 'path': '/path/to/resource', 'params': '', 'query': {'query': ['param', 'another']}, 'fragment': ''}\n\ndef test_7():\n assert parse_url(\"http://example.com/path/to/resource?query=param&another=one#fragment\") == {'scheme': 'http', 'netloc': 'example.com', 'path': '/path/to/resource', 'params': '', 'query': {'query': ['param'], 'another': ['one']}, 'fragment': 'fragment'}\n\ndef test_8():\n assert parse_url(\"http://example.com/path/to/resource?query=param&another=one&another=two#fragment\") == {'scheme': 'http', 'netloc': 'example.com', 'path': '/path/to/resource', 'params': '', 'query': {'query': ['param'], 'another': ['one', 'two']}, 'fragment': 'fragment'}\n\ndef test_9():\n assert parse_url(\"http://example.com/path/to/resource?query=param&another=one&another=two&another=three#fragment\") == {'scheme': 'http', 'netloc': 'example.com', 'path': '/path/to/resource', 'params': '', 'query': {'query': ['param'], 'another': ['one', 'two', 'three']}, 'fragment': 'fragment'}\n"
}
},
"05186366a2bae73f2b843bd8e1bbcb7d0ddee67b095ec47ddf124d4ee173aaa1": {
"task_hash": "05186366a2bae73f2b843bd8e1bbcb7d0ddee67b095ec47ddf124d4ee173aaa1",
"instruction": "You are tasked with implementing a binary tree data structure in Python. Your implementation should include the following functionalities:\n- Insert a value into the binary tree.\n- Perform an in-order traversal of the tree and return the result as a list.\n- Calculate and return the height of the tree.\n\nYour implementation should use a nested `Node` class to represent individual nodes in the tree. The `Node` class should have attributes for the left and right children and the node's value.\n\n**Input:**\n- A series of integers representing the values to be inserted into the binary tree.\n\n**Output:**\n- A list representing the in-order traversal of the tree.\n- An integer representing the height of the tree.\n\n**Sample Input:**\n```\n50 30 20 40 70 60 80\n```\n\n**Sample Output:**\n```\nInorder Traversal: [20, 30, 40, 50, 60, 70, 80]\nHeight of the tree: 3\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert BinaryTree().height() == 0\n\ndef test_1():\n assert BinaryTree().inorder_traversal() == []\n"
}
},
"0525e7b6ae6e823e3ae52f9e445a358ac8c9178507858b34a24677a115d66a1b": {
"task_hash": "0525e7b6ae6e823e3ae52f9e445a358ac8c9178507858b34a24677a115d66a1b",
"instruction": "Given an integer array `nums` representing the value of a row of houses, where each house has some value. You have to rob houses in such a way that no two adjacent houses are robbed. Return the maximum amount of money you can rob tonight without alerting the police. Each house can be represented as `nums[i]` and you must compute the maximum money from `0` to `n-1` given that you can't rob two consecutive houses.\n\n[Question] 4:",
"tests": {
"test_solution.py": "from solution import rob\n\ndef test_no_houses():\n assert rob([]) == 0\n\ndef test_one_house():\n assert rob([5]) == 5\n\ndef test_two_houses():\n assert rob([5, 10]) == 10\n assert rob([10, 5]) == 10\n\ndef test_multiple_houses():\n assert rob([1, 2, 3, 1]) == 4 # rob house 1 and 3\n assert rob([2, 7, 9, 3, 1]) == 12 # rob house 1, 3, and 4\n assert rob([2, 1, 1, 2]) == 4 # rob house 1 and 4\n\ndef test_alternating_values():\n assert rob([10, 2, 10, 2, 10, 2]) == 30 # rob house 1, 3, 5\n assert rob([5, 10, 5, 10, 5, 10]) == 30 # rob house 2, 4, 6\n"
}
},
"0535280273d1283e06b4a6dc5ceff8f4d27f28a2edd05213e6d30acf585b6c26": {
"task_hash": "0535280273d1283e06b4a6dc5ceff8f4d27f28a2edd05213e6d30acf585b6c26",
"instruction": "You are given a list of integers. Your task is to write a function that returns the second highest unique integer in the list. If the list contains fewer than two unique integers, the function should return `None`.\n\n**Input:**\n- A list of integers `numbers` (1 ≤ len(numbers) ≤ 10^5), where each integer is in the range [-10^9, 10^9].\n\n**Output:**\n- Return the second highest unique integer, or `None` if there are fewer than two unique integers.\n\n**Sample Input:**\n```\n[3, 1, 4, 4, 5, 5, 2]\n```\n\n**Sample Output:**\n```\n4\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert second_highest([1, 2, 3, 4, 5]) == 4\n\ndef test_1():\n assert second_highest([5, 5, 5, 5]) == None\n\ndef test_2():\n assert second_highest([10]) == None\n\ndef test_3():\n assert second_highest([1, 1, 2, 2, 3, 3]) == 2\n\ndef test_4():\n assert second_highest([7, 7, 8, 8, 9, 9]) == 8\n\ndef test_5():\n assert second_highest([100, 90]) == 90\n\ndef test_6():\n assert second_highest([1]) == None\n\ndef test_7():\n assert second_highest([2, 3, 6, 6, 5]) == 5\n\ndef test_8():\n assert second_highest([-1, -2, -3, -4]) == -2\n\ndef test_9():\n assert second_highest([0, 0, 0, 1]) == 0\n"
}
},
"0535d4d2fabb671d465a84d1ff087c683e80b9b6701b2288f7c3a2c1842f07fe": {
"task_hash": "0535d4d2fabb671d465a84d1ff087c683e80b9b6701b2288f7c3a2c1842f07fe",
"instruction": "You are given a list of strings `words` and a string `pattern`. Return _a list of all the words that match the given pattern_. A word matches the pattern if there exists a permutation of letters such that each letter in the pattern maps to a unique letter in the word and vice versa. For example, if `words = [\"abc\", \"deq\", \"mee\", \"aqq\", \"dkd\", \"ccc\"]` and `pattern = \"abb\"`, then the function should return `[\"mee\", \"aqq\"]`.",
"tests": {
"test_solution.py": "from solution import find_and_replace_pattern\n\ndef test_basic_example():\n assert find_and_replace_pattern([\"abc\", \"deq\", \"mee\", \"aqq\", \"dkd\", \"ccc\"], \"abb\") == [\"mee\", \"aqq\"]\n\ndef test_empty_words_list():\n assert find_and_replace_pattern([], \"abb\") == []\n\ndef test_pattern_matching_all():\n assert find_and_replace_pattern([\"abc\", \"bca\", \"cab\"], \"abc\") == [\"abc\", \"bca\", \"cab\"]\n\ndef test_pattern_matching_none():\n assert find_and_replace_pattern([\"a\", \"b\", \"c\"], \"aa\") == []\n\ndef test_pattern_with_single_letter():\n assert find_and_replace_pattern([\"a\", \"b\", \"c\", \"aa\", \"bb\", \"cc\"], \"a\") == [\"a\", \"b\", \"c\"]\n\ndef test_pattern_with_repeated_letters():\n assert find_and_replace_pattern([\"abab\", \"baba\", \"aabb\", \"bbaa\"], \"xyxy\") == [\"abab\", \"baba\"]\n"
}
},
"05509970944f4878ad101b38e8730c1c8ca77ab06059bfec1a3ed9263debd428": {
"task_hash": "05509970944f4878ad101b38e8730c1c8ca77ab06059bfec1a3ed9263debd428",
"instruction": "You are given a list of `n` integers, `heights`, representing the heights of `n` buildings. The buildings form a skyline viewed from a distance, and each building has a uniform width of `1`. The goal is to determine the maximum area of a rectangle that can be formed in the skyline. The rectangle must be formed using the heights of consecutive buildings. Return _the **maximum area** of such a rectangle_. Note that a rectangle's height is determined by the shortest building in the range of buildings considered for that rectangle, and its width is the number of consecutive buildings in that range.",
"tests": {
"test_solution.py": "from solution import max_histogram_area\n\ndef test_max_histogram_area_single_building():\n assert max_histogram_area([5]) == 5\n\ndef test_max_histogram_area_increasing_heights():\n assert max_histogram_area([1, 2, 3, 4, 5]) == 9 # Rectangle formed by heights[2,3,4]\n\ndef test_max_histogram_area_decreasing_heights():\n assert max_histogram_area([5, 4, 3, 2, 1]) == 9 # Rectangle formed by heights[0,1,2]\n\ndef test_max_histogram_area_mixed_heights():\n assert max_histogram_area([2, 1, 5, 6, 2, 3]) == 10 # Rectangle formed by heights[2,3]\n\ndef test_max_histogram_area_uniform_heights():\n assert max_histogram_area([2, 2, 2, 2]) == 8 # Rectangle formed by heights[0,1,2,3]\n\ndef test_max_histogram_area_empty_list():\n assert max_histogram_area([]) == 0\n\ndef test_max_histogram_area_varied_heights():\n assert max_histogram_area([6, 2, 5, 4, 5, 1, 6]) == 12 # Rectangle formed by heights[2,3,4]\n"
}
},
"05552fb2c65164eccd66332f60fab7094c28ded94da6610a2faaf9dfb1a7f2d6": {
"task_hash": "05552fb2c65164eccd66332f60fab7094c28ded94da6610a2faaf9dfb1a7f2d6",
"instruction": "You are given an integer array `arr` and an integer `k`. You are allowed to perform exactly `k` operations on the array where, in each operation, you can increment any element of the array by 1. A subarray is defined as a contiguous segment of the array. Return the _length of the longest subarray_ where the difference between the maximum and minimum elements is less than or equal to 1 after performing exactly `k` operations.",
"tests": {
"test_solution.py": "from solution import longest_subarray_with_k_operations\n\ndef test_longest_subarray_with_k_operations():\n assert longest_subarray_with_k_operations([1, 2, 1, 2, 1], 1) == 5\n assert longest_subarray_with_k_operations([1, 1, 2, 2, 3], 2) == 4\n assert longest_subarray_with_k_operations([1, 5, 5, 1, 1], 3) == 2\n assert longest_subarray_with_k_operations([1, 2, 3, 4, 5], 10) == 5\n assert longest_subarray_with_k_operations([5, 5, 5, 5], 0) == 4\n assert longest_subarray_with_k_operations([7, 8, 9, 10], 1) == 2\n\ndef test_empty_array():\n assert longest_subarray_with_k_operations([], 10) == 0\n\ndef test_single_element_array():\n assert longest_subarray_with_k_operations([1], 0) == 1\n assert longest_subarray_with_k_operations([100], 5) == 1\n\ndef test_all_elements_identical():\n assert longest_subarray_with_k_operations([3, 3, 3, 3, 3], 2) == 5\n assert longest_subarray_with_k_operations([2, 2, 2], 1) == 3\n\ndef test_large_k():\n assert longest_subarray_with_k_operations([1, 3, 2, 1, 5], 100) == 5\n"
}
},
"0559542a80932c314aa2f984db9bc67fcd1e351c92249810e0ad501fb87a89f7": {
"task_hash": "0559542a80932c314aa2f984db9bc67fcd1e351c92249810e0ad501fb87a89f7",
"instruction": "You are given a list of strings `str_list`, where each string represents a sentence. Your task is to implement a function `count_words(str_list)` that returns a dictionary. The keys of the dictionary should be the indices of the sentences in `str_list`, and the values should be the number of words in each corresponding sentence. Words are defined as sequences of characters separated by spaces.\n\n**Input:**\n- A list of strings `str_list` (1 ≤ len(str_list) ≤ 100), where each string contains at most 100 characters.\n\n**Output:**\n- A dictionary with integer keys and integer values representing the word count for each sentence.\n\n**Sample Input:**\n```python\n[\"Hello world\", \"Python is great\", \"This is a test\"]\n```\n\n**Sample Output:**\n```python\n{0: 2, 1: 3, 2: 4}\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert count_words([\"Hello world\"]) == {0: 2}\n\ndef test_1():\n assert count_words([\"Python is great\"]) == {0: 3}\n\ndef test_2():\n assert count_words([\"This is a test\"]) == {0: 4}\n\ndef test_3():\n assert count_words([\"\", \"\"]) == {0: 0, 1: 0}\n\ndef test_4():\n assert count_words([\"Multiple spaces\"]) == {0: 2}\n\ndef test_5():\n assert count_words([\"Leading and trailing spaces \"]) == {0: 4}\n\ndef test_6():\n assert count_words([\"OneWord\"]) == {0: 1}\n\ndef test_7():\n assert count_words([\"\", \"Two words\", \"\"]) == {0: 0, 1: 2, 2: 0}\n\ndef test_8():\n assert count_words([\"Punctuation, should! not? affect: count;\"]) == {0: 5}\n\ndef test_9():\n assert count_words([\"Line\\nbreaks\", \"should be\\tignored\"]) == {0: 2, 1: 3}\n"
}
},
"0559660ef08fa23d7a7e8cbde78ee97f8b23ad1b8de930a6718b7a8e1fbc95d4": {
"task_hash": "0559660ef08fa23d7a7e8cbde78ee97f8b23ad1b8de930a6718b7a8e1fbc95d4",
"instruction": "**Task**\n\nAlex is working on a text editor application and he is trying to implement a feature that automatically corrects certain misspelled words based on a given dictionary. He wants your help to write a function that will correct the misspelled words in a sentence.\n\nYou need to create a function that, given a dictionary of correct words and a sentence containing misspelled words, replaces the misspelled words with the correct ones from the dictionary.\n\nThe dictionary will be provided as a list of tuples, where each tuple contains a misspelled word and its correct form. The sentence will be provided as a single string where the words are separated by spaces.\n\n## Input\n\n- A list of tuples representing the dictionary, where each tuple consists of two strings: the misspelled word and the correct word, e.g., `[('teh', 'the'), ('woudl', 'would')]`.\n- A string `sentence` containing the sentence with misspelled words, e.g., `\"I woudl like teh cake\"`.\n\n## Output\n\n- A corrected string where each misspelled word is replaced by its correct form according to the given dictionary, e.g., `\"I would like the cake\"`.\n\n## Examples\n\n```python\ncorrect_words([('teh', 'the'), ('woudl', 'would')], \"I woudl like teh cake\")\n# Returns: \"I would like the cake\"\n\ncorrect_words([('hte', 'the'), ('speel', 'spell'), ('mistke', 'mistake')], \"I need to speel the word without a mistke\")\n# Returns: \"I need to spell the word without a mistake\"\n\ncorrect_words([('recieve', 'receive'), ('definately', 'definitely')], \"I definately need to recieve the package\")\n# Returns: \"I definitely need to receive the package\"\n\ncorrect_words([('adn', 'and'), ('geng', 'going')], \"I am geng to the store adn I will be back soon\")\n# Returns: \"I am going to the store and I will be back soon\"\n```\n\n**Constraints**\n\n- The length of the sentence will not exceed 1000 characters.\n- The dictionary can contain up to 100 entries.\n- Each word in the dictionary and sentence consists of lowercase letters only.",
"tests": {
"test_solution.py": "from solution import correct_words\n\ndef test_example_one():\n assert correct_words([('teh', 'the'), ('woudl', 'would')], \"I woudl like teh cake\") == \"I would like the cake\"\n\ndef test_example_two():\n assert correct_words([('hte', 'the'), ('speel', 'spell'), ('mistke', 'mistake')], \"I need to speel the word without a mistke\") == \"I need to spell the word without a mistake\"\n\ndef test_example_three():\n assert correct_words([('recieve', 'receive'), ('definately', 'definitely')], \"I definately need to recieve the package\") == \"I definitely need to receive the package\"\n\ndef test_example_four():\n assert correct_words([('adn', 'and'), ('geng', 'going')], \"I am geng to the store adn I will be back soon\") == \"I am going to the store and I will be back soon\"\n\ndef test_no_misspelled_words():\n assert correct_words([('teh', 'the'), ('woudl', 'would')], \"I would like the cake\") == \"I would like the cake\"\n\ndef test_empty_sentence():\n assert correct_words([('teh', 'the'), ('woudl', 'would')], \"\") == \"\"\n\ndef test_empty_dictionary():\n assert correct_words([], \"I woudl like teh cake\") == \"I woudl like teh cake\"\n \ndef test_partial_misspelled_words():\n assert correct_words([('adn', 'and'), ('lkie', 'like')], \"I am geng to the store adn I like apples\") == \"I am geng to the store and I like apples\"\n"
}
},
"0579a9f01ce6c9231bc09ee15fbd1601efc288048edaa41d219a3a421952c7a7": {
"task_hash": "0579a9f01ce6c9231bc09ee15fbd1601efc288048edaa41d219a3a421952c7a7",
"instruction": "You are given a string `s` representing a DNA sequence, and another string `target` representing a target sequence to look for within the DNA. A DNA sequence consists of characters `A`, `C`, `G`, and `T` only. Find all the **starting indices** of `target`'s anagrams in `s`. An Anagram is a permutation of the `target`. Your function should return these indices as a list in **ascending order**.",
"tests": {
"test_solution.py": "from solution import find_anagrams\n\ndef test_find_anagrams_basic():\n assert find_anagrams(\"cbaebabacd\", \"abc\") == [0, 6]\n assert find_anagrams(\"abab\", \"ab\") == [0, 1, 2]\n\ndef test_find_anagrams_no_match():\n assert find_anagrams(\"abcdefg\", \"hij\") == []\n assert find_anagrams(\"abcdefg\", \"xyz\") == []\n\ndef test_find_anagrams_entire_string_is_anagram():\n assert find_anagrams(\"abc\", \"abc\") == [0]\n assert find_anagrams(\"bac\", \"abc\") == [0]\n\ndef test_find_anagrams_repeated_characters():\n assert find_anagrams(\"aaaa\", \"aa\") == [0, 1, 2]\n\ndef test_find_anagrams_mix_case():\n # Note: This case assumes case sensitivity\n assert find_anagrams(\"aAbBcC\", \"abc\") == []\n assert find_anagrams(\"aAbBcC\", \"aAb\") == [0]\n\ndef test_find_anagrams_target_larger_than_s():\n assert find_anagrams(\"a\", \"aa\") == []\n \ndef test_find_anagrams_single_character():\n assert find_anagrams(\"a\", \"a\") == [0]\n assert find_anagrams(\"aaaa\", \"a\") == [0, 1, 2, 3]\n"
}
},
"0579aff42c0b1ba058bc1d201a7f19f65b4c9e9ef571a4489270d8b2fb7607ce": {
"task_hash": "0579aff42c0b1ba058bc1d201a7f19f65b4c9e9ef571a4489270d8b2fb7607ce",
"instruction": "=====Tree Node Differences=====\n\n=====Problem Statement=====\nGiven a binary tree, write a function to find the difference between the sums of the values of nodes at even level and that of nodes at odd level. The root node is considered at level 1. The function should return the difference defined as (sum of nodes at odd levels) - (sum of nodes at even levels).\n\n=====Input Format=====\nThe function should accept the root of the binary tree as an argument. Each node of the binary tree has a value and two children (left and right), each of which may be null. A tree node is represented as follows:\n```python\nclass TreeNode:\n def __init__(self, value=0, left=None, right=None):\n self.value = value\n self.left = left\n self.right = right\n```\n\n=====Constraints=====\n- The number of nodes in the tree is in the range [0, 10^5].\n- -10^4 ≤ Node value ≤ 10^4\n\n=====Function Signature=====\n```python\ndef level_difference(root: TreeNode) -> int:\n pass\n```",
"tests": {
"test_solution.py": "from solution import TreeNode, level_difference\n\ndef test_level_difference_empty_tree():\n assert level_difference(None) == 0\n\ndef test_level_difference_single_node():\n root = TreeNode(1)\n assert level_difference(root) == 1\n\ndef test_level_difference_two_levels():\n root = TreeNode(1)\n root.left = TreeNode(2)\n root.right = TreeNode(3)\n assert level_difference(root) == 1 - (2 + 3)\n\ndef test_level_difference_three_levels():\n root = TreeNode(1)\n root.left = TreeNode(2)\n root.right = TreeNode(3)\n root.left.left = TreeNode(4)\n root.left.right = TreeNode(5)\n root.right.left = TreeNode(6)\n root.right.right = TreeNode(7)\n assert level_difference(root) == (1 + 4 + 5 + 6 + 7) - (2 + 3)\n\ndef test_level_difference_mixed_values():\n root = TreeNode(1)\n root.left = TreeNode(-2)\n root.right = TreeNode(-3)\n root.left.left = TreeNode(4)\n root.left.right = TreeNode(-5)\n root.right.left = TreeNode(-6)\n root.right.right = TreeNode(7)\n assert level_difference(root) == (1 + 4 + -5 + -6 + 7) - (-2 + -3)\n"
}
},
"058091d4f7fe75774b8b14b5cc5d9ac20c81740c689cc50883f4588d0fe689bb": {
"task_hash": "058091d4f7fe75774b8b14b5cc5d9ac20c81740c689cc50883f4588d0fe689bb",
"instruction": "You are given a matrix of lowercase characters where each cell contains a single letter. Write a function to determine the maximum number of distinct characters that can be collected by following a path that starts at any cell and moves to adjacent cells (up, down, left, or right) without revisiting any cell. Return the maximum number of distinct characters that can be collected from such a path.",
"tests": {
"test_solution.py": "from solution import max_distinct_chars\n\ndef test_single_character():\n matrix = [['a']]\n assert max_distinct_chars(matrix) == 1\n\ndef test_all_unique_characters():\n matrix = [\n ['a', 'b', 'c'],\n ['d', 'e', 'f'],\n ['g', 'h', 'i']\n ]\n assert max_distinct_chars(matrix) == 9\n\ndef test_some_repeating_characters():\n matrix = [\n ['a', 'b', 'a'],\n ['a', 'c', 'd'],\n ['e', 'a', 'f']\n ]\n assert max_distinct_chars(matrix) == 6\n\ndef test_all_repeating_characters():\n matrix = [\n ['a', 'a', 'a'],\n ['a', 'a', 'a'],\n ['a', 'a', 'a']\n ]\n assert max_distinct_chars(matrix) == 1\n\ndef test_empty_matrix():\n matrix = []\n assert max_distinct_chars(matrix) == 0\n\ndef test_large_matrix():\n matrix = [\n ['a', 'b', 'c', 'd'],\n ['e', 'f', 'g', 'h'],\n ['i', 'j', 'k', 'l'],\n ['m', 'n', 'o', 'p'],\n ]\n assert max_distinct_chars(matrix) == 16\n"
}
},
"0598f2745e25c93abb5259755c0f7113390c30075121b2f6d465551da3f25e8e": {
"task_hash": "0598f2745e25c93abb5259755c0f7113390c30075121b2f6d465551da3f25e8e",
"instruction": "Given a string `s` consisting of lowercase letters, return the length of the longest substring without repeating characters. A substring is a contiguous sequence of characters within the string. Your solution should be efficient with a linear time complexity.\n\nFor instance, if `s = \"abcabcbb\"`, the longest substring without repeating characters is `\"abc\"`, with a length of `3`. If `s = \"bbbbb\"`, the longest substring without repeating characters is `\"b\"`, with a length of `1`.",
"tests": {
"test_solution.py": "from solution import length_of_longest_substring\n\ndef test_example_cases():\n assert length_of_longest_substring(\"abcabcbb\") == 3\n assert length_of_longest_substring(\"bbbbb\") == 1\n assert length_of_longest_substring(\"pwwkew\") == 3\n assert length_of_longest_substring(\"\") == 0\n\ndef test_edge_cases():\n assert length_of_longest_substring(\"a\") == 1\n assert length_of_longest_substring(\"aab\") == 2\n\ndef test_varied_cases():\n assert length_of_longest_substring(\"dvdf\") == 3\n assert length_of_longest_substring(\"anviaj\") == 5\n\ndef test_all_unique_characters():\n assert length_of_longest_substring(\"abcdefgh\") == 8\n assert length_of_longest_substring(\"abcd\") == 4\n\ndef test_repeated_characters():\n assert length_of_longest_substring(\"abcabcbb\") == 3\n assert length_of_longest_substring(\"aaabaaaa\") == 2\n"
}
},
"05b2ebb629079f55503e7590dc8c765cd0defed292083c7b5a3c7f48dcd28369": {
"task_hash": "05b2ebb629079f55503e7590dc8c765cd0defed292083c7b5a3c7f48dcd28369",
"instruction": "You are given a list of distinct elements and an integer `r`. Your task is to write a function that generates all possible combinations of `r` elements from the list. Use Python's `itertools` module to solve this problem.\n\n**Input:**\n- A list of distinct elements `elements` (1 ≤ len(elements) ≤ 10).\n- An integer `r` (0 ≤ r ≤ len(elements)).\n\n**Output:**\n- A list of tuples, where each tuple represents a unique combination of `r` elements from the input list.\n\n**Sample Input:**\n- `elements = ['a', 'b', 'c']`\n- `r = 2`\n\n**Sample Output:**\n- `[('a', 'b'), ('a', 'c'), ('b', 'c')]`",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert generate_combinations(['a', 'b', 'c'], 2) == [('a', 'b'), ('a', 'c'), ('b', 'c')]\n\ndef test_1():\n assert generate_combinations(['x', 'y', 'z'], 1) == [('x',), ('y',), ('z',)]\n\ndef test_2():\n assert generate_combinations(['p', 'q', 'r', 's'], 3) == [('p', 'q', 'r'), ('p', 'q', 's'), ('p', 'r', 's'), ('q', 'r', 's')]\n\ndef test_3():\n assert generate_combinations([1, 2, 3, 4], 2) == [(1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4)]\n\ndef test_4():\n assert generate_combinations([], 2) == []\n\ndef test_5():\n assert generate_combinations(['a'], 1) == [('a',)]\n\ndef test_6():\n assert generate_combinations(['a', 'b'], 0) == [()]\n\ndef test_7():\n assert generate_combinations(['a', 'b', 'c', 'd'], 4) == [('a', 'b', 'c', 'd')]\n\ndef test_8():\n assert generate_combinations(['a', 'b', 'c'], 3) == [('a', 'b', 'c')]\n\ndef test_9():\n assert generate_combinations(['a', 'b', 'c'], 4) == []\n"
}
},
"05bd44e4c88b68fbe95ee9d7129379736a1b686482e6e24c543f1904ac12da0e": {
"task_hash": "05bd44e4c88b68fbe95ee9d7129379736a1b686482e6e24c543f1904ac12da0e",
"instruction": "You are given a list of non-negative integers `nums` and an integer `target`. Find the number of unique pairs `(i, j)` where `0 <= i < j < nums.length` and `nums[i] + nums[j] == target`. Return _the number of such pairs_.",
"tests": {
"test_solution.py": "from solution import count_pairs\n\ndef test_count_pairs_basic():\n assert count_pairs([1, 2, 3, 4], 5) == 2 # Pairs are (1,4) and (2,3)\n\ndef test_count_pairs_no_pairs():\n assert count_pairs([1, 2, 3, 4], 8) == 0\n\ndef test_count_pairs_with_duplicates():\n assert count_pairs([1, 3, 2, 2, 3, 1], 4) == 2 # Pairs are (1,3) and (2,2)\n\ndef test_count_pairs_single_element():\n assert count_pairs([1], 2) == 0\n\ndef test_count_pairs_empty_list():\n assert count_pairs([], 5) == 0\n\ndef test_count_pairs_all_same():\n assert count_pairs([5, 5, 5, 5], 10) == 1 # Only one distinct pair (5, 5)\n\ndef test_count_pairs_large_numbers():\n assert count_pairs([1000000, 2000000, 3000000], 5000000) == 1 # Pair is (2000000, 3000000)\n"
}
},
"05c05daa4a12f778005c28403850c4d4ab6eb6a3ee89c09d11b1062d3d4473e5": {
"task_hash": "05c05daa4a12f778005c28403850c4d4ab6eb6a3ee89c09d11b1062d3d4473e5",
"instruction": "You are given a list of integers `prices` where `prices[i]` is the price of a given stock on the `i-th` day. You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock. Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.\n\n**Constraints:**\n- `1 <= len(prices) <= 10^5`\n- `0 <= prices[i] <= 10^4`\n\n**Sample Input:**\n```\n[7, 1, 5, 3, 6, 4]\n```\n\n**Sample Output:**\n```\n5\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert find_max_profit([7, 1, 5, 3, 6, 4]) == 5\n\ndef test_1():\n assert find_max_profit([7, 6, 4, 3, 1]) == 0\n\ndef test_2():\n assert find_max_profit([1, 2, 3, 4, 5]) == 4\n\ndef test_3():\n assert find_max_profit([3, 3, 5, 0, 0, 3, 1, 4]) == 4\n\ndef test_4():\n assert find_max_profit([1, 2]) == 1\n\ndef test_5():\n assert find_max_profit([2, 1]) == 0\n\ndef test_6():\n assert find_max_profit([1]) == 0\n\ndef test_7():\n assert find_max_profit([]) == 0\n\ndef test_8():\n assert find_max_profit([10, 7, 5, 8, 11, 9]) == 6\n\ndef test_9():\n assert find_max_profit([1, 2, 4, 2, 5, 7, 2, 4, 9, 0]) == 8\n"
}
},
"05c88598522dcb6296abcd7c2ec131ed5fb3db866bc02454f2aa1389b62af9f0": {
"task_hash": "05c88598522dcb6296abcd7c2ec131ed5fb3db866bc02454f2aa1389b62af9f0",
"instruction": "You are given a string `s`. Your task is to implement a function `count_vowels` that returns the number of vowels present in the string. The function should be case-insensitive, meaning it should count both uppercase and lowercase vowels. \n\n**Input:**\n- A single string `s` (1 ≤ |s| ≤ 10^5), consisting of ASCII characters.\n\n**Output:**\n- An integer representing the number of vowels in the string.\n\n**Sample Input:**\n```\nHello World\n```\n\n**Sample Output:**\n```\n3\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert count_vowels(\"Hello World\") == 3\n\ndef test_1():\n assert count_vowels(\"Python Programming\") == 4\n\ndef test_2():\n assert count_vowels(\"AEIOUaeiou\") == 10\n\ndef test_3():\n assert count_vowels(\"\") == 0\n\ndef test_4():\n assert count_vowels(\"bcdfg\") == 0\n\ndef test_5():\n assert count_vowels(\"abcdefghijklmnopqrstuvwxyz\") == 5\n\ndef test_6():\n assert count_vowels(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\") == 5\n\ndef test_7():\n assert count_vowels(\"1234567890\") == 0\n\ndef test_8():\n assert count_vowels(\"!@#$%^&*()\") == 0\n\ndef test_9():\n assert count_vowels(\"A quick brown fox jumps over the lazy dog\") == 11\n"
}
},
"05cbeb98337e12de12a679390b80f0de74e1ab7b4febf5a52ef2d5c70bcdd20b": {
"task_hash": "05cbeb98337e12de12a679390b80f0de74e1ab7b4febf5a52ef2d5c70bcdd20b",
"instruction": "You are given a list of strings `words`. For each string in the list, determine the longest palindromic substring. A palindromic substring is a substring that reads the same backward as forward. If there are multiple palindromic substrings of the same maximum length, return the one that appears first. Return a list of these longest palindromic substrings.\n\n**Input:**\n- A list of strings `words` (1 ≤ len(words) ≤ 100), where each string consists of lowercase English letters and has a length between 1 and 1000.\n\n**Output:**\n- A list of strings, where each string is the longest palindromic substring found in the corresponding input string.\n\n**Sample Input:**\n```python\n[\"babad\", \"cbbd\", \"a\", \"ac\"]\n```\n\n**Sample Output:**\n```python\n[\"bab\", \"bb\", \"a\", \"a\"]\n```",
"tests": {
"test_solution.py": "from solution import *\n\n\ndef test_0():\n assert longest_palindromic_substring([\"babad\"]) == [\"bab\"]\n\ndef test_1():\n assert longest_palindromic_substring([\"cbbd\"]) == [\"bb\"]\n\ndef test_2():\n assert longest_palindromic_substring([\"a\"]) == [\"a\"]\n\ndef test_3():\n assert longest_palindromic_substring([\"ac\"]) == [\"a\"]\n\ndef test_4():\n assert longest_palindromic_substring([\"racecar\", \"noon\", \"level\"]) == [\"racecar\", \"noon\", \"level\"]\n\ndef test_5():\n assert longest_palindromic_substring([\"abcba\", \"xyz\", \"abccba\"]) == [\"abcba\", \"x\", \"abccba\"]\n\ndef test_6():\n assert longest_palindromic_substring([\"\", \"a\", \"aa\"]) == [\"\", \"a\", \"aa\"]\n\ndef test_7():\n assert longest_palindromic_substring([\"abacdfgdcaba\"]) == [\"aba\"]\n\ndef test_8():\n assert longest_palindromic_substring([\"forgeeksskeegfor\"]) == [\"geeksskeeg\"]\n\ndef test_9():\n assert longest_palindromic_substring([\"banana\", \"ananab\"]) == [\"anana\", \"anana\"]\n"
}
}
},
"heldout": [
"000dd3f6ad603c9463bf1a6875483d864302d410fcf09f71217d009f22aa219c",
"00529ae0c1825c699d60c6be775f9ecae9e668d8292bb28c6aa992e1d7e9563b",
"0062a822cce1136535df6033e2a42c6f8df05008c41ee0502897a4f8153d07e6",
"008404d6679f9835672da84cae7b408db17a7970a246e7950105cb0345d36ebd",
"008477e090ce162f57174529100973fe41779d7427d8902da7e4f038e186606e",
"00895238b3e9d236b93c438e2b0c304c7a89d383cdd0a9b593ba144b6c1018c7",
"00ca6d0ee8be7b77c4d69b91145d33637e649d1bd3166acd42590d65247d6a79",
"00f96d48fcc00b0ae4540d2e3bfca1230dd37f261c43cb8958f40ed8b799e919",
"00fc2024e860f754c712f2b9d036eb04cd77d2a91922d28621effc4942dd5c79",
"010a36dc501ff54660c7d7a8c50ea46ef6c22f3987a1e339785e3f952d3ed370",
"01194e0651b2cae252996693da19cd0822c18b488f5dd1f0c3a72777ba8e8285",
"011c69f628d78781dfd8b963245eecff3aec75ce1a3010f9401f3cf3f3fc27eb",
"012c8c3c5ad8da482d9b3682f727a70962db744492392efd3d06cb1ea90a2eb0",
"013cedded11cf346f81d1372bc7ef291870bb8e8b1be6a5aab2e19751f6de867",
"0141108aac53fd3cd4ea9fcc3450cce2c034e44ac93135d0a60fd4d2c0fde3da",
"0182009a08afe8581ffbaa9e59e57bc497ed0522b6d49682d7e7a8615aba4ead",
"018261665767a4dae350c3d07af4cdc553c0a3e96cec3a4a8ce4be5a20fe282f",
"01876c1ac9a40e52f23a5aa9ac962f97232117ab36fb9a88396a4adb370061db",
"018d190864a5081ac6d8a84518852d7335a4c8c7d477dad2abb85abc1cdca231",
"0198927e55da964f83654e445d6b18875dfa6135dab03b045d081cb0df06c9c2",
"01b61f104c62fdb5041a14a523b0cd72fbec35bdae9f7638e13ce6d4de050a92",
"01c96eeeb8227b55a6c4eca81b27ad4e4b4f1d1c736d405f8cf073fac4d0c4d8",
"01d29dac9bd1a763a1a6d2e3c6e27a8f73bc20fa1143773190e9a01f8eb8a876",
"01eeaa74fc89700bf98c023cebd850771238978c8dba16684f0fc5e62c5f78dc",
"01fc771c75f20302ccebc0c7b8384cea3cf5f095e5fbabd4d43714aa37a8d5a8",
"0201efbc2955aa79fbf075ddd668e102a5f13f633362109bd167d212a28af3a7",
"0206f73219aca895d1cdc5d714f6d74ee8293f8115904e24e7931ff7ff7b88a9",
"0216efde160da7659d36d3bf4ed1a90abe6af31c684ec5fd740ce5877c95a357",
"02196ebc40ce76722ea768e023d1b37513b18db578d14a83dc52df7c15fcd2dc",
"02240c5008ebabe770d23853889cee5e407ce25d4db899816e77be6a3f46131c",
"02243ffe61c863a69e2a86816bcd04fa1e7fcc3e25d284f24757f35260af98f6",
"0247f45874d2e072e0b5a5d19732df5d0e4b7147688715836ad89848855884b0",
"024a0e2804015eab908796769668cbec094ebcd514693e0fdaa2ccc328985265",
"0250120a67c79c76ce8e44edf8109c9cd2ea3b352f3f3f594317ab0e6769ce6e",
"025c921e4a1e793f86b6fcc9ae8dca677e968f7741b45ba873bfe76df5be89c3",
"027102f812f2f4057af07b263354820961ae2ec3c742cb6a661d2b007522664e",
"027914843cff903b17a213604af82ea272d774bed39f8ca32f9319c5f2a6b616",
"027ebee89cfa23a9523a2454dc088bb251f41700a1e060aefa05ed2e5dea21f4",
"02819a6e8b73bde914edae9f65032b07b5af3ae82ab6a17682189b78cb056c51",
"02aaae18bd742da370219ac24039fceb9a2d42604daf649ddfc5bac90711690f",
"02bbec28ccc1d32a19d9c6e4e5b352cf9d6d1fcb07ccd3899250e50d73b3d005",
"02bf0eee161c4bcebd0f2c7e23a0ddfb57f637d24cfee58164b9455ad58f0067",
"02d64f8c97e76f5f132b0d0642fb96a3f1c9b47939bea97914b81b3d89c385b6",
"02ee5302a45abc3aa21556b0b51d206667381139bccad43a636e0b2fe1a79a80",
"0309a6fc00d4b02147f7143fd52bd1d57906eee553d0b95854cdb3a618dedf18",
"0330ab808023d35232657ceb03f9b8819486517bd6dfbc35aa30c6eb30ea3d59",
"0374f9a2ab077a5a1e65f102be98ccebe60754e07567c8efd820beea2d087e72",
"037efaa6ac83d1b591da37bdb401c0ca89d46b0204589dd29f9da1cced863536",
"03917d0cb2f8a929ae4bf7b794aaaf3fec14ab9cbf9ee45213fa76bb48254cc2",
"0394386206318983706a7ed9e628ffddbf1fe8f0ee1d4e1674d517216f84ce44",
"03b0cb447d541677afa2e74bbc3bc375ff7b6dda349a60919aa90cdd7b0a9808",
"03b4706eafd41cbeed9233522415863d41f3a16e1d20b370d057724dadec9558",
"03b70266bb89ee77eb68c9f6e31242fe34ce2e7990a615b305526fc9934638ed",
"03b8068475ac09251c89fe04e0d7cf18840451246bbc96f8ee1013867acd7778",
"03bc6cbadb4d390a4e34a2f9bc400472776e4be5c9679f9cb708162a4170939c",
"03cbc73289abb280e845cadeba712e090fc68b7dad1785cfcf042ae16f6a3f51",
"03d26d123a641287d76a88694d6ed6448243d20e65afec4cce9fe5c7444cbd83",
"03f602a4d801db7c017b4f03d4837b91d43d18933490be016cd034a48f549551",
"040282cc7d3a73266e0909da660f5ad0b19a010d87380bdb432e51a72f2e4e46",
"040ad814baf016733a461957d98eefd9b8b07d967a690f4b30ba5da6dc981cc7",
"0411412220751d72c322be1bbf81416b9043c6f140ba0b0943e49f5fb3e5291e",
"04114c5889687acb2c2b849a82dfe72f63849793318ecfba2f9f62865a4ed473",
"041840b248b5c36d0382c045b56fe81d7157fc0eb35d87e73dca2a6dc6bd2ccc",
"0424884a82bb64a713a564fd9d40447c642890aba0dee37165ce7e3558adb287",
"0429d5707e8ce2776753b400bf6c7ac4fc53316160b07c33bdd2f6722ee236bb",
"043a7c04cc081191c2ca7ac2cf705b58bf78c615b8c14207541f8d3ef7d62fcf",
"043dee981bcba6aa6c149a2f0127b62e44bdcc23056334c765719b501efc6a09",
"044546c04b4b9782a255ac49fafe3dc23fc9d94aae9cf564617988ac2e4acb81",
"044791d2e939da207a4e9361b9880fa916d90d2da4b5e7f6ad108aa033c546db",
"045185843c34aed3081ce63d9b7da1cdc81651f0be94a3d8f2f2ba332169b3c7",
"045821826b855ebe59ed10b5ec28eb5100691a789f8ab3cd308288d8b924d84f",
"04783b840ae3b5d894ce34fbcd61901d72ab2b1d307b87c27bf550a21b2c7c90",
"0485bd902740125b08f52b0f5804fb9546a4fb48e14528d8671dd05fd8dcbc74",
"04b3ad686305c4af0fbce723b35c3271d661b743c3f4d65a4cb13fe0e2e8a279",
"04b9e67e027561a419644eac46486e147917eff9f502b12d15701b799dddd132",
"04be119018a40eba9b8deef69e67fa168b7c22a0d81741254f8d7b314e8462bf",
"04beb6e02cc6dfb7ce4beb13fe366ee271190d3029ff9c220ee52b620749fd85",
"04c17772841c3613e37942d921494532949731257f92118db750c172bfea3455",
"04c657b07c1a1185ca77dc71b951d2a5c3279e4de46311cc07333f1621b4d975",
"04c7210e5f6528d156cfcc0bbbd666e971c636d2986fc66dc3bfadec464e83ea",
"04d09ea08d422d5d98bd617ab8d061c812dcfa662bdea0bce9a976f98adab6be",
"04d302d07c48d01d3f064fb1fecbd4c3af6b0abeb6abbe38fa2641121e3202c6",
"0510f7c0e1f1d4d284060fb5bf20c593e100ece8422063ead7045db4eb853385",
"05186366a2bae73f2b843bd8e1bbcb7d0ddee67b095ec47ddf124d4ee173aaa1",
"0525e7b6ae6e823e3ae52f9e445a358ac8c9178507858b34a24677a115d66a1b",
"0535280273d1283e06b4a6dc5ceff8f4d27f28a2edd05213e6d30acf585b6c26",
"0535d4d2fabb671d465a84d1ff087c683e80b9b6701b2288f7c3a2c1842f07fe",
"05509970944f4878ad101b38e8730c1c8ca77ab06059bfec1a3ed9263debd428",
"05552fb2c65164eccd66332f60fab7094c28ded94da6610a2faaf9dfb1a7f2d6",
"0559542a80932c314aa2f984db9bc67fcd1e351c92249810e0ad501fb87a89f7",
"0559660ef08fa23d7a7e8cbde78ee97f8b23ad1b8de930a6718b7a8e1fbc95d4",
"0579a9f01ce6c9231bc09ee15fbd1601efc288048edaa41d219a3a421952c7a7",
"0579aff42c0b1ba058bc1d201a7f19f65b4c9e9ef571a4489270d8b2fb7607ce",
"058091d4f7fe75774b8b14b5cc5d9ac20c81740c689cc50883f4588d0fe689bb",
"0598f2745e25c93abb5259755c0f7113390c30075121b2f6d465551da3f25e8e",
"05b2ebb629079f55503e7590dc8c765cd0defed292083c7b5a3c7f48dcd28369",
"05bd44e4c88b68fbe95ee9d7129379736a1b686482e6e24c543f1904ac12da0e",
"05c05daa4a12f778005c28403850c4d4ab6eb6a3ee89c09d11b1062d3d4473e5",
"05c88598522dcb6296abcd7c2ec131ed5fb3db866bc02454f2aa1389b62af9f0",
"05cbeb98337e12de12a679390b80f0de74e1ab7b4febf5a52ef2d5c70bcdd20b"
],
"heldout_sig": "12114e1a9e4c",
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"sft_cursor": 16000,
"phase_errors": 8,
"phase_seconds": {
"sft": 2913.9,
"grpo": 4368.3
},
"task_stats": {
"03d01d10ca94c3d21a9755226b213d1e6a3719a9c944f4b5d9f87c56565a8e45": [
4,
4
],
"b9b0bda18497676c3a60884d751567e8af95e0cd82285efc44dcd5eeebbf1edc": [
4,
4
],
"841e7b20cf5472fc427a4cd45e8b1afb8e9861e8de14ae746013e40ddd1456ce": [
1,
4
],
"2685bcd9e23326be2639e61f5aee50784a188b020c77ca3f8a790494bf8b6bf9": [
4,
4
],
"c4681b1003841260aef1ba56f18a1863c4edfa891ffe9f49e18bf6fbdeb88cb3": [
4,
4
],
"9d6a4e3444bc9ae4fcc41737765d0d1eb6c5fc5ba3e39400f7e6788379c9b12b": [
4,
4
],
"0356008982545f1e54cb8e8ba0869c98024d7169d47c0b29154cb1df91ea90d3": [
4,
4
],
"e4e8617ea0afa5884f24a844451a8e8f08dd39f54c0747ad0786d5ca95d530f2": [
4,
4
],
"6fdb3f4ca0bdd84de88e91e33afa1439816fdf1bdd8800ad9001de7697f0d71a": [
0,
4
],
"aa7a71555a9ff292cd32f2b07965ee4269fcda1d85d745a74a33d324f11dcfb3": [
4,
4
],
"3e2a8eb3fe61e61f0fcdbc55b5b5c920214db976269c9aa9c15589c719215e0c": [
4,
4
],
"293f026669fd4b5aee04d5d5fa21366b6b727f9d790179df24718c2b07f50cb0": [
1,
4
],
"9e9ea349a5d190b66a028c9dee5f07777ef87563b6ce6faa36efdb0773b1d597": [
1,
4
],
"8930464e30bd3d35638168905064684d1bff844ffe84ddefc0add2a3d77bb905": [
4,
4
],
"127d02980ba4d82317c3bf76f7e91be775257d4699cef302429562f4e9bbc909": [
4,
4
],
"6e49ea477c6ec1596331243dc25913249cedb2b57d9bffb271c06e56bb9dbcfc": [
4,
4
],
"779aa3aa2e24bfdba3c43111fdeb94040d8db0bbb0566523b0890577ef63cd05": [
1,
4
],
"37ca137b9ab25e6d110306c3031a292ac868aa422098f8881522cc427dc4e684": [
0,
4
],
"0df3a4600ca1ea0fa52ba0847a0d5442d22a5ae9f5e23db5d5a1cf71c1887729": [
4,
4
],
"db09f3d2f8221381eadf576848929cb98d95aedcfe82c9835f291eafa5a502be": [
4,
4
],
"d4efa9fb0d2ca6005ce9cea7ac4e4360ab5252034e8f4fb15575c10e4cfce043": [
4,
4
],
"78776399ff1ba81531bf19f10a43974375978c7be6f76982b95c0f8c261d81bf": [
4,
4
],
"1d0131ee7404908b835a5ff902ee290564e605687e95b9dc77e73a44fc5dcc12": [
4,
4
],
"8eb09b8a627ec33a8a43125e6c633410445dd0440fe2bab729726bcf3c0aee38": [
4,
4
],
"a4b612bef21dd481dc3bcf05bf7248af762fb2e1b4ac8f3c608a1edd94c8c6bf": [
4,
4
],
"dcc8ed57b61109d261383c9ee3143163f64032be718eca556448ae9b289d6acc": [
4,
4
],
"7a54ba3b1fb45b45d7ca6ce5b51c1d95adc3ccfde09fb413a09394fff1af7682": [
3,
4
],
"bd843108d51a083ca8b3d67fc47f0b44205344249685ec72ff42262848711b20": [
1,
4
],
"716e5e70ab3aeb34927bff7df3274da4afb9fd74bb082b285d6ce4d5acae4db5": [
0,
4
],
"a93e442973e8be4ccf14dc663d6da05fb5d977f2248b5e0c02fb6af1579bc0de": [
0,
4
],
"e3f310dbf7c05835f1d536ae6f0151e9c1fe926b7206555d73927fab7feeb6c3": [
4,
4
],
"62b3980ec3901022a4c29360b74e8ef51344d8e542fafe719643fcbaf199888b": [
4,
4
],
"b81272dd3cd9fca370cc3a299feb3cd785e8f9111ba8e8fb0ebe7f2245f4408d": [
0,
4
],
"184b0e95fa8d332a757caa297e857431c0cd3855623b34e439ca1a55e92fb345": [
4,
4
],
"fd76eb1600e5f60bc4ad17475c6c02817d5737b5be343dc0c91c4c51a70275c1": [
4,
4
],
"2b7dc4adc4211c24f40c3bdba24e07fb2ed9cfeda292f71027f6d865da71dbff": [
1,
4
],
"7264686fb46e3adc02a99affa32095dd0a3498a05826b194f6fdcf67c22aab05": [
0,
4
],
"f3a24a716e249eaff9a51133935eab4c06564c13b0190348e3a50b97ec03ad45": [
4,
4
],
"6827bc06469c73c616aff2f9f9df98750489c3bba62bf65cb4a4efc06035812a": [
4,
4
],
"046e0c19a24242e9d8ea6b566f7a5f1d8977d57b729bf506728adefb2c48e00c": [
4,
4
],
"735a2669692fcbc1b30a101a9c62ab40864bfca8b397ecb46af5bb77883f4e9b": [
2,
4
],
"2a1d0099cfd9482e4f294294d4aa111f1eb8c5b23ec12719d3d9c8d5adf96c1d": [
4,
4
],
"c04443468b9cc647c02a1ed4e77a6e9e7083ab1028cf90655f617c221b91ed62": [
4,
4
],
"b2f6c39e313414bd7b7b2f821a8326eb1680c0578f1254467e21b90fc61e92bc": [
4,
4
],
"744f32ef47b4b8b11ce1ee3b17adb4217169a0e4424dc463f6f785c2cebfbef5": [
0,
4
],
"b23e707b684dd64df59f41613dd1b2938dc2f7b584f061f5a44f7502bf5e3429": [
4,
4
],
"53453c7eb30ba20f221a6a953b8cc00b137aad9bd65a699eb02794ee83516eae": [
4,
4
],
"d5e1e4d9f59f60f7e44b39acc48c21ce4db4093f9fefd05b2bd1c55c56161034": [
4,
4
],
"301ac4c9fafe876918a433a17bfdb9e3dbba5234ea4689bbd022b3eda178c634": [
3,
4
],
"4be9351ac6fc89655d2102039e0f73b3d40649facebcbbb91c74782c654c2947": [
4,
4
],
"4bc689e220acdb23a94fc3e602a8a5a8044808e9fc33bccb84078ce180b9851f": [
3,
4
],
"303085a196c369264b0a763348430514c4881dae151b4fd4ea594d12d014ea86": [
2,
4
],
"803f4538011dcb7250ed37aaba13c581ab822d5361327965a12b364ac141205f": [
4,
4
],
"0265a0c32cf1f54ca1f7477befd16ddab4411181778065c415c93671e42c18d3": [
3,
4
],
"e36e3a63cc686eb745824304d22a3fbf3edfa056d49de4d996def2b52dd6b8be": [
2,
4
],
"e40ef84453d55db666fd8ec1bcde69dd14a878b90a3ed53fee0f11504039da8b": [
0,
4
],
"72c020925fd088f4ab69d9934b2101b8be781365363493f29d95ad5e83cf4fce": [
3,
4
],
"62a941a3276ba03de3ecc99537e1202fe7be1ac295f459eab2358f30a5d47a5e": [
0,
4
],
"517fca9f9ee542106e6ae72c01c288956f5819b9c6eefa4c27307a9205394e2f": [
3,
4
],
"c1e5dcbe833ca59f8460f77bb20aa445c8e571a813674a3c031957f8251a2d53": [
4,
4
],
"857caad671bf463c875d691400d82177d113bc904f92d2e526c149773ccd4b1e": [
2,
4
],
"ece2368954e14d3a6588ab80f9c3c10705ff0d1e12b698d577b0006ecedee3f5": [
4,
4
],
"fb193a8e9739090d679e3e87e100e7cd5c8397344223fadaa134226120ea494d": [
4,
4
],
"64055b771092ea7e6af9d424bea9fab1ef848a4843682065a76a24776be1ad8d": [
0,
4
],
"eecc6fcd2f30dfc4836c86b80101ecf3a8e011ecdf8fe4e2a4bd974c60d27157": [
4,
4
],
"c8f34f50bd1fcea4d0f84ba69edca6b3993a90a77df61134e9b49df9e9f001c8": [
4,
4
],
"0ad5e806d8d78d4c7bf29c2ee864c71acaabce58d4a39cffce264c76036dbc22": [
1,
4
],
"c5e876cbba2f5bc186d0561f2f10ac0298e70ce88d21e5cd15b49ae021698f88": [
4,
4
],
"9c16d979434eb001c1d40530ef61c864bee779a7fd2e1da502241e4ff4a9e5f4": [
4,
4
],
"23d5b61ffbf8faad5f15388f423d4cdb13457d6ed9389bed52a25ecb97ddd9ae": [
4,
8
],
"eb99a98b316180997ce9ee62c0e31c1a4d59408c10a467ee6b3a43afc5635837": [
4,
4
],
"aa30cbeca4a00bb54146ab0416fe5b76a011d768fd86cf39069e9ac3324c85db": [
4,
4
],
"c3db5303d0e3f26215a6351ac91636e322fc8c00be90b284818de4ba4cc0a715": [
3,
4
],
"a6152ffc5aef527177a665677005238188887444c7719c478e8773b208346b1a": [
3,
4
],
"8598ecf938782a3bbc87711a0e6904b459a86ccc9e68296ecfdbba1e3c1d7898": [
4,
4
],
"efaa8b9115606611d0155a575c5f0d219d40ac013fc537103f0e62289e1e67e8": [
4,
4
],
"5381e48e80da40149e565d6c5cc966ec4112a15b51736289031a77a548385ffb": [
4,
4
],
"7da95b49c65f1576b515ed4123573dd41feb82962a5b3292b7bcade1f578244b": [
3,
4
],
"44fcefa569c4412bd2bc76a7af9d860f4f5220b42ea35238fa599c5b70b5525e": [
4,
4
],
"4a42196759101a04b7543c371c94e54e336f562f3bcec109990ad17ada517c69": [
4,
4
],
"971cacd107a69828dc8c76e793987609697012526621fd5b1c360ee9a4ee610c": [
2,
4
],
"e823d33226a7c60a4ce99e4cc574d33fb1c2664595d8136e2a511089ddfc0652": [
4,
4
],
"f796d09b06220b9840fe62cd23adcb4cf2b111d41630bb94f205ca4b0b4afb80": [
4,
4
],
"bd43d60c99384946c0e27c36b51328c52a4cda252dabe7a09911a0de523fd5e3": [
4,
4
],
"76e84eef2015dc1d12597ba67ee23159fe66be69c250d34c75c61a6bc75ff19a": [
4,
4
],
"3023c3117d8e5494f607cd01f5451251b7b1becfa68fcf471f859f137c53d2b6": [
2,
4
],
"cae5172fee54ee4a5fcdce5d5818759154336ed26860db1b58532ef5e712ca03": [
4,
4
],
"1595244b625c949f81883192a341105499bc26d9252185da042f2e594aaa081f": [
4,
4
],
"7163b018389686c1af9d1a7022bc1114ef729a562860c3121d7231b37a601cc4": [
0,
4
],
"8b8e22a710bc0b41ad9fe23d54157a0645e1753bd0c9e18b207461db4b5b1731": [
4,
4
],
"b500bb24c19220a6b4be8455d2a16c6dcb4d663d8db3e5f90f5b00b3405ac6f9": [
4,
4
],
"52d1e4bb793e71c4f33daa24c459d2ac2597eaa11c4b6da4c1537c9f3eca3a53": [
4,
4
],
"96fa46feb97a160d2bfcf51da0f867ce86d1ed9275658f1983508cf89739c302": [
1,
4
],
"521bdd17efd3a8574bcdf8140fcfbe6825fb3e289f1723f10de042423bbdecde": [
4,
4
],
"4ccb3c5e78d2a2bb9d25b2227a264c976975ca2206d229e5c418104c3aa5f2db": [
3,
4
],
"ef1299991f42e3c15b5d57ae0b5c3b48873ef8189fa3c75cb8f481f3da564664": [
2,
4
],
"389d4eebf879eb99ef55b1694494e01e896aa978bb81e79badb1cb6be16539c2": [
4,
4
],
"2c66d8bda6f4aac8111aa0fc4965d3e3035502bf00a3e46e7cf8d8f4df617198": [
2,
4
],
"1f6f1ac13779ba254863adb2e5b6153da4a77d7986670168cf6e33e2e464789d": [
4,
4
],
"3efe3a1b06babef4b1121e05fafc40d53ec5ae98672376ce3fedf3b69ba521b8": [
3,
4
],
"1d8ddd914585878a31f01d6982f92168ec576697562b0c26028f73151fd80778": [
2,
4
],
"5921be2c80acc15f974f72877cfaaa14027384a1a1694162301ae144200f9f99": [
1,
4
],
"37c5ffb87b16abbd5a0a223869edf0dd2bd4a413d829445875d3cb468febf07c": [
4,
4
],
"cea6bebed17abe85612dda4afac044ff7dcc895b093672b32e3ad198655c0266": [
3,
4
],
"a08066e10ea31762ce51cd6458ce2c54b289bd5e87c40cc91f32cf108a679737": [
1,
4
],
"182a029d5f1a8af67dfe4fa6a6dd1c59a3c2703e5bed5559144e37b5652cab9e": [
3,
4
],
"e4532b94037694c63f93d07ce60b806702d6a60d2cdfa51da2f9a9da9ecd10b9": [
0,
4
],
"c9f71db7f78e5528fd1d8009b7e641d050294c3efc9dac2d4d8271ceb06c637c": [
3,
4
],
"b73a7c6f722a2dcc888dcbf42e44e4b376887de0e10d5e925e9c05c68550fc74": [
4,
4
],
"c79695945c3bd0d135838fa52a465a3c4051a8eef5c12fe5ff8913ccb9fc2396": [
0,
4
],
"ea463e78ea97505ed01b513e96381618087976f41621adaa24588cca8f870442": [
1,
4
],
"cd2efb7d0f9a0249f6a446055b4d9a99a1cb1a582693307df49420806f75afb1": [
0,
4
],
"13d6d9e11eda656745fffb1cb246872e1e22379cf2e211ef64b880ace342a28e": [
4,
4
],
"d078170ac10077ab8130e3f1e6fd9f523d2d7d62408d34d33fb956a986a2d551": [
1,
4
],
"74f14b2cc0d7a3760da2bf16f4f7b7066bd162753ee28e1a7bc7e671336d6ee4": [
3,
4
],
"9b29a8e87594537af50203c9bfc5b5355cca29040cc84f6beb821770aaa66963": [
4,
4
],
"62cf808f4c06fb9f44fffd74be738631a0b91ffa81cc2322b94783e3fcdfeb47": [
1,
4
],
"fef07f7ec7172fffbd1aa801d44febe8e62b5a299128faffff590a0efe8dac40": [
4,
4
],
"d24662a788844cef26ff606cc672ed679a7578bacd5a52f19b3d9de613b8d246": [
3,
4
],
"fb2a8e3795aee3ed6317d16f94485dc19b4726a9b50a140bf5a3453ec939ea0e": [
3,
4
],
"8a8d69c1823c2cd8703646c10426aa59880b982ad00efa12940d691236d56078": [
4,
4
],
"e22df025f7999e3d6e03506c3ce126cb4b689ac02d4e8900432663abc89e6736": [
1,
4
],
"3e72de2139d1a53de91044affd8f56a9f649e766fdbaad7908f677d61ae2c7c7": [
4,
4
],
"89a8fb14a7323f8e16a9d6f4e3eb4c17a195318e6ecbec4d95dac384368f5425": [
3,
4
],
"bb036b1996361fdc41dd8a1f3a2a17e80d9bbf05064e14034813746bbd81a2b1": [
4,
4
],
"2da671ef5a7d2a8f29f01f9188a63dce490f1ab0e895f05ab0bb7ee13c349665": [
4,
4
],
"0ff08aa493df321d5ce417690e301ce07c605f8be4714132601a2c6ed7f72412": [
2,
4
],
"b51d2873a4ada6ad98a50d644ca4cab0d84aecfe85a8fcb82c867d9e2ba19b16": [
4,
4
],
"827d13a4ae9da959ad4da83fd6f5b21530fa2faa444a686200d7685cef93649d": [
0,
4
],
"a8410b455894c6bc52930c09b9969e7780fea517e9c207da3385dbffa062a11b": [
0,
4
],
"8f85e489d3e955bb96641024e096b953ba0593567159ae06b0967b34c5c072d0": [
3,
4
],
"89d134f6ab1a85335dd58baa5fe14fcecd71743bbeb872a66acbd83239938d88": [
4,
4
],
"e09663f6fdfc4f93b2a157dda9e024dd4cedd1e94497a35dd3ae7fcf9c3e30c1": [
4,
8
],
"1a775a31ef3cf1b26cf634dcb29c48c2ad8120f27465aed418a62831fc8ddb16": [
4,
4
],
"904b5ed2e66e4e90725b1f72f17dff3adffb86c5e5908a1ee1b719d0aba67f0a": [
0,
4
],
"39c4f2855900ec656b2d54b164f096b2f8023cf2eae33cf6546ef311134b29a8": [
4,
4
],
"5db076a203bca6d465370edd7c9e9df2121652a0681abbc51e6f9fd1550e5795": [
4,
4
],
"63198b0b887eed26e400ff4bb68324f302c4d1bb3da4eab71903bb0fea7f57f7": [
4,
4
],
"577275a7f01f20def5668a5d114cca979616bde6bcf702be68cf3334fd57377d": [
4,
4
],
"b43891583d94e3ebe7c1f0a37414e43b775a9959232886e6be58e2b6f14afa8a": [
3,
4
],
"c812df8b42c65a6564f247d769695708a7caa2d7f9f7ccdf1086934df04920fe": [
1,
4
],
"58020ff7be3681176d51e79aab8c6b484a07934e3102cee313a2bed63f548285": [
2,
4
],
"b130b2f0eb3a7d1455c523191303f7c7632aecb01a1461758fc8e0085e8f249a": [
1,
4
],
"61567be7608cf476cc3ff846a707d0730d045af9ee5ca58dfa6b9ccee90b693e": [
0,
4
],
"a971cc5876886ef75d190d96a167579bc3eccd0f1794c7c682ea1c12df2e3f16": [
4,
4
],
"3b99a5a70e235bc63a97467146b53d84d3f14e26e1f9e98c61056c6b1bbb34a3": [
2,
4
],
"ef6dad701c7c36c90978f3722b1c0e805c5ae27eb8edf85a73a54311979a9161": [
0,
4
],
"8d4f5b030e3fc6a098926a82f884ee8a44f6b92aaae29609be4cb7d5efd8f946": [
4,
4
],
"1083d1fc9851d48a66c09649271175ff1f3132184954fa8a10169239d73583d0": [
0,
4
],
"a99420526ef3006f23cde10b374878395902b15fa27781875f5b12618dd0daca": [
3,
4
],
"2fae72d5297aa8b9fc66b4712654f7520ddc0addad7a53ac2b8f41bd3c1e512a": [
2,
4
],
"935e90215f67f050ef7e939a81b01c40b45c1a33ce834f4f6d205acb0c839357": [
4,
4
],
"a207299dce7ee4d958dc57a6c46eccb254eced3d1b89526c64dc60ef6a65a138": [
4,
4
],
"6ade39c37af139637da44ee7cf098ed6bd37aa5a669099116eca2f202114ed20": [
3,
4
],
"4306bbeccb40ac327f0cfe395c2a4536682e736f9ebd2e4de3259d207a214b98": [
1,
4
],
"cc41d4528deb9a4124a86a93f5c3876b109d69226f380f2a6b6ff6ee9fb1695a": [
4,
4
],
"43d2598a0e5fb521e1f90f75fd122549dd0e3921509e8820e60068e388f09e43": [
3,
4
],
"0e5bbade1c9f157cfd577bd3927681a9371a4253459b0ace83ddd88c1b564de2": [
2,
4
],
"14516ee15146595e6edebbcb34483db24411a888a3e71ee22234733c5e359249": [
3,
4
],
"595ae6915c6d1586f4478c7f640a00f48e184648d46ce9cb2a5f099013c33cfd": [
4,
4
],
"6e38cf8039c16a8c5815cdb5cb933f91410ce217522d8b17d9532b736c3e7b8b": [
4,
4
],
"434ea777e02341267ed4d5e2bc33cfadd31772a9ae9c7e007263371c97e7aee5": [
2,
4
],
"c9b0dc257d28f339900b72828433c4fccb2872a4e442c1c5c00b79710ac1541f": [
0,
4
],
"6c7c09f9de0419edd5bd94d38d2615c18b6052a46ce644fd487f7f3133c6a408": [
4,
4
],
"1d031db9a12001db712061ad2abecfb19267e8ae57d11458d2a2baf2cb2b2fc1": [
4,
4
],
"482b206ff15de68897940d47b0e6af6380ba526d46d2010c26b4b41e66ac5451": [
4,
4
],
"ad82da55fce4052d067e0fccd8ca8b71becaf091d3f459612887efaefcba5684": [
4,
4
],
"27b202215d7d2749b6787960399bdccda952061f3461ab7f389fd3d669037817": [
4,
4
],
"a14a7e036578805a0c764a39481c442ec004c5b6c19b71f97edddc0294c65fef": [
0,
4
],
"6f7799b0de15c58a6f9d1efaff43a895d3fbef300e3a9542fe3f03fb921b7363": [
0,
4
],
"27838b764189198291fb4776196c16a93b251bc02fb4ef02b5154bcc70378393": [
4,
4
],
"a4891ca4ef8108cfc843b5d3f21f0563d7fb3d67ef8ae1d7260bd979ad8d790e": [
0,
4
],
"99b23001afb2821ed07e236015d528f5c96c32c52cc5d4b338b6d83b44ddb43c": [
4,
4
],
"51a764593cb1452e39b7ea6fcfad5449a62ff67053cf7dd8176640ffca73191a": [
1,
4
],
"dde31188a6cc03c08f1595231a2c84f048fee5b5377a832e67da4dd12fa0d93a": [
3,
4
],
"23a366e5a1793008441b61f5f5299034b9ee28842af8143620647223bacca2e7": [
1,
4
],
"65067c2aac526135c2782efec8522bf4150424e309e9cb157bd4dea63bf4eabe": [
0,
4
],
"8b5eba89ca1be81e0aabd9a264fc4beceae3bf15b7e1db861b757de514f0507a": [
4,
4
],
"6669053ce6371c70621454f3e05b50eb43d9ca5978d2b6e445bc7a8a77dfd4dd": [
4,
4
],
"0c3b4ea998c4c5b4b07d18af138b45c9290e9e2d2ac10700ed802eeb3833175b": [
2,
4
],
"6797c116c9d23970dbe014b36480cd84ef76398050a92a91448354ec4ef2d447": [
1,
4
],
"8108cd929a351a4dd85bc47bf230d21e4ea03d470c2be44bd12da0cd6abd1a3c": [
4,
4
],
"c3b24de91e561d5bc8c33989b2b62c43f4647a1d3b3da0f4de35b1fbd54ee2bb": [
2,
4
],
"6b75f514bda963ea6c208094b138258a6302a773732d661ddecc71a1d33b2586": [
4,
4
],
"05e5900ff5b455f84a89f83dd144d3240b18dd9a468d0eab1ab92038e7cfcf4e": [
0,
4
],
"3132e0a0599ebfc78c4d00d43fb756751449d921f64cf623b7c9bbd676842ac4": [
4,
4
],
"ef7e75ec8004797f430728bb3cb33c12cc72e4e6d7945bd2b7664a15c3d97ae4": [
4,
4
],
"4cc29fc3a0a1d401f2f11e106e45aeb1536c2a9ab82774140e65a033483c7cb3": [
0,
4
],
"c40e45cb2f1336ee1dcfd27cb7ae2c52937c5eeca4f3b9881a5fb71550a0d464": [
0,
4
],
"edeb557422778af677e3f278b4ac671837099693791dc7b99516fe053d8c1c0e": [
4,
4
],
"abd573d15db48d84398dfd0e746506857dcf7193cc15e2d4ee59949331d38b46": [
3,
4
],
"0fa52838003dca0d6e7eb00be65d31d7f6c64660501225a418bbfb3fda24fdaa": [
2,
4
],
"eee78cfdb5d8527b5d9d89948e84f17d8ddda05b119a8a22992f411f0bb15bda": [
0,
4
],
"06d37ce852bc9d783c88956fc6005ff4381dfe9d5a206c568f1e3e67e4876ac6": [
0,
4
],
"bdb0c1dcd1a9fbc67e07d7c24b0cd28d4a6b2fcdd75d91a547f1a1acb2f88704": [
1,
4
],
"a75a0c137c998124fda30dcfb10a1c209937294a04cf0a90622a0058d319d84a": [
4,
4
],
"81e41a383bb870d9d5299b9122ce989f48088333a380fd41123fdd146d2035d1": [
4,
4
],
"d6f9f7f28adc93ef5cc67f6e123f29d5e4b6b8566c562383b97c9627de866d0c": [
3,
4
],
"2355dd4c55e824b52851acb4fd5514a7bbf1075c3c6cf95c58f48edfc038e399": [
0,
4
],
"3f44a1f6ae24c9a7a3f28a1d51cd84672af3558347ede6daf2029de6828243b2": [
1,
4
],
"01f5934490c8bc4654c75e5ddd8e0f3834fa960212bda6596bc0829a996a3d86": [
3,
4
],
"e4af3f5b1445f38aa51236fd9582610f7e31d7476c051e69f92b5f3f82eccd58": [
2,
4
],
"0658be8331da6b6e4dee180e22ef80828cce6746e360440cc8cebca3802508df": [
2,
4
],
"849847b31cf6bc06d3264cf04441394927a8e0c2169c605e14940601c5e815c5": [
3,
4
],
"0c3f385ab8177e355b4be2aaf352e618ad1bef06f7105d2f9cf4e4ed481555ed": [
2,
4
],
"85ab53c1c3270575a785b82263b6de1fe3a1fa265bf7282e0705fe225f586d66": [
4,
4
],
"4f4270a028c4b21bec51c7351badc10a4709dc842aba3b6b4890e417a1353f7f": [
2,
4
],
"bfc5366fb2a7fc4f5954eb6656d0c1ad969b61e1259efac37d39a6a4940cab57": [
3,
4
],
"bea0acf03cea8d092c72e24d2531cdb2b83638bd7a9aeba53845dfc248cdfd48": [
0,
4
],
"d2733c36c39c46b0bf68f886c4ce2ba057edbe0373c3cb16aeadfa68e45d8e32": [
3,
4
],
"5c1e2b0dc9086636b5f37cc0f72abc61648cd79c35d198f40424a9b1bdbaffd9": [
4,
4
],
"09ca818d1df3c9885245c9f1919126d6f14354eeaad6c05859a04b8fde709149": [
4,
4
],
"f95351815464ef9eb7cea55d86dfc8dfc8091bd6cd2fd401a434369e59212805": [
4,
4
],
"cb6e5f75096f6a939fc4ef4347e3a526441ee9060c8e1e595091999abf31e952": [
3,
4
],
"079ef846ec8af9b83026dd9e22c630912d2027e7675266c795fa6a6ed0e4f34c": [
4,
4
],
"2c79b732376c3bbc863ca851486738abca9f09e32635b41e868563d7be644129": [
3,
4
],
"05e0b19bd33b327858c54c15810d8cdbb74b48b36cd3fa6799574fb568d6a635": [
3,
4
],
"a0a14c16fb0e6ad215b7984cc98fdc467ef06186bc6ec9210e00314d2a48f8f3": [
4,
4
],
"062e30bd507e2da0620bb5b53d085f45571642de15dc06f7999e6672b6c6491f": [
0,
4
],
"ef2674bd6bf4a98651fc1c6a92b211e2ade3271c8e2ecc7f1d9db5df30306875": [
1,
4
],
"28c25cba6533220f6799044bb7fd7892b91c72a96ea753ad388de031ee7ac455": [
3,
4
],
"35e121c51c02d0b06245e01a8c007cde6ec7d9e8af286545325541ab41cfee4e": [
3,
4
],
"48f5ecaff15d4749923ca681ec734acf5e5e0f7e26908affdb8ef2eb58dde2a1": [
3,
4
],
"c9c4b1a53625946fa29639a0e61dce8868d5cfe4709a5996a100b31d3f8b222c": [
4,
4
],
"072bf78f9dc4b249fb521a943a14e2738313c31cf3c9fbf22f5a8a32275b4ed3": [
2,
4
],
"b0f8d35c5b05ccd060cf0fcb7cb36b7df90781fade9fc1a914784f06e5347ed0": [
4,
4
],
"be4d589d192b1311813a5901d8fe8ddfa2a20f84a986fa519585fdb98392b69f": [
4,
4
],
"d615bc8a9b3e2b4a9056adb0255a86a5b84d67ce2c42563b7053b0456ae7bbf4": [
4,
4
],
"24891c7793370ffad56e7f6105616d2d12d09122bb77b1cca2d2b585013b37c3": [
2,
4
],
"67efd038301c3896a40801b63c9e4efcbe548a0edae24dbc7f4294004da74de1": [
4,
4
],
"d6d31480733190c2f14e2bd969b99d2329d3c7d2810b6e8d750400258cb30c08": [
3,
4
],
"d170adb86bd45191c10e42cb30ace3dc4ab55aec0983f029915ea558f12d149e": [
4,
4
],
"2e47384d49f4ea7ce142e9796940a0ae4217c297a4bbe914853f8ef2232e9aba": [
4,
4
],
"75ed0dc28aa553964e0b72b4a4138d7726c33d6824619d98a156ea08e46c609a": [
3,
4
],
"24349d2556cdd163060215b0774665ce9383618091e675b36db2d3744a57309a": [
3,
4
],
"6c7daec30c33650ca157077e66f15b41d29eed2803f781cba28e9a336e7a5b58": [
4,
4
],
"bcca4aea7ea4b2514a4f5f61abc7e82f16b4abec84fadfc65875bf95294d2479": [
3,
4
],
"f9b22bd6aab154804e65d296e34bca6088b33d549d102039474a46088533ccc0": [
0,
4
],
"a5e1fe3cdec8d6a98a6723315a6c48d133f612194db95bab21b270b0f9f86a4b": [
3,
4
],
"d1514a078bb8190bcd7412ebfa73a8b8201e5771ec590cada16725463f99b380": [
4,
4
],
"a112627224a9eec7701ec2c9c5034ad4a7dc675602f5d0cf7a4e5eecf80408e0": [
0,
4
],
"237ba60a5e9aa438cfae880ac237bcb34c6a29fbed9aa1ee1ecac76003722970": [
1,
4
],
"ea4052a95228940af96197e23e351ff0c9d4672f0e0f7e37ebb0c3ef6b5b95ff": [
4,
4
],
"915b6374db75db45b108ad43e54eb7c16b424955c6725b5b86e7773702fad946": [
4,
4
],
"cb7b6a5e0e6bdd5bf7492f9e709d93991e48b5542c6ea05879a8505f935ec5e7": [
3,
4
],
"7a254221bd391b4424a1839ae4dbfb7771bb9bd87668e5d40e1ba81a169db863": [
4,
4
],
"93bd7a3dbf021787154531dfe10ec4853bdd82fb1e7ae42d4c6226e9313e1c97": [
4,
4
],
"a81a66cf8eb11b8c1addd19a69048b2549b8c7574a4ba030ce88a6beb60420b1": [
1,
4
],
"0052bb78612f51b0c3f441dcbb4dccb2198252a936ad670ffa8f085f5a1e3630": [
4,
4
],
"0e6ddf5b641dd622a1590c2b2fd5e090c729e45cb9e1610ed9632198e665e377": [
0,
4
],
"c0e95a5b3571c1e3c02d18d51dbadc03db9c10332caff882189f806fb40b4dad": [
0,
4
],
"30b4dd01af8c6cbfea3d37be874c5703d2b72fd679e30a5b7ec29263533e04e8": [
4,
4
],
"47cdcfd943ac7f70a92f21a19b569c847d9e26cf317dfb4b4475d0277b787248": [
4,
4
],
"95eb65bd95e451f0cbe37c0f86cc0892a6b562d26380459276131b7ac3a9484e": [
3,
4
],
"664d15af788dfcccef062345743e15a8a8986954f61a4f74799e84efad343815": [
3,
4
],
"5e40ee1f9479a98bfb3dcf7ce407640b81b1852a89e8601c7a3fc0fbe7b5c890": [
4,
4
],
"38308e12ac0d21c96150e76a7167527b38e91ff1fa88839f79f981fb03dd962e": [
4,
4
],
"01b90e197401bc0bff4d08914f80093850c5c458c593cb40017e7a3f12e3b53c": [
4,
4
],
"deb2c1af29748416d81ce4ef07830f6815fe92cc8975f4266b0128d6bbd638aa": [
3,
4
],
"0330065b4afbee32cacf29ee552289cfb373884de8174edb7f658cc0a6199ba1": [
4,
4
],
"4df1b65d38be0863dcd52d9494ae57051616bf6992c95f86c32aed5eb9168903": [
3,
4
],
"d6153fb218999566914f825ac43dac7adf8bcc3968caaa4b69ef27fab80ee5b2": [
1,
4
],
"56d17fca74b2c30918b4eda092b68e0680772f0b495011802f2a8dfd9c690791": [
4,
4
],
"35621b3a32b3d1ce1ee11a5a1df56804f4ad52959e67fdd17a0a8e0a2c71cf43": [
0,
4
],
"30cfb840eedb51df88f2a4405b7bdf01be48d3ff19603f2580ba170098753167": [
0,
4
],
"acc0d4cdfbeb413807325e36438ea553a2637c791f7038f2bb546114963da07a": [
1,
4
],
"0e04a23e733059f6090e3f57a7a6483673d005c012d5cb7e84491d7be085716b": [
1,
4
],
"2d5c7ee97db4ab4fb39d5c82689d19b40cf4d42d75821c825fbe7bfc24e1caf4": [
4,
4
],
"abf081ac947a6824763360ae37f7577570954e8110f7354e6c9639b35209edb0": [
4,
4
],
"b6dfb15450adb0afb01c48c9064d8df5313b3e262f7977251fe512b845963f88": [
1,
4
],
"99e82868d9d127bd97a89da4d17cc4f06abb7ee52d8c21988954d175793918f3": [
1,
4
],
"e4ff196344f7f79a4d004e3793dd59eed46a577259557f42495462ed790362bf": [
1,
4
],
"86158f96e6745692d2b656dbda9874041e9a85dc636e0e7a18984985db816e1b": [
3,
4
],
"bdd3bce9036d14fafa52c3adf662f6c31de62d69d78c1ea2f9762d8486ff021a": [
2,
4
],
"495b05e97c7c6d79b9cd82e65fb2b71ada770d6e52fbde9c8070e23fbab2c299": [
4,
4
],
"618c56d264617afaf2911e9658c43dd6644b68314d0db0e68922c0651e39a144": [
0,
4
],
"041ee80d3f38f0c88ca26576ed47b7367dba8ec86f3c3f721ded3504ace41878": [
0,
4
],
"ed15228d867840b8e5048b3303408a234731ba902bb4ca02919514745b27b2f4": [
2,
4
],
"977eb345f04f101093be454d58a2fac2733f38be32e65352c2996d1d2568bb71": [
3,
4
],
"37d4d04fc697e3bdd59b2b113f740b551a0fdb81bb4c0c4282416fd8b5bf3f4d": [
1,
4
],
"5e93763f77b76993eef5d75927425aba158c9feefde142935d5f2e053de61401": [
0,
4
],
"2e387b74614f7b4572b2ffbee07690a87505dd71111213c9a13e75b5e062c4e9": [
0,
4
],
"6c71b696360b2c58c96afc9411e5872d0ea56203436abcae55631795a66e40db": [
1,
4
],
"78ec813787ef81be791b0fc57045b2a400198d01c1e11a0d79d0ab7426bc49ce": [
4,
4
],
"877e07b36138c033556a94bb1c36bfdc3ccaf65dec7a33c49dc8dab9e020b65b": [
4,
4
],
"6bf7186cc165c9f9758757134b84803a1f1ecf751b476d1733711cc42a3a0c54": [
3,
4
],
"c601f51f0407aab6e9f055ea358c8ac93b32ba922e47b520095a664e3b4f9d86": [
3,
4
],
"8e94a61ac080719d360d349ffe527ba235f2534f335da3db7952ef403117a3e6": [
2,
4
],
"8257072c2bb297fc8ad1c02282674ee039326c7a6c9df716d6608517135b7866": [
4,
4
],
"1c185014feb3ea84a89ee52d0f6ebc03069c118faaf03ccf97803134a03c8ae1": [
4,
4
],
"218d92d403c11bb6e22e0b8383b1f3c7393679b0569e0ea4aa05084fee1bee08": [
4,
4
],
"87238c01186ffebdfb8e19e31f3dcbc2f3c5b8897bd7d686612dcb29ed55d40f": [
2,
4
],
"23aeba3d8a60868c2ee47edf175644068c0e2bd077cc8129a0e96e3f10d322c3": [
3,
4
],
"e21d14a63c4f0580b198df3290547071c0015d0978b1c17031a475264fe7e486": [
3,
4
],
"5af5dcba833a70cd9f1726230edbcc1967f1f3fec1fc921894bca6a2e8a24915": [
1,
4
],
"fbbe08a9848ea5f525ad75a54b128903b147819b4a708a5e04a41b0d573d891a": [
1,
4
],
"8e8b63eb62b0e513868ce77d71267524ad5026374af3895ed2f419cc3e8a0179": [
2,
4
],
"e04f9dfce63fffc1ba5a8db397d357b61e6cb3cbdfdaf23e65d7b61f6a7951b1": [
2,
4
],
"a2225d1e749af2dc036ae9f4f924564fda1c1736f44ac51c296c721456cfbbf7": [
4,
4
],
"3ddedf34c44d77a374e7bd92c7c5d1de1a86167d0e9bd3980077112d2d836c30": [
0,
4
],
"2a6b390ca7d53c6b8e178f330e98a1e054df5300371b1eae3e6535c3802bb89c": [
4,
4
],
"5a30c82d7858a667ed9ec65fc6d350ae8489cf959e0cb17210832808cca98301": [
3,
4
],
"a3cccd5336063556ed00918aede8556c3e18cb32e44639f1df882fdc7e26e899": [
4,
4
],
"2407959ff7698a8dc707e75474a78ab60d6609b7bc9c6469de8a8549fda125ec": [
0,
4
],
"9227e80e4be5e5c39b915fd8494ed4655ab90e3ad42c4e7347538a361fbd95cb": [
0,
4
],
"7e49bcad462ca35d906d6bb0605ea252e8f96e51e2c8901b934ecb1f63f9925e": [
5,
8
],
"e8f60abed9492e3a2582d2c72a613155db93481667ea1be9ed0dc82d224b3eaf": [
4,
4
],
"8ba3ca1e29060e0ddfadbe7788d3b6f1a2bdc8adba559a43d674d2c8fb89ef3f": [
4,
4
],
"0833943305dbbf460653b4a43337e61e7861f582eec327c9bde1f249b5a7fac6": [
4,
4
],
"1c293fd7c9d74908a228c1cee16ac128d26e9d65bed6f66ad15b23a6622d7e9e": [
4,
4
],
"c3fba01c7810a232ee3a45f59e34cb0ed40e3f2c00fda8644b6b6af4fd20c80c": [
3,
4
],
"cfa0c4af0ee7d03d09ab0524d8c7a2749fba5b36ebf39d795beb4ab1f88efdcf": [
4,
4
],
"05d4e62d885460b7ba0618f65db0fc68f2b0dc9ae9936007343c24dc94015621": [
1,
4
],
"15ce55e26fb224c8fa9cc95cabd790f0bce1b639c88b3ef30a2297dbd0af406d": [
4,
4
],
"a9050be09a81c76c4b773af9e1ce5f922e8f6030fbfce8b8de5fe6b4fc8afcc2": [
4,
4
],
"63e437e23426aa5a74eb8532f1952ebd500dd6b8ba85a3acb3508c4c56b9e56a": [
4,
4
],
"15e84f105aa67183548365e3b9200d514e801d8322291aa8344e333cc6814e7b": [
4,
4
],
"99e229456271effeb223257b39bef1a427c3ec28951c10d3d65a582050b4c08d": [
4,
4
],
"0bfa80e88fb4d71fbcac67c9cdee25afd3e505df931ac43302ad45eb39252e59": [
4,
4
],
"eb803e6ae7b35a60b397cddcaf32e37df9c7d1f8f452c5ca1b03cf94247cbe91": [
1,
4
],
"cae1f05776486cc417feed6244c3804ec3e2e6528b17c384bd5f3eaf1930e4e3": [
4,
4
],
"daa5e5db2354cd1ab4f5f2830445331388de3fdfcfc0d2f010cf628cdc815c7e": [
1,
4
],
"548900377cf69a62f8c4e59051da6d877d60de52043108d7c33d1043af09e1ee": [
1,
4
],
"dcb58fe59790e4506b0b1c8b38e3fa10d2928ec1e9312abcea6d8dafdbdd7a3e": [
1,
4
],
"7f138e638e5f6083d2fcf12ed45b0619ec61b50ce89737c1bebd2c640b78bb32": [
4,
4
],
"8530c1fa5d6dc6a8ad7286900f4b42b5bd529bfe3338d4d95672b13a438209e0": [
4,
4
],
"b1868018eae4dd7f7c6777628b906c501c9c99fa3a9050ecef7fb2d82500f166": [
0,
4
],
"ed14c3de12e1114cda01cd1de8900ddaf087eb120e671bf25d2d0d594b85edcb": [
0,
4
],
"a8ec09d303db60aaec1db8bfb1a8371c6eccdde56047c8e48dea1b8ab0d344c5": [
0,
4
],
"6a40ef1b986a3b1ae5e62bc43be0c586d81fc45720eaa38db2d60bedde5dbea3": [
0,
4
],
"644bd7ea04068ae308c47073b1be7d508f32c3c9e040d7f6bc3121ad87b4a6c6": [
4,
4
],
"f38d829e8bf50f2d6cdd2a274a8306c77d285584a8d4766bff10374c4d0a8f22": [
0,
4
],
"618dd9710a370a51ba3d8f92fe5170b6e1d355db3c31a86d2d27b4ccb0e856dd": [
2,
4
],
"8a629683c97d31db285df4fb69aeafd6874128b0126d2de2e68b0aaf19f3aa3b": [
2,
4
],
"37f63e40628242614fd6cf760cc3b7252b0330522525f6355330b0d47455583a": [
3,
4
],
"888994671a7192f164dfc55868fec460304550a5350f08bf8dfdaead04caef93": [
4,
4
],
"3dc29f5bf0f600d3669cf137076f12d8786c212384c02fbbea8f77c4b0e46712": [
2,
4
],
"448e1df0318cc9622e74a9db2ba7add8ad8c1e87749f28ad274787bf909aae42": [
4,
4
],
"b4f47780d03fc70716668e4265e25db2252cfbe5f3e0abceea42861d37d24987": [
4,
4
],
"c2a869ad4cf7902b5624e8ef6e6cd729db2a9523ba2b90a7c57851532173c7a8": [
2,
4
],
"3ca3a36c63eff305470eb32a257a251e588da390334c6345d8c81a20f7ada147": [
4,
4
],
"41129b97b23d87bfcae9166d9de6d2b05d7b34253382634e0e5ff8b3719c621e": [
1,
4
],
"ee836fc7ca20811d5e2f602ffede556966a3f17ff71864b10ca261aa2eba6a3d": [
2,
4
],
"ec01de021aeaa2ad1a3341a7041efdf1dd5b4a542ef969f0caff92c521e481eb": [
3,
4
],
"d66fee67ad82f4d4442004da47d478456abe73bbf896605c0527e1fcac17f611": [
4,
4
],
"f643bc158b390f898917dae4958ab3c7a55cd09da79d92aa88489bfa628a6565": [
0,
4
],
"072936afae8aba712391fc495fdb8a245c7682b67795a5d17ed94af4edb4a173": [
0,
4
],
"21c177c4a980b64f54d67a6426e948f41666f9990cc8e5fe8b6b6698afd5d3e3": [
4,
4
],
"bdf444068e235d70bf8dfb41d750da9c742ae19236cf6a034602294d88055c97": [
0,
4
],
"6705a75ec1a9d4c64c5ac2df21f6fff930c06d9fc7f3f6868276733aacfdbd8d": [
1,
4
],
"f83059d9d3c732401503d71ad6dd2617f7799b443a42caf562531666a7ee5e43": [
0,
4
],
"c6107857dbafbea309f8acfe6e21e39434cf666d7e0f77344e22fbd381dd1153": [
4,
4
],
"8eb933c5e70a3deeba4725567f5e9e4982ae896a3a5c75ae673c83695be52bb0": [
4,
4
],
"21c69645e0ef3ca99a6d9238c3fbfcf1fd511b1299a492f63d09f3cc471e2d16": [
4,
4
],
"b1ae80b4698d43664e05dbdf5847c1b7d0323cadee7ec2f0f36b9473dd0b1e58": [
3,
4
],
"353d4ac3bb17829287edae00d28cf34508c8d763e3518145ad8146e06bf0dec7": [
4,
4
],
"7944c602e44eb01347fea20e17ebc68a22715703900f4bb093ce025c26c05304": [
3,
4
],
"abb92e3ed7509edf416050d177a580d63ab245d5e9a1e20d2ad377c99be8ed8b": [
0,
4
],
"8feac231f91be6a5c09181b53225d07bd5c0ae4118be90bfed3de998f05ab538": [
4,
4
],
"6510dedcdbb68b7b981af13caf99633ec16fa5c00b6218af71c173f7e5a6eb66": [
4,
4
],
"40aee7909833534d374861a33ce410e32e7fd649348bb1dbfb79f309c83029cd": [
4,
4
],
"05a00ff55e2b031801ce1696df137650fc9f2991fd4a7bb2fb89d737fc36c505": [
3,
4
],
"f82f7d49ab555b6aeb13a9ef0d314580e13eb2dcbd4b7f912ca60a32712c343b": [
4,
4
],
"09c9b21a920a9f8018b8ba09486c5faf9405341a5b1db59f7dd4299e3bbf182a": [
3,
4
],
"98e10872c140593169d4aea98c41c44550d8e76d34563eb8d05a16d629b09118": [
3,
4
],
"abaecf5b2b62d5ea86e4a4fa6138083f6b37dd95060427bf096896f6cafc62d2": [
4,
4
],
"9cd7bfd5dd94b9354fd4b34f3926401e4b148968aa14efaedf96b50ef14a7f6c": [
3,
4
],
"aa7ae33aae22ef908bfb19c751ef6da69c285e0de539e1a17752d5de1119b311": [
4,
4
],
"c15257efacca0a58a7077eab9af22704a540ec57ea97acf274b6ff3e62ba1f96": [
4,
4
],
"62729ac45c12922b4026e220f383638d764978890b27c6fe7e5f60dd066d6041": [
0,
4
],
"e7c3eaa84965ac99e05cc04c07ec2a3c95b5a36925e0cef8e36e70b60e280a70": [
3,
4
],
"7a14819fb6a05cc2d740cc868b05d7453656720313ca741ba54e978a13d1f70c": [
1,
4
],
"90dbbaca87667a5236be276c8a5ac5ae49da78bf89dd10aa42c8b35a26676ce1": [
3,
4
],
"77ed3c1abe3cb7af8e25540441ffd4db063110f10d1b1f9781d8d24ca44bc9ab": [
4,
4
],
"bbdcb41daf2d398701eb3f128e0f3e4c9d39d2660ecedfcc95d6b2a77c2a81fe": [
4,
4
],
"f194732b112e60ad805c7421e19d9d8217f00a9c69e1077c7d28b33e80f8605c": [
1,
4
],
"b29ec10e9948776c11a3024ce57d1941fe8794b43306826891ac1d54d16e9996": [
3,
4
],
"d6d1eda1e65717e4ff0ee71cba8a60393353062a9ef30c1ea155f862f79faba6": [
4,
4
],
"93ed1d90a9063346407283befb83389a2f914539b2313bc12da938dc56b4de19": [
4,
4
],
"e4733fb40eeddf89861eeba79ebffd748b20d076b7043624bc2b3f08e614559e": [
2,
4
],
"5d4925111bf12adc9304fa2175051f4b2ff3f2c9158f7ee0dbc1877d2e6fb184": [
2,
4
],
"795db3d1c99a3472fbf46d516568b1ef03c7ec046c484cbd809dead15b024d68": [
4,
4
],
"7e8141f4c5986c18b71337a247992d555fa3d01c263c004518d24729249c58a1": [
2,
4
],
"75169695a9f6130b3362a73635a228a14ef935af8deeb1d07498a967791febcb": [
0,
4
],
"c3ab3b8af797424eb391d9c79c5f6bf9422f9a92419bc780156fcc600f8f2a18": [
4,
4
],
"8abae899544a632ab2220fe2324e952d8e4143e6a7bed24a73df679baf1cff42": [
4,
4
],
"5077b22974412b6926a914b1df167d66ee8404d489cd25a356dfb8a37fe07219": [
3,
4
],
"ca4aa4071765fb883f64f693eb8a26690b2344233db26870ff2d3a8d6a8555e8": [
2,
4
],
"8f1359a6826010ead0988641a26d27f62660935d370f6514902c938df88e7a6e": [
4,
4
],
"4757d703cfa2dd7ec39d68b4e0ff2d53a01d078a5407239f7597075d7ae2f3e4": [
0,
4
],
"0c6ec1ad40e99c63fd32e029518d47426bc54e0e10a23f3a832707843bfb428c": [
4,
4
],
"76f3a84613625e41c4a4db4194a97947dee4cae23ee87499a1b5223defbf2f95": [
0,
4
],
"34940e04811980d613f0f06686e1a7803c8d52147720f1460a6f6913fe44b9ea": [
2,
4
],
"e6600b8454b7ccc1a9e9c1dc13f8fc55aaccb8a3ca4554bdd37484ec43e427bb": [
4,
4
],
"5654226b94bc87d9a5804cd4bafb4fd6801252760576737ee8b4475ebcdf109d": [
4,
4
],
"10b5d0585d899bde3016ea87ea7fdc6d0a76cd8b6effe93853321700a350fc58": [
4,
4
],
"561670f533e6810b12c93f8468a8c18850b37464303703496a05b3c8d53e4712": [
4,
4
],
"d3cf40951567d0b05d6338b12490f74de7800d5466dc4f6fd66315eccdd23689": [
4,
4
],
"7cb25eec9c6d8636d50470f1d93cd9060998cbd5c0da370360b13f326f8b2ee7": [
0,
4
],
"3acf7f025cc344565541196bdbb967961940bb7834f087c48a43d8da42e7c1df": [
2,
4
],
"a1bc38a365f6fb4ed467115e183dc1891de46b4100877c394dbf82fe78f5ab2a": [
4,
4
],
"3c81e0c17075cbe183c7cc1093591bc30b55d8a297d335c76f07d86ca82a4d8c": [
4,
4
],
"fc99dd350c8b43abe187fb7e8b05414b2412c0f4088fd08125bad92989c536d7": [
2,
4
],
"03294fe132ea9de941aa0fd93cb0c627397c387588e043e82a48be780b0f3171": [
0,
4
],
"d0f17c43c617866d7c4be6fd2cf9584a758aed30ee886157ee8777c9e9ce1a78": [
4,
4
],
"ed9fa8553243883dede4fe8186cbf925a9f30368bf53076e4513142d96a21903": [
0,
4
],
"ad4cf982a1cd81ab6f2cdd38e1f26b4362f7838415590dc91b86f8524668182c": [
4,
4
],
"edfbdb28761117996a1b5465e12d32c5d35956cb99dd65a246637f5a576d859d": [
2,
4
],
"21d540fb70c71c450cd6ede61b53b77333fa5de5661409e52142a153a6d00301": [
3,
4
],
"a1b032b4ae06cfa3d3bd7a75a3a10dcbc087f4eca57ec1c567717f6f9d9b4549": [
4,
4
],
"18812f71f17b2a4379ecb490d5286915d47aed2e923ab2d5f3c5d033a9a1bd9d": [
4,
4
],
"93628e986e501aee9ca26863b3505e96a5ecfe6f9d47d04d4b37054fa7d8bfe9": [
4,
4
],
"d017afdcefcf93f3e1d9f1df50cb3f4f8c7430b6070eec9a209267e6e0a515db": [
2,
4
],
"0a83bd107d48dd1fb62cec9d69e766d1fcd0853e26ce04e8b16ccc759bf8538c": [
3,
4
],
"b6ae3ecfd61688821d32a99bafe68976c849b63c56a11de238fdb173134fa29a": [
1,
4
],
"a23ff73d2b0245014405a3eef89f3a54bfd7a68a26fccdfc199520bbea684dc1": [
0,
4
],
"21f7cff4ac31724c41615dc0d38b95f9959c12ac3a383c715d3b7adc62ac3d64": [
4,
4
],
"25de392b82a94f36a7ca9d338666109270f58acbe69f1e83b5a10dd9d0613409": [
2,
4
],
"acd85a56820e69edfcd3a124fdc13ddf18cb4ef6c56a7373330534bd98156472": [
0,
4
],
"08db5751f3d950511660cbc12cedec9122045ba98931c17ca647b550d8a84ce2": [
3,
4
],
"9a88a40baec8d39da84b781f2e3e861fcbdf487af314d3b3198a15f006118e10": [
4,
4
],
"b083d73d94f47488ecb5576c37f6dd717da2f621a957d87cea2832645aec6d0e": [
4,
4
],
"32c8386e6fd646b0050964e777b3bf197e055d5949aeed980b6817a253221901": [
0,
4
],
"a40ab0a85a49aad50f31967db23dac19f04421d691adba42c1638633089fa165": [
4,
4
],
"d426278b3d3a8fff92cbae88482dc8bfa09139676ad8e1a69b4c51ad54d2930a": [
3,
4
],
"17bacd67c429e86e43b293e2cdfa7ebec9e1dc3a64fe6a8d7294dcc1cf120088": [
0,
4
],
"c8002550bb082490fb554a703f4ff228249f62cd423a834f55353989ef0612f0": [
0,
4
],
"cc6ef410bea8f77516c3242d73b205151a22456d5034731ceae0bd07649e7559": [
3,
4
],
"a38bd4648fbb7b3359ca64422455a8d8b9b42141c63f3ef5bb5f32fe194be957": [
0,
4
],
"750478707502cd9a7664bca51134a1700f3037a948268f58309b41978a5488fb": [
4,
4
],
"b2fe9fe286177aba232f95793a9fa20276015de73896eb29271505b5640695b9": [
4,
4
],
"3c4a85552f2d802804f13237b83ae2309d2e4be0f3949562a2fc77cd95bb7f52": [
0,
4
],
"9037b738adb939e41350a618f06c03a2e86b1eef276753a50583a92c14e6e3ac": [
0,
4
],
"c7e37b9449c606c99c9f24612802c60d0b66e38aa285e35fc41011ff1e40589a": [
4,
4
],
"d658de27c7575ea43063128454dd70738600cc860d083dc9337bd0fbbaff1969": [
0,
4
],
"66fff1479cf36f64bfb7689c4fbf8f14d713cb8bc8d6a67916df4a633bbabc07": [
4,
4
],
"ef52c3b9a067a899c1e9eb80b352bd5b054d4c31395f9a1249c94386149043fb": [
2,
4
],
"a68a8c0fb7f007b3267aebe143fbacc384d50faf355458a46b0f54a2b3f1ad8e": [
0,
4
],
"de3cd617a5e1c7f0ccfd0b31c25973547143a9273ab2e686c116769e3a4a2399": [
4,
4
],
"6c91ff823f41761e70e5967c786b1f8c6fa87ea08aa5882087f1960c86399d52": [
4,
4
],
"41021c3448381255ee0b9297a299a5bcd9b4051174bef67ed575fffb3bb2d34e": [
4,
4
],
"348899829f48bab6adf115d44de7b51bcc8c85fd25f1b53f200e1d02c657e0fa": [
1,
4
],
"2e191d0d108242804b9e59c94f6eef3c8e2c09a3e89b7e5b7ec251f8626497cc": [
3,
4
],
"2189a746022ab24a91b0f42fb003354daf95088ccbc425fcec080087d60e05dc": [
4,
4
],
"6bf201f235150150cf5c99bf1b177938ed50287f5a8f71ae8ff7122df005d971": [
3,
4
],
"ff2136d17a8489de1a1ff5d6b257d09f7495b272e6d7470efe4e4f6f6a461622": [
4,
4
],
"35cccf054d763b418e1d40cb9476e90c0696f0d6385216a723dd6f26d38b6f1f": [
4,
4
],
"fda0e279d1876385fbbb552ed9881a77cee361d9feee8c963a69c38da8258a27": [
0,
4
],
"d1462b42f7ba92466c4efbedca84ac9625620c7841b2e4bb67b83ecf6c094e08": [
2,
4
],
"b33ffdc79d03d8158e1fc00e6491716ad7f1db755e7ce74a67fbdcd030665daa": [
3,
4
],
"801711ae3de77c8c7519574e1aa523028b523d14fd59f4582dcadeefec8b4b3e": [
4,
4
],
"c773ab86791b38ecfd23766895ce97b5efc85c5ac8ab5e4ed59bc14c74c2608d": [
4,
4
],
"a5e51766ba3cd5717f66e82e0e3f472ad0ed47d50e1f2943e76d01d54c829c8b": [
0,
4
],
"04c075536d72d5d7524c908c8a5f684d5cdcaf167b73d8b132cb93171a03fedb": [
3,
4
],
"2342a21151f54dce2000b1e849634c09d0d208893beb4542673e6381cf6e4287": [
2,
4
],
"62aabe80c109784994954acc04f7a42f17f9c482419d375e21efdb198e3a7e64": [
3,
4
],
"dc4028f577c02c8f2bd75c45133fe3b87a1376536f1efcf86da1195a5a7f0af1": [
0,
4
],
"a1624611fbdb0d80aa35538f1f3e3ce95fcf93961f494206fae6520c7385cc3b": [
0,
4
],
"54874673438d9a776ce3c42c0fa8b29dc4753f9cda3c5b04eee1d4c40b7f861f": [
2,
4
],
"c737aca3e2758c728f80154f5077fc59c9d18d0d196a69010f8e4f1157ef85dc": [
2,
4
],
"ba1d4ffdd130d8c0c43a1c3e1da64a26e2467b185f825e25cda571ab409c9ead": [
4,
4
],
"2a783aa635bea4f6e724af228fafaa327605a04045bd128e99eded64e1c08c41": [
4,
4
],
"e50bcf2a5d8342e80dc96a73a6f94d881b22ca33f855f672be63549f1c1a4234": [
1,
4
],
"c969abf54ade2f1615913eb613568d1885d3a7b58d26b3bec158b3e51c4cf5a6": [
3,
4
],
"68fbe9cd5f2beed796e15f9e6a58dee07dfd0d1f2b8d89ad00b0849d54dbd3e4": [
1,
4
],
"1329e398d970f4fe615299816150d589c6104c51a90bf6972ed7e2a0ceb68651": [
2,
4
],
"ccc51c58a88b74f787b7097f93e5be4453a7f5becef0ee261f2df104ddaeb210": [
4,
4
],
"286e166d659741eb559813fef8184109c7b5479e3d5776bb95d2736ddaa76a62": [
1,
4
],
"9448b60a415db7155d9f2bffce2b25dc4f45496bf366de01c1729ec9480ff68a": [
2,
4
],
"eec5eb79faef0ac6203ad60d7d946456692e2bf3d4787573ed476be18c5ade9c": [
3,
4
],
"cc789cd06366de63093ed6e6d7c0399ee65bdb4b0904c82a4e4036dcd61ae411": [
4,
4
],
"f4cd06dafa1ce0171fd00ddce19bf3f08b0f9ddb17b660de21ec00a4c8fd7c89": [
2,
4
],
"afbaac9670b3e5612ab498ca45c33b1d20a8d42165bf2b171462eef248111151": [
4,
4
],
"39986bb102cbb9520b22098bc51a0d2e2f30e9ec824d034801e4117ed86e2b1b": [
4,
4
],
"d975160932b702bf62f5ed5343d6faabcabce6a8d7759b9b4babd12af3ba99bc": [
4,
4
],
"710a95252b847d7176f02b065c7083d07c259b7b386176ac72cdc1b7c91323e9": [
0,
4
],
"d5f4c608934cecc8674041838900c93e8c9f24adbbaa7a92b6786317a516e6dc": [
4,
4
],
"c9bffeb585624245728bcba0002a061a70591b325376e7599916910a4552a8cc": [
1,
4
],
"694508b0f66cf8cb779f8f109bf6250e7f74c3038e48168c4dcb198bac6a6e75": [
3,
4
],
"a000234dbb626b3b51f7d727c9f495662c7063a03f81ddc95908092b0df409c6": [
3,
4
],
"ff90bf98f9212f99b226c900f82acdf7a52cefeb5e7b2096f647ad92bdbaacdd": [
2,
4
],
"d4ce3754eb504dde3dbf3916e3c884704e15a7ae5ca0252a49722337722cc0b6": [
1,
4
],
"d329732a80076dd9208005d25978f26f325cbea4eea3859320ab4ffb85752a9a": [
4,
4
],
"10ba2ef5c91d57f4f7ea073640cefb1e672ce2f065e7a57dcd3cc76b8bcd1790": [
0,
4
],
"2581a0ecd9ab16e461a26cf33d9debc7fbc56e77be18ee3fa5c66847095c4579": [
4,
4
],
"830b111c50ff3d3f0d142f37254eeb652d67ead6dfe5976250c428ea08d04ed7": [
4,
4
],
"717dde45edbd6a9455f4ea18a27d93b6a065d12d845368fe07502c14a5415b9d": [
0,
4
],
"22b990e646ff2df4942ab874abbb1068e899b82944c4ffc6120648d26e560b4a": [
4,
4
],
"35d3546092fbb4ae1d093c5b2366aa17e27c7765f97617f4d7d01786f70c6e25": [
2,
4
],
"01d6926fade39a359254dbaa9841d00cf00033969492e1c632a03359bb3e9101": [
4,
4
],
"89f2992ac90d0588d0eec44f3ab1f94219f01de1d4928540e214c090b0e5da28": [
0,
4
],
"6de04d4dfdb956081274a8a650e3809dbf310be3c51cc0cf59ade9cfbc902215": [
0,
4
],
"ae0a03321a9806571ab9ea6aa295ac53d4712e2634b293ac42939e6086735080": [
1,
4
],
"d4daa8d928b888a2ef5598c0f38f9fda8204573dfc90a21ea1520ed76f32515c": [
1,
4
],
"4554c46f11e58a0c2857b40bf5bdadef32199d278cafc3aae884757c6458324a": [
1,
4
],
"8e134aef7b8fc84cdd5cf4a7819d066e2aabd25431d42253d416998f9c8f38b6": [
3,
4
],
"e76fea119e88008672c34effa1b548c4af9f3bc7db583dc288d4434f3682838c": [
4,
4
],
"6196200fad92ea354524171ad105fb98126dd08dc418e2c75065bcba42de0f61": [
2,
4
],
"0c96fa749f386adf8386ade073e9948c8cfaaaf08f7df4cf4832d963cbd3ddb6": [
4,
4
],
"4409a9ee3c3c9fd168f50dc51ce73131e8cd061cbfde17c106fe443fc5b5221a": [
4,
4
],
"4badab22d7626b8d404d7c4b1e341beebca3f6dbe1549b210bd98274d158917b": [
4,
4
],
"796de67094aba606974e6b1e355cb81122d950e9ec36cb484560be5962751051": [
0,
4
],
"fb954cf862351288238fbb74349242761d123e309cb8eaff32e48aeec7340953": [
4,
4
],
"70edbf0f685c9e25bf72785136cf8c13a95c5e94c5f72836a900b3abcd40a275": [
3,
4
],
"d435a6c8dd4b3063761bf681a328c0226d790b974019c809f2ac461e8b847b67": [
4,
4
],
"60650344c7a16cc6c519a2434a85ec48fd550e40087ce46f5ebfed899c9c02f4": [
4,
4
],
"3292384709c5626e6cf83105a258684284b7014ef67a3789253ccf70b80e9c47": [
2,
4
],
"4ce173bad899730ff18df6dc28af44b8b7ebde16117bf8efae34a1029161316e": [
4,
4
],
"7b77fec0fb1996c4d4c13bdd4e94b944b3f8c2f4bac3a44c285b49499bc412fd": [
3,
4
],
"480f2512449a3ae9f9a805cb7dd3c926450322d0984299d399fa173da0dd1fd8": [
4,
4
],
"8609d9a9e1302cb8b10ceb3cfd25b3af34db1b231594abcd113feea8d5f1e814": [
3,
4
],
"2dcaf097ee5aa35ab6552b8118e07b21dc4112dbeaf3288b6707d35f973a7ec7": [
0,
4
],
"c501df344289163f50ab006f5741b228c2ff4c9e545f0df3793285db1a7284da": [
0,
4
],
"6f69092a00b1685bb41921379443b3edd28861adba41dd4987b2437295df4b01": [
3,
4
],
"4f31aa292117529201010e2b85bdc639ccc1663c851464692fbbe224913aa452": [
0,
4
],
"6d021ad798724a61d431c569392e374b71bdc8c49ffb2ee6700141f3e305600e": [
4,
4
],
"5f0d57f16fa33995438c8aac6c004a803a6d980fb2119440afe6d777fb027be4": [
0,
4
],
"20ff49f4e55ecab0bf8b03d9c768378a07bb1e55b063355dee6db430188616ae": [
1,
4
],
"eb7d6ac1c39ad50b26d0d413e57e5bd93822083710d17bccc80e2c5c333ad086": [
0,
4
],
"7eafee96aa1dc63a2d27bd27243c0a60f6a8e1f0e2c82f4310aec72d54ff8908": [
3,
4
],
"e66c3652773891f4ec27531da1a3601d00bb37e19c78f667d8e82d504c024405": [
3,
4
],
"50125911bec3792a7f921f53a57a0e9c331842e730a58bfd8d530be80a4a44fe": [
1,
4
],
"c6c61796b3b6346aa27759345abb809515385f6b4e9c387954241bfd7af7e218": [
0,
4
],
"299c1a433cb36a11631a212fe4d2b50726ca8be24de267b2c31bb0430baa17f0": [
2,
4
],
"4c21e561a02103b149a668b9fdd6b9ed7123372f58b3be95e08734258438a544": [
0,
4
],
"0ac23fe6874870bd36e488337f5a5914cd837da01704e565d1affe348fceda75": [
4,
4
],
"35fa9d5804ee0cc5ddb929800e1ecf89723b733bc27a2ef5afda526e853c2198": [
0,
4
],
"734eeebae060cb4b78a7556c910d3926a60fb753e0298684ac86d8aa74894f58": [
1,
4
],
"aa1118edc9b04e2bd8c9e4e213488e22cb9ed76a61a0bb019ec7bb0037a5e4d9": [
4,
4
],
"0dfb56271ff3438c4a73edbbf6d6b3eb4e678130ac5c9b41bd8a019adc0f583f": [
4,
4
],
"fa908d983a3c80b0ab7d2287d2c54950ca30ed9d06230deabfb4e1851efdd929": [
1,
4
],
"b10c864c3b849466414ad644419de9fb70e9490c94817f28db2b9ba8d26e3b5e": [
3,
4
],
"9bcafd5687e560821f93dcc3ad4aa83bc2d82537fb892985bdc595f2e8e0cd61": [
4,
4
],
"191be73c515e4b228ab37e5007cf9a9c73b5f5690f59e4e3db2c9e3adb9f0e24": [
3,
4
],
"e34048a7e0be5224e9347fdace00625923be1843ce2ce0baf652b79ff45b5238": [
4,
4
],
"56a4918bdc6009cdb5b865a586b5d95b0b7492686220bdcbc056e40f673041ab": [
4,
4
],
"1f28ac4bfea3b0206d7b3323490b6647954c8df9332176f5324f1fc84b88357f": [
2,
4
],
"ac4ecd81b2c904ba1a7d2554f8717e9f388711f72d4bc1174e8f317fb5097283": [
3,
4
],
"aba919e031829950d6deab81a75a902d0ba901a170b5eb1b05a040886046b902": [
4,
4
],
"f3bdbcb261484f516606f1e3d62c0af065d30ca6d314c045bd79f5ddaa451e53": [
4,
4
],
"b373991dacd6d7730d89466d690030fb0691ed30be14b0a535f40b9424c79e54": [
2,
4
],
"5a952aa159cb73e51d336e461cd0fbf455d5f44002edd87fee19e231bee69e75": [
4,
4
],
"593457d29f2e734e93f9c41d3e9d03d9e1c0b71e15d94c2c68215705e0237bf1": [
0,
4
],
"05a0e02c69558eff20276b7d57171780d72d0bb20e7f84fb3ef864762c5c7beb": [
4,
4
],
"b982269b9b2d77fc90df528998a8ef2ddf321a04a65c3a37293e8acd05b9438f": [
0,
4
],
"f04779bb86ca47ba21fb91c82cfc36e603d7e23cb84d61ff6b6bfa1edb7defaf": [
0,
4
],
"c18968790aef8b3586e2fdd72626eaf47d3dd8283ec7a8093dff0ad3e8c40096": [
0,
4
],
"d8ec8eb1d08159b9341c4c3bdd071a3dcfe71b2c8abb9738d147ee5ef7c43ed1": [
3,
4
],
"357e9cf53906d5f45e45e22e9c4be0fd1cb3b0517aa5122391697b050fac6bf4": [
4,
4
],
"8c01f95c1c59abb715d4deb2cfce9fb1811fa68fbd5dbb7e500266f8ea702d7c": [
3,
4
],
"aa42a9ba714b3eb0c76a1dcd7c48cebd11bb883cc902ecba19c24165a3a6e1ca": [
4,
4
],
"adb4ab398e8aad295b25e40132f127c3accb4e0382d2d72af1a2d824d1e58a0c": [
4,
4
],
"b8e8893aa73e08631a322aeb7024c6cd4e62dba6bc552691f1398d21a81e06bf": [
4,
4
],
"d5b7f12d4ad68bd5a8bd7cd120f609babab75ac4e56f22bb31367e1ae8aadb44": [
3,
4
],
"22b5762f1ef919dd44b40aabddd41dc717e546714194b31b4f2dedc2ec81274c": [
4,
4
],
"d39da937989bcbef9e475b76054b23a15404a8af0b71aa67bf397e983d72eeed": [
0,
4
],
"86c773545f054487488bc1c2ec8ccbace07e3ea1b9962fa814c6b41e55e1a70f": [
4,
4
],
"027ab38b15ffe7364fc0060961f2ae439a286243e41bf40705407182c79b0b36": [
2,
4
],
"b08d78a192092fb5cfe9475e46aca8d4f5429c33b88dc7b96fa169b9287e8a22": [
3,
4
],
"ea70156718ee65543c2c43c17fbad6889efc585ad3a8bf943e8d0738e48ba8c3": [
2,
4
],
"81950c1348d3ea1cb913d15c47cea16b2cb4f1ca941b5939b533fceb40e986f8": [
0,
4
],
"5b63d9ba4e3899933dd2fb2a5358d7512236099c79946f8e704a961b0ff11432": [
4,
4
]
},
"humaneval_base": {
"passed": 141,
"n": 164,
"rate": 0.8597560975609756,
"ci95": [
0.798,
0.905
]
},
"measures": {
"for": "sft 20261104T215306Z c1",
"heldout_sig": "12114e1a9e4c",
"at": "2026-11-05T04:00:35.429578+00:00",
"humaneval_base": {
"passed": 141,
"n": 164,
"rate": 0.8597560975609756,
"ci95": [
0.798,
0.905
]
},
"humaneval": {
"passed": 147,
"n": 164,
"rate": 0.8963414634146342,
"ci95": [
0.84,
0.934
]
},
"best_of": {
"passed": 93,
"n": 100,
"k": 4,
"rate": 0.93,
"ci95": [
0.863,
0.966
]
},
"memory": {
"without": {
"passed": 85,
"n": 100,
"rate": 0.85
},
"with": {
"passed": 78,
"n": 100,
"rate": 0.78,
"ci95": [
0.689,
0.85
]
},
"items": 20000,
"k": 2
}
},
"sft_order": "tiers-v1",
"last_error": {
"at": "2026-11-09T18:19:14.154097+00:00",
"phase": "sft",
"error": "ctory.py\", line 406, in from_pretrained\n return model_class.from_pretrained(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/site-packages/transformers/modeling_utils.py\", line 4353, in from_pretrained\n loading_info, disk_offload_index = cls._load_pretrained_model(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/local/lib/python3.12/site-packages/transformers/modeling_utils.py\", line 4435, in _load_pretrained_model\n caching_allocator_warmup(model, expanded_device_map, load_config.hf_quantizer)\n File \"/usr/local/lib/python3.12/site-packages/transformers/modeling_utils.py\", line 5148, in caching_allocator_warmup\n _ = torch.empty(int(byte_count // 2), dtype=torch.float16, device=device, requires_grad=False)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ntorch.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.19 GiB. GPU 0 has a total capacity of 22.30 GiB of which 6.78 GiB is free. Process 52071 has 15.27 GiB memory in use. Process 104901 has 250.00 MiB memory in use. Of the allocated memory 0 bytes is allocated by PyTorch, and 0 bytes is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://docs.pytorch.org/docs/stable/notes/cuda.html#optimizing-memory-usage-with-pytorch-cuda-alloc-conf)\n"
},
"tuning": {
"batch_size": 1,
"grad_accum": 16,
"grpo_batch": 4,
"grpo_max_completion": 192,
"eval_batch": 2
}
}
{
"history": [
{
"at": "2026-11-04T22:39:49.916168+00:00",
"run": "20261104T215306Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1822,
"seconds": 1918.3
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
],
"source": "base"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": true
},
{
"at": "2026-11-04T23:44:53.148894+00:00",
"run": "20261104T215306Z",
"cycle": 1,
"phase": "grpo",
"train": {
"tasks": 150,
"repairs": 37,
"steps": 150,
"loss": 0.0158,
"curriculum": {
"tasks_seen": 113,
"informative": 35,
"failures": 107
},
"seconds": 3457.4
},
"base": {
"passed": 80,
"n": 100,
"rate": 0.8,
"ci95": [
0.711,
0.867
]
},
"best_before": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
],
"source": "sft 20261104T215306Z c1"
},
"candidate": {
"passed": 85,
"n": 100,
"rate": 0.85,
"ci95": [
0.767,
0.907
]
},
"promoted": false
},
{
"at": "2026-11-05T00:46:23.117617+00:00",
"run": "20261105T000435Z",
"cycle": 1,
"phase": "sft",
"train": {
"examples": 2000,
"steps": 125,
"loss": 0.1717,
"seconds": 1940.3
Xet Storage Details
- Size:
- 267 kB
- Xet hash:
- 3364f8e2426bc5642435c2a4d606021b894c72470b8550d60db4b33c57136391
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.