Skip to content

Commit 89e7087

Browse files
authored
Merge pull request #293 from sir-gon/develop
[Hacker Rank] Interview Preparation Kit: Dictionaries and Hashmaps: S…
2 parents 4908c04 + 7f1cbe7 commit 89e7087

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams-solution-notes.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ The second part of this problem can be solved with the binomial coefficient form
2222

2323
But the entire cost of this formula falls on the "factorial" function.
2424

25-
In javascript, the factorial quickly reaches results that return large numbers,
26-
in scientific notation, losing precision.
27-
This loss of precision can result in an erroneous result
28-
in the final calculation of permutations.
25+
The factorial quickly reaches results that return large numbers,
26+
overflowing the length of primitive number types.
2927

30-
To avoid this problem, it is necessary to introduce large number handling using BigInt.
28+
To avoid this problem in Java, it is necessary to introduce large number handling
29+
using java.math.BigInteger

0 commit comments

Comments
 (0)