jinu
BAN USER
Comments (6)
Reputation 40
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
3
of 3 vote
1.sort first array in ascending order
2.sort second array in descending order.
3.traverse the elements in both array.
4.If sum of two numbers is greater than given sum then move to next element at B
else
move to next element in A.
5.repeat till sum is equal to given sum.
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
can use hash table to store count and then print using for loop
- jinu October 22, 2012