We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaa2023 commit 9e8957bCopy full SHA for 9e8957b
src/main/java/com/fishercoder/solutions/_535.java
@@ -88,7 +88,7 @@ public static class Solution4 {
88
* Use a random but fixed length encoding
89
* Analysis:
90
* 1. This is the most optimal solution so far.
91
- * 2. The number of URLs that can be encoded can be as big as Math.pow((10 + 26*2), FIXED_LENGTH)
+ * 2. The number of URLs that can be encoded can be as big as Math.pow((10 + 26*2), FIXED_LENGTH), in below code, FIXED_LENGTH = 7
92
* 3. The length of the shortened URL is fixed at a certain length, which could be a significant reduce for large URLs
93
* 4. The performance of this scheme is pretty good, due to much smaller probability of encountering collision
94
* 5. Predicting pattern/encoding isn't possible in this case since random numbers are used.
0 commit comments