g2601_2700.s2667_create_hello_world_function.solution.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java21 Show documentation
Show all versions of leetcode-in-java21 Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
// #Easy #2023_09_10_Time_45_ms_(94.20%)_Space_43.6_MB_(9.97%)
const createHelloWorld = () => () => "Hello World";
/*
* const f = createHelloWorld();
* f(); // "Hello World"
*/
export { createHelloWorld }