We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb7bec commit 7ab5066Copy full SHA for 7ab5066
README.md
@@ -10,6 +10,8 @@ leetcode 测试
10
11
##### 包含的内容如下
12
13
+https://leetcode.cn/problems/crawler-log-folder/
14
+
15
https://leetcode.cn/problems/unique-paths-ii
16
17
https://leetcode.cn/problems/rectangle-overlap/
crawler-log-folder/index.ts
@@ -0,0 +1,6 @@
1
+export default function minOperations(logs: string[]): number {
2
+ return (
3
+ Array.from(new URL(logs.join(""), "h://a.b").pathname.matchAll(/\//g))
4
+ .length - 1
5
+ );
6
+}
0 commit comments