You are not logged in. Login Now
 0-24   18-42   43-45        
 
Author Message
3 new of 45 responses total.
yecril71pl
response 43 of 45: Mark Unseen   Dec 3 13:23 UTC 2007

How is it that nobody has come up with a solution that uses "come from"?
nharmon
response 44 of 45: Mark Unseen   Dec 3 13:51 UTC 2007

I've never liked "come from" because it can really confuse you when
you're debugging something. Like, you'll be wondering why a certain line
was never executed only to find out later that it was because the line
before it was associated with a "come from" much later on in the program.
mkay
response 45 of 45: Mark Unseen   Apr 23 10:55 UTC 2013

Here is my C solution, an example for good readability :D :

int i = 0, j = 0;
while ((j = (j + 1) * !matrix[i][j]) < N && (i += !!matrix[i][j]) < N)
        ;
if (i < N)
        printf("First all-zero row is %d\n", i);


 0-24   18-42   43-45        
Response Not Possible: You are Not Logged In
 

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss