Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void merge (int *left,int *right,int *a,int nl,int nr){
- int il=0,ir=0,i=0;
- while(il+ir < nl+nr){
- if(il==nl){
- a[i++]=right [ir++];
- }
- continue;
- }
- if (il >= ir) return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement