Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
(ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: 00040368-8da6-4169-b5dc-2cbf30d263cb)')
Error code:   UnexpectedError

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.

id
int64
name
string
difficulty
string
link
string
date
timestamp[us]
task_description
string
test_case
list
constraints
list
python_template
string
java_template
string
metadata
dict
2,459
minimum-hours-of-training-to-win-a-competition
Easy
https://leetcode.com/problems/minimum-hours-of-training-to-win-a-competition/
2022-08-14T00:00:00
You are entering a competition, and are given two **positive** integers `initialEnergy` and `initialExperience` denoting your initial energy and initial experience respectively. You are also given two **0-indexed** integer arrays `energy` and `experience`, both of length `n`. You will face `n` opponents **in order**. T...
[ { "label": "Example 1", "input": "initialEnergy = 5, initialExperience = 3, energy = [1,4,3,2], experience = [2,6,3,1]", "output": "8 " }, { "label": "Example 2", "input": "initialEnergy = 2, initialExperience = 4, energy = [1], experience = [3]", "output": "0 " } ]
[ "n == energy.length == experience.length", "1 <= n <= 100", "1 <= initialEnergy, initialExperience, energy[i], experience[i] <= 100" ]
class Solution(object): def minNumberOfHours(self, initialEnergy, initialExperience, energy, experience): """ :type initialEnergy: int :type initialExperience: int :type energy: List[int] :type experience: List[int] :rtype: int """
class Solution { public int minNumberOfHours(int initialEnergy, int initialExperience, int[] energy, int[] experience) { } }
{ "func_name": "minNumberOfHours" }

No dataset card yet

Downloads last month
4