Instantly share code, notes, and snippets.

View Sort.java
package com.test.app;
import java.util.Arrays;
public class Sort {
public static void main(String[] args) {
int[] array = {10,8,6,4,2,9,7,5,3,1};
View mergesort.c
#include<stdio.h>
#include<stdlib.h>
void mergearray(int a[], int temp[], int l, int l_max, int r_max);
void mergesort(int a[], int temp[], int left, int right);
int main(){
int count = 10;
int a[10] = {10, 8, 3, 5, 7, 1, 4, 2, 9, 6}; //bypass user-input