sacboy
BAN USER
- 0of 0 votes
Answersa) There is a square of nxn size which is comprised of n-square 1x1 squares. Some of these 1x1 squares are colored. Find the biggest subsquare which is not colored.
- sacboy
b) Also asked to extend it to find the biggest area rectangle.
12| Report Duplicate | Flag | PURGE
Algorithm - 0of 0 votes
AnswersSuppose we can compare two arrays like:
- sacboy
{4,2,3} > {3,5,6}
{4,2,3} < {4,3,0}
In each move, you can only switch a number with one of its neighbor. Given an array and a number n, design an algorithm to make this array maximum using n moves. (needs clarification)| Report Duplicate | Flag | PURGE
Algorithm - 1of 1 vote
AnswersYou are given a set of boxes b1 to bn. Each box bj has an associated width wj ,
- sacboy
height hj and depth dj . Give an algorithm for creating the highest possible stack of boxes with the
constraint that if box bj is stacked on box bi, the 2D base of bi must be larger in both dimensions
than the base of bj . You can of course, rotate the boxes to decide which face is the base, but you
can use each box only once.
For example, given two boxes with h1 = 5;w1 = 5; d1 = 1 and h2 = 4;w2 = 5; h2 = 2, you should
orient box 1 so that it has a base of 5x5 and a height of 1 and stack box 2 on top of it oriented so
that it has a height of 5 for a total stack height of 6.| Report Duplicate | Flag | PURGE
Algorithm
RepDramitsharma0909, Personnel at Cognzant Technology Solutions
I am website designer and c++ programmer in India. Here I mention all website designing services and promoted services. So ...
RepDo you want to sell your home fast in New Jersey?Three Mountains Investment is a nationally recognized real estate ...
What this amazon quiz contains ?. Is it about debugging code or doing coding and how many questions ?. I will be getting hacker quiz so wanted to get idea
- sacboy January 26, 2016