You are not logged in. Please login at www.codechef.com to post your questions!

×

Getting WA in KRYP6

Hi,

I don't know where i am getting wrong with my code can anybody can figure it out please.
I am not getting why to use binary search in this question.

Link to the question.

Click here for my code

Thank's a lot.

asked 30 May '18, 21:09

ninjacoder_'s gravatar image

2★ninjacoder_
52
accept rate: 0%

edited 30 May '18, 22:40


I think you have not understood the question properly. Try this test case :

5
5 4 1 2 3

Here your code fails .

link

answered 30 May '18, 22:43

raj_13's gravatar image

4★raj_13
512
accept rate: 28%

thank's for that

(30 May '18, 23:43) ninjacoder_2★

can u please give the link to the question :)

link

answered 30 May '18, 21:18

rajput1999's gravatar image

4★rajput1999
3256
accept rate: 0%

now i have provided you question link also.

(30 May '18, 21:27) ninjacoder_2★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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:

×1,070
×1,038
×278
×141
×14

question asked: 30 May '18, 21:09

question was seen: 122 times

last updated: 30 May '18, 23:43