Message Boards Message Boards


Can't work with interim answer of variable length

Posted 8 years ago
1 Reply
0 Total Likes

Hi all! There is a interim answer of variable length in my program:

{{0},{0},{2,3,10,11},{0}} {{1,2},{1,2,3,4},{0},{1,18}}

in internal figure brackets - coefficients of linear equations, solving which i find a desired answer. Problem - different amount of coefficients (place of brackets is important, inside brackets any number can be a coefficient of linear equation on this place). Never met such kind of problem before, need an idea - where to find, how sort it out. Sort by hands - not work, strings of this type more then 10 000, and i'm lazy - look for idea of common method...

It seemes that command like Tuples can be helpful...

Lists of varaible length are common when programming. What does this list represent? What would you like to do with it?

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract