why did you do lo = mid but in the hi you did mid -1 , i mean you would normally do a lo = mid +1 and with the hi you do hi=mid-1 , my solution also required me to do only lo = mid to work when i add 1 it did not , do you know why ?
Here's the solution to the problem one hint at a time. High quality problems are rare, and it would be a waste to read the solution without trying to solve the problem for a few hours.
Read one hint at a time. As soon as you get to a hin...
Read more… (373 words)
Read more (373 words)
Topics which will be discussed in IOITC
I got selection to IOITC this year. I would like to know more about the camp and topics which will be discussed there. Will they teach the whole syllabus of IOI in the camp within a span 10 days? What all should I learn before attending the camp in order to understand everything discussed there in a more better way?
Recently I came across this problem from IARCS Problem Archive , and after some research , the answer seems to be tarjan's algorithm to find the points which when deleted , breaks the graph in two or more smaller graphs .