There are NN people standing on a line, exactly one of them (we don’t know who) is infected with a virus. The virus spreads from one person to another if their distance is at most 2. If the infected person is chosen optimally, find the minimum (bes
-
Is it your homework?
-
No.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
-
First, the assignment is incomplete as you tried to post the entire thing in the subject line instead of the body of the post. Second, no, we're not here to do your work for you. Asking for such is insulting. If you've got questions about your your own code, fine, we can help with that, but you have to ask the questions with proper detail to answer them.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak