Challenge: sum of squares. Let's break 299
|
01-21-2018, 10:44 PM
(This post was last modified: 01-21-2018 11:32 PM by Gilles59.)
Post: #21
|
|||
|
|||
RE: Challenge: sum of squares. Let's break 299
NewRpl (recursive (and naive) approach) :
Code: Bk299 : Example : 15 Search { 9 7 2 14 11 5 4 12 13 3 6 10 15 1 8 } Simulator : 0,012sec Real Calc : (I 've a problem with the USB connexion... will try tomorrow 16 -> { 16 9 7 2 14 11 5 4 12 13 3 6 10 15 1 8 } 25 -> { 18 7 9 16 20 5 4 21 15 10 6 19 17 8 1 3 22 14 11 25 24 12 13 23 2 } Simulator : 0.282 s Real calc : ? Could be easily improved by changing the square root with a table of of all the square numbers and a POS command... But i ve to go at bed now ;D And for a 299 search we need another way... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)