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 graph traversal algorithms. 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:
- Vowel-Consonant Alternating Substring
- Sorting via Bubble Sort and Tuple
- Nested Dictionary Merger
- Palindrome Permutation Checker
- Indexed String Number Sum
- Min Cost Path in Grid with Restricted Moves
- Nested List Summation Based on Depth
- Maximum Sum of Non-Adjacent Elements
- Cyclic Character Shift
- Fractional Decimal Sorting
- Matrix Spiral Traversal
- Hierarchical Employee Salary Calculation
- Custom Sorting with Prime Factorization
- Alphabet Position Converter
- Assistantjson
{ "Title": "Distinct Paths in Graph with Constraint", "Task Description": "Given a directed graph represented as an adjacency list and two nodes, start and end, find all distinct paths from the start node to the end node that pass through exactly three nodes, including start and end. This problem requires implementing a depth-first search traversal.", "Function Signature": "def find_distinct_paths(graph: dict, start: int, end: int) -> list:", "Solve": "", "Input": "A 'graph' represented as a dictionary where keys are node identifiers and values are lists of nodes that can be directly reached from the key node. 'start' and 'end' are integers representing the starting and ending nodes of the graph traversal.", "Output": "A list of lists, with each inner list representing a distinct path of length three from the start node to the end node within the graph.", "Examples": [ { "input": "{0: [1, 2], 1: [3], 2: [3], 3: []}, start: 0, end: 3", "output": "[[0, 1, 3], [0, 2, 3]]" }, { "input": "{0: [1], 1: [2], 2: [3], 3: []}, start: 0, end: 3", "output": "[[0, 1, 2, 3]]" } ] }