Skip to content

Commit

Permalink
rm bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Dec 29, 2023
1 parent 22000c6 commit 47e5b95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/common/merge_sort.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ fn merge_sort<T, +Copy<T>, +Drop<T>, +PartialOrd<T>>(arr: Array<T>) -> Array<T>
}

// Create left and right arrays
let middle = len / 2;
let (left_arr, right_arr) = arr.split(middle);
let (left_arr, right_arr) = arr.split(len / 2);

// Recursively sort the left and right arrays
let sorted_left = merge_sort(left_arr);
Expand Down

0 comments on commit 47e5b95

Please sign in to comment.