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


wrong answer bishops questn link-

i have tried a no of test cases i couldnt find a single one giving wrong answer. for n=1 i have handled the case. and for other values of n iam using 2*n-2

asked 20 Jul '14, 09:37

akki16's gravatar image

accept rate: 0%

edited 20 Jul '14, 09:50

For the test case , n==5 , your code was printing 08 while the answer should be 8 . Here is your corrected code .

If you find my answer useful please upvote and accept it as right answer .

Happy Coding !!!


answered 20 Jul '14, 11:28

the65bit's gravatar image

accept rate: 13%

thanks a ton :) ac :)

(24 Jul '14, 09:53) akki163★

Welcome :)

(24 Jul '14, 11:25) the65bit4★
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 20 Jul '14, 09:37

question was seen: 950 times

last updated: 24 Jul '14, 11:25