Skip to content

Commit 4a44a0c

Browse files
committed
Add solution #2667
1 parent 6263625 commit 4a44a0c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@
391391
2649|[Nested Array Generator](./2649-nested-array-generator.js)|Medium|
392392
2650|[Design Cancellable Function](./2650-design-cancellable-function.js)|Hard|
393393
2665|[Counter II](./2665-counter-ii.js)|Easy|
394+
2667|[Create Hello World Function](./2667-create-hello-world-function.js)|Easy|
394395
2703|[Return Length of Arguments Passed](./2703-return-length-of-arguments-passed.js)|Easy|
395396
3110|[Score of a String](./3110-score-of-a-string.js)|Easy|
396397
3392|[Count Subarrays of Length Three With a Condition](./3392-count-subarrays-of-length-three-with-a-condition.js)|Easy|
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* 2667. Create Hello World Function
3+
* https://leetcode.com/problems/create-hello-world-function/
4+
* Difficulty: Easy
5+
*
6+
* Write a function createHelloWorld. It should return a new function that
7+
* always returns "Hello World".
8+
*/
9+
10+
/**
11+
* @return {Function}
12+
*/
13+
var createHelloWorld = function() {
14+
return () => 'Hello World';
15+
};

0 commit comments

Comments
 (0)