We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sherlock and Anagrams
Sherlock and Anagrams
Sort by
recency
|
1697 Discussions
|
Please Login in order to post a comment
Here's the approch that I implement to solve this problem with Kotlin:
I wanted to use the NCR formula to count permutations, which uses factorials.
100! is a very big number. (9e157)
Luckily c# has the arbitrary System.Numerics.BigInteger
python (NOTE replace '@' with ':' - HackerRank didn't allow to upload this comment when having ':' in the text).