12,898,174 members (57,688 online)

# Algorithms

 Re: Factorials Luc Pattyn24-Jun-08 15:02 Luc Pattyn 24-Jun-08 15:02
 Re: Factorials cp987624-Jun-08 20:09 cp9876 24-Jun-08 20:09
 Re: Factorials Luc Pattyn24-Jun-08 23:53 Luc Pattyn 24-Jun-08 23:53
 Re: Factorials cp987625-Jun-08 2:27 cp9876 25-Jun-08 2:27
 Re: Factorials Luc Pattyn25-Jun-08 2:34 Luc Pattyn 25-Jun-08 2:34
 Re: Factorials cp987625-Jun-08 2:40 cp9876 25-Jun-08 2:40
 Re: Factorials tim_one14-Jul-08 8:37 tim_one 14-Jul-08 8:37
 Re: Factorials Arash Partow25-Jun-08 2:14 Arash Partow 25-Jun-08 2:14
 I believe this to be an ACM question from either 96' or 97' ```bool nonzerodigit(const unsigned int& n, unsigned int& result) { if (n > 100000) return false; unsigned int result = 1; for (unsigned int i = 1; i <= n; ++i) { unsigned int f = i; while (0 == (f % 5)) { f /= 5; result /= 2; } result = (result % 100000) * f; } result %= 10; return true; }``` 100000 is an upper sanity bound and also a quantizer for the minimum required 6 "least significant" digits.
 Re: Factorials Ian Uy25-Jun-08 6:26 Ian Uy 25-Jun-08 6:26
 How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 8:35 Edmundisme 18-Jun-08 8:35
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 11:38 73Zeppelin 18-Jun-08 11:38
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 11:44 Matthew Butler 18-Jun-08 11:44
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... 73Zeppelin18-Jun-08 22:00 73Zeppelin 18-Jun-08 22:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 12:00 Edmundisme 18-Jun-08 12:00
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Matthew Butler18-Jun-08 11:41 Matthew Butler 18-Jun-08 11:41
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... Edmundisme18-Jun-08 12:01 Edmundisme 18-Jun-08 12:01
 Re: How to determine the next x,y coordinate for a tank in a 2-D game... CPallini18-Jun-08 21:19 CPallini 18-Jun-08 21:19
 Polyline offset algorithm beko16-Jun-08 21:59 beko 16-Jun-08 21:59
 Re: Polyline offset algorithm Alan Balkany17-Jun-08 4:07 Alan Balkany 17-Jun-08 4:07
 Re: Polyline offset algorithm beko17-Jun-08 4:43 beko 17-Jun-08 4:43
 Re: Polyline offset algorithm CPallini17-Jun-08 7:03 CPallini 17-Jun-08 7:03
 Re: Polyline offset algorithm beko17-Jun-08 8:26 beko 17-Jun-08 8:26
 Re: Polyline offset algorithm cp987617-Jun-08 12:10 cp9876 17-Jun-08 12:10
 Re: Polyline offset algorithm Arash Partow18-Jun-08 1:22 Arash Partow 18-Jun-08 1:22
 Re: Polyline offset algorithm beko18-Jun-08 19:55 beko 18-Jun-08 19:55
 Last Visit: 31-Dec-99 18:00     Last Update: 30-Apr-17 12:18 Refresh « Prev1...163164165166167168169170171172 Next »