Python - Extract list with difference in extreme values greater than K
Given a list of lists. The task is to filter all rows whose difference in min and max values is greater than K. Examples: Input : test_list = [[13, 5, 1], [9, 1, 2], [3, 4, 2], [1, 10, 2]], K = 5 Output : [[9, 1, 2], [1, 10, 2], [13, 5, 1]] Explanation : 8, 9, 12 are differences, greater than K. Inp