LeetCode 254: Factor Combinations
Problem Restatement We are given a positive integer n . We need to return all possible ways to write n as a product of factors. Each factor must be between 2 and n - 1 . For example: 8 = 2 * 2 * 2 8 = 2 * 4 So for n = 8 , valid answers are: [[2, 2, 2], [2, 4]] We may return the combinations in...