Test

Prompt

Coding — Low Write a Python function that takes a list of integers and returns the second-largest distinct integer. Return None if fewer than two distinct integers exist. Do not sort the list. Provide the code, three test cases, and time and space complexity.

Drag to resize
Drag to resize
Drag to resize