@@ -85,6 +85,9 @@ public class MainExercises
|
|||||||
|
|
||||||
Hint: You can determine the size and order of the arrays by finding the pattern
|
Hint: You can determine the size and order of the arrays by finding the pattern
|
||||||
of partitions and their count. Trust me, this one's fun and easy :)
|
of partitions and their count. Trust me, this one's fun and easy :)
|
||||||
|
|
||||||
|
If you're familiar with Lists and ArrayLists, you can also edit the method's
|
||||||
|
body to use them instead of arrays.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public int[][] intPartitions(int n) {
|
public int[][] intPartitions(int n) {
|
||||||
|
|||||||
Reference in New Issue
Block a user