โ๏ธ Your Code
Write a function that takes an array of numbers as input and
returns a new array. You can use console.log for debugging.
Tip: The function must be named solve and accept
(input, console) as parameters.
๐งพ Output
๐ Comparison
Select a reference algorithm and click "Compare with reference" to see if your output matches.
๐๏ธ Custom Visualization
You can visualize your own algorithm by using the viz object passed to your solve function.
Example: viz.addFrame({ array: [...copy], comparing: [i, j], description: "Comparing i and j" });