Click here to read the complete problem statement.
If you are wondering how to solve it, I have got a hint for you
My process:
Conditions:
- If there are two same story building, there must be a building bigger than it
- Building height, h < 10.
Conclusion:
- The maximum value of h is 9
- There can be at most a single 9 story building (Because if there are two, then a building taller than 9 story is needed)
- There can be at most two 8 story building (Because if there are three, then there will be two 9 story building)
- There can be at most four 7 story building (Same logic)
- There can be at most eight 6 story building (Same logic)
- There can be at most sixteen 5 story building (Same logic)
and so on…
I am leaving the rest of the problem to you guys.
what is the logic behind just four buildings for 7 story buildings and others, in my opinion, there shouldn’t be more than 2 buildings for each story building except for 9
if I write story numbers as a sequence it should be like this:
‘12345678987654321’
tho my answer isn’t correct…
if I am wrong in any statement it’ll be beneficial if u let me know!!
@zarinibnat99 Think the whole thing just like a sequence.
you can put a 7 in two sides of 9. then it will be - 1234567879787654321.
and this sequence isn’t incorrect. Right?
Then it’ll also be okay if you put more six(s) in the two sides of 9, in two sides of 8. Then it will look like - 1234567686769676867654321. This sequence is correct, too according to the question requirement. In this way, you can put more 5, more 4, more 3, more 2, more 1.
Try. I was thinking just like you when I looked at the problem. But when I started thinking deeply, I got the point.
It was mentioned in the qu that “two buildings located on the same side of the street have the same number of stories, then there must be one or more higher buildings between that two buildings”
acc to this statement, higher story buildings must be between these bolded numbers: 1234567686769676867654321; (which means there shouldn’t be 6 btwn 7 story buildings)
likewise, between 76967 and so on.
@zarinibnat99 sister, look, the question says that there will be at least one building taller than the two, Here, 8 is bigger than 7, so , 6 doesn’t matter anything here.
OOH Yeah…thankqq