Forum: Computer Science Nov 2nd, 2009 |
| Replies: 6 Views: 503 Yeah, thank you for your hint. I guess I could solve it now. Let me make it public. We could just using XOR with all this numbers, and after that, we could get the number that we want.
But just let... |
Forum: Computer Science Oct 30th, 2009 |
| Replies: 6 Views: 503 Let say we have N number and N is odd. Among the N numbers, two of them equal to each other except one. For example, let's say we have 7 numbers, which could be 5, 3, 4, 1, 3, 5, 1. Only 4 is... |
Forum: Computer Science Oct 30th, 2009 |
| Replies: 2 Views: 270 very impressive. Thank you. But now, I have some idea about this problem. I wanna use divide and conquer to solve this problems. First, the N is divided into [N/2] and [N/2] + 1 if N is odd, or [N/2]... |
Forum: Computer Science Oct 29th, 2009 |
| Replies: 2 Views: 270 I have a algorithm problem to ask:
There are N persons, and each of them knows one distinct gossip message. The two of them just make a phone call, so they could share messages they know. Then at... |
Forum: C Oct 29th, 2009 |
| Replies: 0 Views: 257 This code is just handling the SIGCHLD signal, but as you can see, the parent process should ignore this SIGCHLD signal according to the signal function. But in fact, the parent process will omit the... |
Forum: *nix Software Nov 20th, 2008 |
| Replies: 3 Views: 1,371 If you very care the security of your server, you could install some anti-virus software.
The linux core inludes firewall itself.So you don't need to install another firewall, and all you need to... |