| You are not logged in. Login Now | register | search | |||||||||
|
| |||
| Author | Message | ||
| 3 new of 45 responses total. | |||
|
yecril71pl |
How is it that nobody has come up with a solution that uses "come from"? | ||
|
nharmon |
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 |
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);
| ||
|
Response Not Possible: You are Not Logged In |
- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss