Skip to content

New test #17

Description

@hyfi06

Los test se pueden pasar usando dos niveles de iteración, ya que los test actuales son resultados sólo tienen 2 números diferentes.

Sugiero añadir el siguiente test:

expect(combinationSum(combinationSum([2, 3, 5, 7], 17))).toEqual([
  [2, 2, 2, 2, 2, 2, 2, 3],
  [2, 2, 2, 2, 2, 2, 5],
  [2, 2, 2, 2, 2, 7],
  [2, 2, 2, 2, 3, 3, 3],
  [2, 2, 2, 3, 3, 5],
  [2, 2, 3, 3, 7],
  [2, 2, 3, 5, 5],
  [2, 3, 3, 3, 3, 3],
  [2, 3, 5, 7],
  [2, 5, 5, 5],
  [3, 3, 3, 3, 5],
  [3, 7, 7],
  [5, 5, 7]
]);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions