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


Binary search Python 2.7

I'm getting WA on SPOJ. Here's the problem: Here's the code: (it includes optimization)

I need a test case that will help to find a mistake. I've tried several cases and can't find mistakes.

asked 22 Mar '13, 00:43

indra_uolles's gravatar image

accept rate: 0%

edited 22 Mar '13, 01:12

See input number 2 on your link it is giving RE (list index out of range) check it out.


answered 25 May '13, 17:15

kunal361's gravatar image

accept rate: 21%

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: 22 Mar '13, 00:43

question was seen: 2,338 times

last updated: 25 May '13, 17:15