Adobe Interview Question for MTSs


Country: India




Comment hidden because of low score. Click to expand.
0
of 0 vote

The question is not clear.
Just cut one character of a different size (any character of the same size should not be cut again, as it will increase the rough sheet size).
set<pair<size>> can be used for checking if the size exists.

- ACP Pradyuman June 21, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Hi,
actually you should try to maximize number of characters cut for each type.
also try to think like. Can there be any solution in which, there should be no left sheet.
hope u got my point now.

- amitesh.hbti June 21, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

its knapsack problem

- jpdas June 23, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Right. Its variant of Knapsack problem. We can start cutting the alphabets starting from A having maximum size( at the same time ensuring enough paper is left for other alphabets) and then B with somewhat less size and so on.. At last we will be left with minimal rough space on sheet.

- Kartik July 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

We have to consider one thing to transform the problem to Knapsack : the surface area a letter will take with a given font.

Start with minimum surface area letters towards larger ones.
Hence maximizing the number of letters cut out and minimizing wastage of paper i.e the rough sheet size.

- shashi kant July 26, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More