Skip to content

Commit 8033ef8

Browse files
committed
feat(leetcode): add 2667 easy
1 parent e65fffd commit 8033ef8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

leetcode-easy/2620-counter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function createCounter(n: number): () => number {
1111
* counter() // 12
1212
*/
1313

14-
// 2023.05.07 Done.
14+
// 2023/05/07 done.
1515
// Runtime 66 ms
1616
// Beats 29.11%
1717
// Memory 43.2 MB
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
function createHelloWorld() {
2+
return function(...args): string {
3+
return 'Hello World'
4+
}
5+
}
6+
7+
/**
8+
* const f = createHelloWorld();
9+
* f(); // "Hello World"
10+
*
11+
*/
12+
13+
// 2023/05/07 done
14+
// Runtime 66 ms Beats 25%
15+
// Memory 42.7 MB Beats 66.88%

0 commit comments

Comments
 (0)