SlowFast

Time Complexity

Worst Case:O(n²)

Average Case:O(n²)

Best Case:O(n)