You are viewing a single comment's thread. Return to all comments →
Same here. 2 Hashmaps so no .contains() or anything. In fact not function calls aside from append() is used. Still no go. No one on leaderboard got full point in Swift
I solved it, with extensive changes to the boilerplate code. Wrote a blog post about it here. But for some reason the leaderboard won't update my score; I completed the problem in Python 3 first because I got frustrated.
Nice! Using your boilerplate code works! Thanks!
Can you reupload your boilerplate code change as it's no longer available.
blog links to a 404
I also independently came up with the dual Dictionary hashmap approach and am timeout failing on cases 9 - 11.
I even added optimizations such as pre-allocating dictionary size to maximum potential sizes, and automatically rejecting out of bounds frequency checks.