-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
- Examples (public tests) in requirement are incorrect.
For example, in humaneval/47, the second example is incorrect and the output should be8.
def median(l: list):
"""Return median of elements in the list l.
>>> median([3, 1, 2, 4, 5])
3
>>> median([-10, 4, 6, 1000, 10, 20])
15.0
"""
- The type of variables used in examples are conflict with the requirement.
For example, in mbpp/2, the example usestupleas inputs but the requirement mentions the inputs arelist
def similar_elements(test_tup1: tuple, test_tup2: tuple) -> tuple:
"""
Write a function to find the shared elements from the given two lists.
assert set(similar_elements((3, 4, 5, 6),(5, 7, 4, 10))) == set((4, 5))
"""
Metadata
Metadata
Assignees
Labels
No labels