Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 380 Bytes

File metadata and controls

22 lines (14 loc) · 380 Bytes

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