{"kind":"task","effective_mode":"full","benchmark":{"kind":"benchmark","effective_mode":"full","slug":"livecodebench","formal_name":"LiveCodeBench","introduction":"LiveCodeBench continuously collects new competitive-programming problems to evaluate coding capabilities. Its initial release_v1 contains 400 problems, with source platform, contest date, and dataset version tracked explicitly.","introduction_ja":"","introduction_en":"","category":"Category not supplied","task_count":null,"acquisition_status":"Acquisition status not supplied","official_url":"https://livecodebench.github.io/","indexing_mode":"noindex","profile":{"resources":[],"task_format":"","scoring":"","metric":"","size":"","answer_access":"","license":"","citation":"","maintainer":"","released":"","why_hard":"","related":[]}},"task_id":"f67a9031-4841-54fa-a7d3-69b31d12c8e4","task_key":"release~5fv1--test--2902","task_revision_id":"2","upstream_id":"2902","short_description":"max-pair-sum-in-an-array","config":"release_v1","split":"test","body":"{\"contest_date\":\"2023-08-13T00:00:00\",\"contest_id\":\"weekly-contest-358\",\"difficulty\":\"easy\",\"platform\":\"leetcode\",\"question_content\":\"You are given a 0-indexed integer array nums. You have to find the maximum sum of a pair of numbers from nums such that the maximum digit in both numbers are equal.\\nReturn the maximum sum or -1 if no such pair exists.\\n \\nExample 1:\\n\\nInput: nums = [51,71,17,24,42]\\nOutput: 88\\nExplanation: \\nFor i = 1 and j = 2, nums[i] and nums[j] have equal maximum digits with a pair sum of 71 + 17 = 88. \\nFor i = 3 and j = 4, nums[i] and nums[j] have equal maximum digits with a pair sum of 24 + 42 = 66.\\nIt can be shown that there are no other pairs with equal maximum digits, so the answer is 88.\\nExample 2:\\n\\nInput: nums = [1,2,3,4]\\nOutput: -1\\nExplanation: No pair exists in nums with equal maximum digits.\\n\\n \\nConstraints:\\n\\n2 <= nums.length <= 100\\n1 <= nums[i] <= 10^4\",\"question_title\":\"max-pair-sum-in-an-array\",\"starter_code\":\"class Solution:\\n    def maxSum(self, nums: List[int]) -> int:\\n        \"}","display_format":"text","language":"","answer_status":"external_grader","assets":[],"source_url":"https://livecodebench.github.io/","history":"initial import","indexing_mode":"noindex","subproblems":[],"grids":[]}