Guest User

Untitled

a guest
Nov 26th, 2016
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void sortujBinarnie(int A[], int B[], int n, int k){
  2.     int m;
  3.     int C[2];
  4.     C[0]; C[1]=0;
  5.     for(int i=0;i<n;i++) C[A[i]&m>0]++;
  6.     C[1]+=C[0];
  7.     for(int i=n-1;i>=0;i--){
  8.         B[C[A[i]&m>0]-1]=A[i];
  9.         C[A[i]&m>0]--;
  10.     }
  11. }
RAW Paste Data