Dataset Preview
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: CastError
Message: Couldn't cast
question_content: string
contest_date: string
starter_code: string
difficulty: string
formatting_message: string
task_id: string
-- schema metadata --
huggingface: '{"info": {"features": {"question_content": {"dtype": "strin' + 333
to
{'question_title': Value('string'), 'question_content': Value('string'), 'platform': Value('string'), 'question_id': Value('string'), 'contest_id': Value('string'), 'contest_date': Value('timestamp[s]'), 'starter_code': Value('string'), 'difficulty': Value('string'), 'public_test_cases': Value('large_string'), 'private_test_cases': Value('string'), 'metadata': Value('string')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/arrow/arrow.py", line 75, in _generate_tables
yield Key(file_idx, batch_idx), self._cast_table(pa_table)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/arrow/arrow.py", line 54, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
question_content: string
contest_date: string
starter_code: string
difficulty: string
formatting_message: string
task_id: string
-- schema metadata --
huggingface: '{"info": {"features": {"question_content": {"dtype": "strin' + 333
to
{'question_title': Value('string'), 'question_content': Value('string'), 'platform': Value('string'), 'question_id': Value('string'), 'contest_id': Value('string'), 'contest_date': Value('timestamp[s]'), 'starter_code': Value('string'), 'difficulty': Value('string'), 'public_test_cases': Value('large_string'), 'private_test_cases': Value('string'), 'metadata': Value('string')}
because column names don't match
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 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1880, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
question_title string | question_content string | platform string | question_id string | contest_id string | contest_date timestamp[s] | starter_code string | difficulty string | public_test_cases large_string | private_test_cases string | metadata string |
|---|---|---|---|---|---|---|---|---|---|---|
Second Best | 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... | atcoder | abc365_b | abc365 | 2024-08-03T00:00:00 | easy | [{"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"}] | eJztl72OXEUUhAmIeYbSxBbq06d/eRIkTIYDJ4slrwNkISGeAd6XquoLQjsgPHLKRquR5t4+X/2cnl++/P3Xr77w37cf+c93H29vn959eL59g1u+fkpUxOun2yvcfvzwfH1ezwfPb94/P//07o0+ev/8w9un28+v8LevRymvnyoSDR0DEwsbURCB4FMT0RAdMRATsRAbtaAGakXlixtqRx2oE3WhbmRBBpKPTGRDduRATuRCbrSCFmgVjW9saB1toE20hbbRC3qgV/RE54E6+kCf6At9YxSMwKgYidEweN6BMTEWxsYsmIFZMROzYXZM... | {} | |
Leap Year | 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... | atcoder | abc365_a | abc365 | 2024-08-03T00:00:00 | easy | [{"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"}] | eJxrYJmaycQABhFJQEZ0tVJmXkFpiZKVgpKhqYVxTJ6SjoJSfmkJVMzYzBQiVJJaXFJSWZAKEiwuScnMU6rVUUDWbGFphqnZjEjNZhbmZNtsZGBgQLbNRgaG5DvbyMCIggAztTQlX7OliSUFUWVoQYHN2EIbt+bYKXoAEb63xA== | {} | |
Xor Sigma Problem | "You are given an integer sequence A=(A_1,\\ldots,A_N) of length N. Find the value of the following (...TRUNCATED) | atcoder | abc365_e | abc365 | 2024-08-03T00:00:00 | hard | "[{\"input\": \"3\\n1 3 2\\n\", \"output\": \"3\\n\", \"testtype\": \"stdin\"}, {\"input\": \"7\\n2 (...TRUNCATED) | "eJw03U2uLTFyHGAY0EIOegVVZP3R0EIE2IDGmgga2CNPvB6v0vEFb0tQ6/V7955TP2QyMzIi8v/+y7/9v3/99//2P/7PP/7jP//(...TRUNCATED) | {} | |
AtCoder Janken 3 | "Takahashi and Aoki played rock-paper-scissors N times. [Note: In this game, Rock beats Scissors, Sc(...TRUNCATED) | atcoder | abc365_d | abc365 | 2024-08-03T00:00:00 | medium | "[{\"input\": \"6\\nPRSSRS\\n\", \"output\": \"5\\n\", \"testtype\": \"stdin\"}, {\"input\": \"10\\n(...TRUNCATED) | "eJxsvTFyZEvTJUdhVkFp7N8AaRRnFWl5FZqRG6AyRoGUqMz6ZlVDoCrcPS6633tA1a28kRHn+Mnv626g8N/+0//+P//3/+V/+j/(...TRUNCATED) | {} | |
Transportation Expenses | "There are N people participating in an event, and the transportation cost for the i-th person is A_(...TRUNCATED) | atcoder | abc365_c | abc365 | 2024-08-03T00:00:00 | medium | "[{\"input\": \"4 8\\n1 3 2 4\\n\", \"output\": \"2\\n\", \"testtype\": \"stdin\"}, {\"input\": \"3 (...TRUNCATED) | "eJw03cutLb2SHGBAkA+aLlwLivVgFWWJAMmBnjR6II00kQXyTv4ovuD++3nuOXuvB4tMZkZGRP6f//zf/t///S//6b//73/927/(...TRUNCATED) | {} | |
shortest-distance-after-road-addition-queries-i | "You are given an integer n and a 2D integer array queries.\nThere are n cities numbered from 0 to n(...TRUNCATED) | leetcode | 3517 | weekly-contest-409 | 2024-08-03T00:00:00 | "class Solution {\npublic:\n vector<int> shortestDistanceAfterQueries(int n, vector<vector<int>>&(...TRUNCATED) | medium | "eJztve2uZclxJWYDfoN5gev+RRp7hJ0f+2s0EmDDfgBj9G84GLSoktUA2U00i2MNCAJ+CD+AH9Un11qxIvete6uq65IiR1PSPVm(...TRUNCATED) | {"func_name": "shortestDistanceAfterQueries"} | |
alternating-groups-iii | "There are some red and blue tiles arranged circularly. You are given an array of integers colors an(...TRUNCATED) | leetcode | 3527 | weekly-contest-409 | 2024-08-03T00:00:00 | "class Solution {\npublic:\n vector<int> numberOfAlternatingGroups(vector<int>& colors, vector<ve(...TRUNCATED) | hard | "eJzsvc2uJTeSJjiL2c1L3M6VNFAV+O/0zsoEeoBGL3sxtWsNCkplVJWAVEgIRVbnQBAwD9IPO8Zz76GZXZp97lGN3lEwhM49x50(...TRUNCATED) | {"func_name": "numberOfAlternatingGroups"} | |
snake-in-matrix | "There is a snake in an n x n matrix grid and can move in four possible directions. Each cell in the(...TRUNCATED) | leetcode | 3533 | weekly-contest-410 | 2024-08-10T00:00:00 | "class Solution {\npublic:\n int finalPositionOfSnake(int n, vector<string>& commands) {\n\n }(...TRUNCATED) | easy | "eJztXNtuGzcQ7UM/hNWTXTiBZ6hrc3komjYFiiZoXLRAFAQbeZ0ItVeGtE5dGAb6Ee0n9K0fWe1akjVeznBI2k4NS0/r9Q4vh+R(...TRUNCATED) | {"func_name": "finalPositionOfSnake"} | |
find-the-count-of-monotonic-pairs-i | "You are given an array of positive integers nums of length n.\nWe call a pair of non-negative integ(...TRUNCATED) | leetcode | 3535 | weekly-contest-410 | 2024-08-10T00:00:00 | class Solution {
public:
int countOfPairs(vector<int>& nums) {
}
}; | hard | "eJztfduuJUdynQ34Q475RBqlQeU9U6PRgwE/24DnTRSEHk6PRWDYTTSb8gjEAPY/6B/8mz6VsVZE1GEXpT4HLA3JHEyyTu+98xL(...TRUNCATED) | {"func_name": "countOfPairs"} | |
find-the-number-of-winning-players | "You are given an integer n representing the number of players in a game and a 2D array pick where p(...TRUNCATED) | leetcode | 3519 | biweekly-contest-136 | 2024-08-03T00:00:00 | "class Solution {\npublic:\n int winningPlayerCount(int n, vector<vector<int>>& pick) {\n\n }\(...TRUNCATED) | easy | "eJztXM1uI8cRziEPMtFJCujFVPX8Zr17SJBTLgGyN69hcLW0LUAiBS5lryEIyEMk75VbXifkqL+uH7JnGbWP1qVFavqnqqu/qvq(...TRUNCATED) | {"func_name": "winningPlayerCount"} |
End of preview.
No dataset card yet
- Downloads last month
- 87