HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
|
08-31-2017, 09:32 PM
(This post was last modified: 08-31-2017 09:37 PM by pier4r.)
Post: #29
|
|||
|
|||
RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
So finally I was able to implement an idea similar to what I wanted to do.
I am happy because (a) I implemented my idea and (b) I heavily used community libraries that are awesome. The drawback is that the idea is very inefficient. It is also true that I wouldn't be able to get to the same level of some solutions already posted. Those are relatively refined compared to my skills. In particular with DOPERM I did not identify a way to create "ordered permutations" through which I could halt the execution earlier. Well does not matter, the first objective is to get the answer correct, if possible with a nice way. Then optimizations may be applied. Ah, 50th number asked (179), 190 seconds. Also I am not sure it can process some large number, like 8000. Code:
Wikis are great, Contribute :) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 12 Guest(s)