Combination of Elements with by Using Array

  • Thread starter Thread starter Sakura Data
  • Start date Start date
S

Sakura Data

Guest
Goal:
Make a combination of the element by using the input data. The goal is to achieve the output.

An example

Current situation (input):
jim west aaa 12345
Le tomo bbb
Sara brown

Requested Result(output):
jim west aaa 12345
Le tomo aaa 12345
Sara brown aaa 12345
jim west bbb
Le tomo bbb
Sara brown bbb

-------------------------------

Another example

Current situation (input):
jim west aaa 12345
Le tomo bbb 32154
Sara brown ccc 78946

Requested Result(output):
jim west aaa 12345
Le tomo aaa 12345
Sara brown aaa 12345
jim west bbb 32154
Le tomo bbb 32154
Sara brown bbb 32154
jim west ccc 78946
Le tomo ccc 78946
Sara brown ccc 78946

-------------------------------

Another example

Current situation (input):
jim west aaa 12345
Le tomo
Sara brown

Requested Result(output):
jim west aaa 12345
Le tomo aaa 12345
Sara brown aaa 12345





Problem:
*I don't know how to solve it. Do you have any advice about what path I should use?


Info:
*I was unable to use permutation in this context.


public class Program
{
static void Main(string[] args)
{

string[] column1 = { "jim west", "Le tomo", "Sara brown" };
string[] column2 = { "aaa", "bbb"};
string[] column3 = { "12345" };



}
}

Continue reading...
 
Back
Top