Advertisement
a53

FMBSorted

a53
Oct 25th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. int FMBSorted(int a[2001][2001],int n)
  2. {
  3. int i=1,j=n;
  4. do
  5. {
  6. if(a[i][j]==1)
  7. --j;
  8. else
  9. ++i;
  10. } while(i!=n+1&&j!=0);
  11. return n-j;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement