General information
Category:
Coding, syntax & commands
Hi Bruce --
Yes, I like tables, too, to separate data from logic. And, a table approach would be perfectly appropriate in this situation. I suspect Marvin's data is in that form. He could either access the table directly with some application modification, or select into an array and use existing code.
>a) hit the size limit
You know, I hadn't thought of it, but a table-driven approach could be used to generate prime numbers, indefinitely ... <g>
Jay
>Hey, good work Jay! This is what I was doing, but your code is already refined better than mine.
>
>The only thing I might question is using an array - you might a) hit the size limit and b) want the results in a permanent table for one reason or another. I almost always choose tables for these situations, for such reasons, plus I like having all the table command available, generally they're more flexible. But that depend on needs, of course, and perhaps either one will do fine.
>
>Otherwise, very good work, and it's up to Marvin if there needs to be a STOP IF SOLUTION FOUND, or whether he wants to gather all possible solutions.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only