Problem Statement
Given a 3 or 4 digit number with distinct digits, return a sorted array of all the unique numbers that can be formed with those digits.
Example:Given:
123
Return:
[123, 132, 213, 231, 312, 321]
Note: This problem needs knowledge of topics you haven't covered yet. Reading List
Given a 3 or 4 digit number with distinct digits, return a sorted array of all the unique numbers that can be formed with those digits.
Example:123
[123, 132, 213, 231, 312, 321]
You are yet to work on: