×

# ONE KING DIMENSION

 0 How many bombs are required to destroy [7,8] and [7,8] i.e two same kingdoms asked 08 Jan '15, 08:53 2★ambika93 81●2●8 accept rate: 0%

 3 As you can see in the sample input, putting a bomb on x=2 destroys two kingdoms. In the case you mentioned, only one bomb is required. answered 08 Jan '15, 09:32 5★mogers 649●5●16 accept rate: 25% by x=2 you meant x=7 or x=8 right? (08 Jan '15, 13:11) I was talking about the sample input, but now I see that the my last sentence was unclear. I edited it. (08 Jan '15, 17:50) mogers5★ @mogers, i'm getting wrong answer from last two days , any possible test case,i'm unable to trace it. (08 Jan '15, 22:46) ambika932★
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×249

question asked: 08 Jan '15, 08:53

question was seen: 1,712 times

last updated: 08 Jan '15, 22:46