Skip to content

Commit

Permalink
feat(leetcode): add 2667 easy
Browse files Browse the repository at this point in the history
  • Loading branch information
benben6515 committed May 7, 2023
1 parent e65fffd commit 8033ef8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion leetcode-easy/2620-counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function createCounter(n: number): () => number {
* counter() // 12
*/

// 2023.05.07 Done.
// 2023/05/07 done.
// Runtime 66 ms
// Beats 29.11%
// Memory 43.2 MB
Expand Down
15 changes: 15 additions & 0 deletions leetcode-easy/2667-creat-hello-world-function.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
function createHelloWorld() {
return function(...args): string {
return 'Hello World'
}
}

/**
* const f = createHelloWorld();
* f(); // "Hello World"
*
*/

// 2023/05/07 done
// Runtime 66 ms Beats 25%
// Memory 42.7 MB Beats 66.88%

0 comments on commit 8033ef8

Please sign in to comment.