if i took the s of search space as zero then what extra corner cases we have to handle, because it is giving me wrong answer.
Book allocation concept
Even if the the search space begin from 0, it must give the correct answer. There must be some mistake in your implementation.
You can refer this