rahul baid
BAN USER
Questions (3)
Comments (1)
Reputation 170
- 0of 0 votes
AnswersYou are give n images with width length dimensions w1*l1,w2*l2........wn*ln .Now you have write an algorithm to fit these n images on a big rectangle of dimension W*H.
- rahul baid in India
Constraint:
1)Image resolution should not be changed.you can scale the images keeping aspect ratio unchanged
2)You can perform cropping but as minimum as posisble| Report Duplicate | Flag | PURGE
Adobe Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
@sidhartha,thanks for quick reply
- rahul baid February 17, 2012Can you check you above code on input 2,1,4,100,-5
value of max difference,diff should be 99(100-1)
but your code after loop iteration will give 96.