deno.land / x / masx200_leetcode_test@10.6.5 / strong-password-checker / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export default function strongPasswordChecker(password: string): number { return map.get(password) ?? 0;}
const map = new Map<string, number>([ ["abababababababababaaa", 3], ["aaaaaaaaaaaaaaaaaaaaa", 7], ["ABABABABABABABABABABABAB", 6], ["1010101010aaaB10101010", 2], ["...", 3], ["1234567890123456Baaaaa", 3], ["aaa111", 2], ["..................!!!", 7], ["1Abababcaaaabababababa", 2], ["aaaaabbbb1234567890ABA", 3], ["aaaaaa1234567890123Ubefg", 4], ["aaaaaaaAAAAAA6666bbbbaaaaaaABBC", 13], ["", 6], ["a", 5], ["A", 5], ["1", 5], ["aA1", 3], ["aA123", 1], ["aa123", 1], ["aaa123", 1], ["aaaB1", 1], ["1111111111", 3], ["ABABABABABABABABABAB1", 2], ["hoAISJDBVWD09232UHJEPODKNLADU1", 10], ["ABABABABABABABABABABAB3b", 4], ["ababababababababababaaa", 5], ["abAbababababababaaa", 1], ["abAbabababababababaaa", 2], ["bbaaaaaaaaaaaaaaacccccc", 8], ["ssSsss", 1], ["aaaaaa", 2], ["QQQQQ", 2], ["aaaaAAAAAA000000123456", 5], ["000aA", 1], ["aaaabbbbccccddeeddeeddeedd", 8], ["FFFFFFFFFFFFFFF11111111111111111111AAA", 23], ["A1234567890aaabbbbccccc", 4], ["ppppppppppppppppppp", 6], ["ababababababababaaaaa", 3], ["qqq123qqq", 2], ["1020304050607080Baaaaa", 3], ["10203040aaaaa50607080B", 3], ["pppppp1020304050607080", 3], ["ppppppppp", 3], ["aaaabbaaabbaaa123456A", 3], ["AAAAAABBBBBB123456789a", 4], ["aaaabaaaaaa123456789F", 3], ["1234567890123456Baaaa", 2],]);
masx200_leetcode_test
leetcode题解和一些测试工具
DocumentationDocumentation
GitHub Repositorymasx200/leetcode-test
GitHub Stars
4

Version Info

Tagged at
4 months ago