Hello everyone,
I am trying to write a function that does the following:
When given int n and int k, it will:
E.G.
Given n=2 and k=1, the function will create a matrix for the following cases:
00
01
00
10
01
00
10
00
I do not expect someone to write this code for me. I would appreciate some direction though on how to go about it as I can only come up with a way to create some combinations but not all.
Thank you in advance,
Java Beginner.