Merge Sort Bug Tracker

Bugs: 42

Bug #1: Infinite Loop

The algorithm gets stuck in an infinite loop, causing the program to freeze.

Solution: Use a while loop instead of a for loop.

Bug #2: Index Out of Bounds

The program tries to access an array index that is out of bounds, causing an error.

Solution: Check the array length before accessing the index.

Bug #3: Wrong Merge Order

The merge function is sorting the array in the wrong order, causing incorrect results.

Solution: Swap the comparison operator from > to <.

More bugs...