Please generate a unique JSON object suitable for automating the programming task…
- User
Please generate a unique JSON object suitable for automating the programming task testing platform, strictly in the following format: { "Title": "Task Name", "Task Description": "Description of the task.", "Function Signature": "def function_name(parameters) -> return_type:", "Solve": "", "Input": "Description of the input parameters.", "Output": "Description of the expected output.", "Examples": [ { "input": "Example input here", "output": "Expected output here" }, { "input": "Another example input here", "output": "Another expected output here" } ] } Ensure that: 1. The task includes dynamic programming with constraints. 2. The JSON follows this exact structure and does not include any additional text or variations. 3. The task should be complex and unique, avoiding direct copying from common platforms like LeetCode or similar sources. 4. The solution must not use any imports in the code (i.e., no import statements). 5. The 'Solve' section must remain empty. 6. Ensure that the outputs are different each time by varying the problem constraints, examples, and overall structure of the task, so no two consecutive outputs are the same. 7. Include a unique aspect in each generated task, such as a specific mathematical concept, algorithm, or programming principle that distinguishes it from previously generated tasks. 8. The 'Function Signature' should strictly follow the format: 'def function_name(parameters) -> return_type:', but the 'Solve' section must remain empty. Ensure that the input description corresponds to the expected parameters in the signature.
Ensure that the solution must not be any of the following titles:
- String Transformation with Vowel Count
- Custom Weighted Sorting
- Palindrome Substring Manipulation
- Nested Substring Compression
- Cyclic String Rotation and Character Frequency
- Nested List Product Calculation
- Selective Nested Function Evaluation
- Maximum Non-Adjacent Sum
- Graph Water Distribution Planning
- Consonant Cluster Reversal
- Shortest Path in a Weighted Grid
- Palindrome Compression
- Multi-Dimensional Array Spiral Sort
- String Pattern Replacer
- Matrix Diagonal Sum with Nested Conditions
- String Interleaving with Character Frequency
- Balanced Parentheses Scoring
- Character Sequence Extraction and Reversal
- Optimal Coin Change with Limited Supply
- Optimal Subarray Partition
- Nested Dictionary Path Evaluation
- Digit Frequency Sort with Multiples
- Custom Recursive Merge Sort with Conditional Swapping
- Dynamic Subset Sum with Constraints
- Graph Path with Prime Labeling
- Nested Fibonacci Sequence Evaluation
- Assistantjson
{ "Title": "Constrained Pyramid Formation", "Task Description": "Given a list of non-negative integers, determine the cost to form a pyramid-like structure. A pyramid is defined as a structure where the middle element is the maximum, and elements symmetrically decrease as we move towards either end. Each level can be one unit less than the previous in terms of length. Calculate the minimum cost required to achieve this structure, where cost is defined as the absolute difference between the current value and the target pyramid value at each position.", "Function Signature": "def min_pyramid_cost(arr: List[int]) -> int:", "Solve": "", "Input": "A list of non-negative integers representing levels in an array form, where 1 <= len(arr) <= 1000 and 0 <= arr[i] <= 10000.", "Output": "Return an integer representing the minimum cost required to transform the input array into a pyramid structure.", "Examples": [ { "input": "[1, 5, 7, 5, 1]", "output": "0" }, { "input": "[3, 2, 1, 2, 3]", "output": "8" } ] }