kotlin-coding-challenges

Digit frequency

Instructions

Given two integers implement a function which determines if they have the same frequency of digits.

Challenge Solution

Examples

equalDigitFrequency("123", "321") // true

equalDigitFrequency("4557", "745") // false

Hints

Hint 1 Use frequency map