Only 2 questions where asked.
we had to write complete algorithm for them.
1) int a[]= {1,1,1,2,2,3,3,3,3,4,5};
o/p shud be 1,3,2,2,3,4,4,1,5,1
i.e 1 followed by how many times 1 is repeated.
2) a ={1,1,1,2,2,3,3,3,4,4,5};
b={1,2,2,3,6};
o/p c = {6,5,4,3,2,1};
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.