Package com.treemap

# Class CombinationGenerator

java.lang.Object
com.treemap.CombinationGenerator

public class CombinationGenerator extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CombinationGenerator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<List<Integer>>`
  `combination(int r, int n)`
  `static <T> List<List<T>>`
  `generateCombinations(List<T> list, int r)`
  `static int[]`
  `generateNextCombination(int[] temp, int n, int r)`
  `static double`
  `nCr(int n, int r)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CombinationGenerator

    public CombinationGenerator()

- ## Method Details

  - ### generateCombinations

    public static <T> List<List<T>> generateCombinations(List<T> list, int r)

  - ### combination

    public static List<List<Integer>> combination(int r, int n)

  - ### nCr

    public static double nCr(int n, int r)

  - ### generateNextCombination

    public static int[] generateNextCombination(int[] temp, int n, int r)