Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ArrowInvalid
Message:      offset overflow while concatenating arrays
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
                  pa_table = pa_table.combine_chunks()
                File "pyarrow/table.pxi", line 3638, in pyarrow.lib.Table.combine_chunks
                File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: offset overflow while concatenating arrays
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1456, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1055, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

problem
string
starter_code
string
tests
list
metadata
dict
You are given an integer sequence A=(A_1,\ldots,A_N) of length N. Here, A_1, A_2, \ldots, A_N are all distinct. Which element in A is the second largest? Input The input is given from Standard Input in the following format: N A_1 A_2 \ldots A_{N} Output Print the integer X such that the X-th element in A is the s...
[ { "input": "4\n8 2 5 1\n", "output": "3\n", "testtype": "stdin" }, { "input": "8\n1 2 3 4 5 10 9 11\n", "output": "6\n", "testtype": "stdin" }, { "input": "3\n3 2 1\n", "output": "2\n", "testtype": "stdin" }, { "input": "100\n2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1...
{ "func_name": null }
You are given an integer Y between 1583 and 2023. Find the number of days in the year Y of the Gregorian calendar. Within the given range, the year Y has the following number of days: - if Y is not a multiple of 4, then 365 days; - if Y is a multiple of 4 but not a multiple of 100, then 366 days; - if Y is a m...
[ { "input": "2023\n", "output": "365\n", "testtype": "stdin" }, { "input": "1992\n", "output": "366\n", "testtype": "stdin" }, { "input": "1800\n", "output": "365\n", "testtype": "stdin" }, { "input": "1600\n", "output": "366\n", "testtype": "stdin" }, ...
{ "func_name": null }
"You are given an integer sequence A=(A_1,\\ldots,A_N) of length N. Find the value of the following (...TRUNCATED)
[{"input":"3\n1 3 2\n","output":"3\n","testtype":"stdin"},{"input":"7\n2 5 6 5 2 1 7\n","output":"83(...TRUNCATED)
{ "func_name": null }
"Takahashi and Aoki played rock-paper-scissors N times. [Note: In this game, Rock beats Scissors, Sc(...TRUNCATED)
[{"input":"6\nPRSSRS\n","output":"5\n","testtype":"stdin"},{"input":"10\nSSSSSSSSSS\n","output":"5\n(...TRUNCATED)
{ "func_name": null }
"There are N people participating in an event, and the transportation cost for the i-th person is A_(...TRUNCATED)
[{"input":"4 8\n1 3 2 4\n","output":"2\n","testtype":"stdin"},{"input":"3 20\n5 3 2\n","output":"inf(...TRUNCATED)
{ "func_name": null }
"You are given an integer n and a 2D integer array queries.\nThere are n cities numbered from 0 to n(...TRUNCATED)
"class Solution:\n def shortestDistanceAfterQueries(self, n: int, queries: List[List[int]]) -> Li(...TRUNCATED)
[{"input":"5\n[[2, 4], [0, 2], [0, 4]]","output":"[3, 2, 1]","testtype":"functional"},{"input":"4\n[(...TRUNCATED)
{ "func_name": "shortestDistanceAfterQueries" }
"There are some red and blue tiles arranged circularly. You are given an array of integers colors an(...TRUNCATED)
"class Solution:\n def numberOfAlternatingGroups(self, colors: List[int], queries: List[List[int](...TRUNCATED)
[{"input":"[0, 1, 1, 0, 1]\n[[2, 1, 0], [1, 4]]","output":"[2]","testtype":"functional"},{"input":"[(...TRUNCATED)
{ "func_name": "numberOfAlternatingGroups" }
"There is a snake in an n x n matrix grid and can move in four possible directions. Each cell in the(...TRUNCATED)
class Solution: def finalPositionOfSnake(self, n: int, commands: List[str]) -> int:
[{"input":"2\n[\"RIGHT\", \"DOWN\"]","output":"3","testtype":"functional"},{"input":"3\n[\"DOWN\", \(...TRUNCATED)
{ "func_name": "finalPositionOfSnake" }
"You are given an array of positive integers nums of length n.\nWe call a pair of non-negative integ(...TRUNCATED)
class Solution: def countOfPairs(self, nums: List[int]) -> int:
[{"input":"[2, 3, 2]","output":"4","testtype":"functional"},{"input":"[5, 5, 5, 5]","output":"126","(...TRUNCATED)
{ "func_name": "countOfPairs" }
"You are given an integer n representing the number of players in a game and a 2D array pick where p(...TRUNCATED)
class Solution: def winningPlayerCount(self, n: int, pick: List[List[int]]) -> int:
[{"input":"4\n[[0, 0], [1, 0], [1, 0], [2, 1], [2, 1], [2, 0]]","output":"2","testtype":"functional"(...TRUNCATED)
{ "func_name": "winningPlayerCount" }
End of preview.

No dataset card yet

Downloads last month
3