4 ms·
It is there to skip the print("lol") in the second version if the condition is true. Since the array is sorted in ascending order, it will be true for every val
by rep_lodsb 3y ago
It is there to skip the print("lol") in the second version if the condition is true. Since the array is sorted in ascending order, it will be true for every value, and that print is never be executed.