Skip to content

Latest commit

 

History

History
57 lines (26 loc) · 499 Bytes

File metadata and controls

57 lines (26 loc) · 499 Bytes

Description

Given a collection of distinct integers, return all possible permutations.

Example:

Input: [1,2,3]

Output:

[

  [1,2,3],

  [1,3,2],

  [2,1,3],

  [2,3,1],

  [3,1,2],

  [3,2,1]

]

Solutions

Python3

Java

...