Compare algorithm performance and visualize time complexity patterns
1. Write your algorithms in the code editors above. Each must export a function named 'algorithm'.
2. The function should accept an array as input and return a result.
3. Specify input sizes to test (e.g., 10,50,100,500,1000).
4. Click 'Run Benchmark' to measure performance across different input sizes.
5. View the results in the chart to compare time complexity patterns.