re: Daily Coding Puzzles - Nov 4th - Nov 9th VIEW POST

TOP OF THREAD FULL DISCUSSION
re: F# let scramble str1 str2 = let letterLookup = str1 |> Seq.countBy id |> Map.ofSeq let requiredCounts = str2 |> Seq.countBy id ...
 

Nice! yeah -- I only sometimes think about the efficiencies of these. They're contrived and we're doing them for fun. Part of me cares, part of me doesn't haha

I agree. I would have posted a much more expressive version, but you beat me to it! I did find an alternative way of solving the problem that was a little more expressive and nearly the same perf. I updated my post to include it.

code of conduct - report abuse