← 返回 meta 的题目列表Check if Two Numbers are Digit Permutations of Each Other
类型:online_judge
meta
Determine if two given numbers can be permuted to become equal.
Input:
Two numbers, each ranging from 0 to 9999.
Output:
A boolean value indicating whether the two numbers can be permuted to become equal.
Example:
Input: 1234, 4321
Output: True
Input: 1234, 1235
Output: False
Example
Input
1234, 4321