Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 624 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 624 Bytes

anagrams

Ever wondered how many changes are required to match 2 halves of one string?

Notes

Good data

134157 (there's an even split of string)

Bad data

52825 (there is no 'middle' to split evently into 2 halves)

TODO

Need to improve logic to factor in duplicate values. E.g this array [3,4,5,3,5,4,3,5] needs 1 change however the current implementation is returning 0.