본문으로 건너뛰기
owni14
글
분류
KO
EN
글
›
Algorithm
›
LeetCode
전체
140
프로그래머스
122
LeetCode
18
2024
2024.05.01
[LeetCode] Debounce
Given a function fn and a time in milliseconds t, return a debounced version of that function.
Algorithm
›
LeetCode
2024.04.30
[LeetCode] Promise Time Limit
Given an asynchronous function fn and a time t in milliseconds, return a new time limited version of the input function. fn takes arguments provided to the time limited function.
Algorithm
›
LeetCode
2024.04.29
[LeetCode](Linked List) Convert Binary Number in a Linked List to Integer
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.
Algorithm
›
LeetCode
2024.04.28
[LeetCode] Interval Cancellation
Given a function fn, an array of arguments args, and an interval time t, return a cancel function cancelFn.
Algorithm
›
LeetCode
2024.04.27
[LeetCode] Timeout Cancellation
Given a function fn, an array of arguments args, and a timeout t in milliseconds, return a cancel function cancelFn.
Algorithm
›
LeetCode
2024.04.26
[LeetCode] Add Two Promises
Given two promises promise1 and promise2, return a new promise. promise1 and promise2 will both resolve with a number. The returned promise should resolve with the sum of the two numbers.
Algorithm
›
LeetCode
2024.04.26
[LeetCode] Sleep
Given a positive integer millis, write an asynchronous function that sleeps for millis milliseconds. It can resolve any value.
Algorithm
›
LeetCode
2024.04.25
[LeetCode] Memoize
Given a function fn, return a memoized version of that function.
Algorithm
›
LeetCode
2024.04.24
[LeetCode] Allow One Function Call
Given a function fn, return a new function that is identical to the original function except that it ensures fn is called at most once.
Algorithm
›
LeetCode
2024.04.23
[LeetCode] Function Composition
Given an array of functions [f1, f2, f3, ..., fn], return a new function fn that is the function composition of the array of functions.
Algorithm
›
LeetCode
2024.04.22
[LeetCode] Return Length of Arguments Passed
Write a function argumentsLength that returns the count of arguments passed to it.
Algorithm
›
LeetCode
2024.04.20
[LeetCode] Array Reduce Transformation
Given an integer array nums, a reducer function fn, and an initial value init, return the final result obtained by executing the fn function on each element of the array, sequentially, passi
Algorithm
›
LeetCode
2024.04.17
[LeetCode] Filter Elements from Array
Given an integer array arr and a filtering function fn, return a filtered array filteredArr.
Algorithm
›
LeetCode
2024.04.15
[LeetCode] Apply Transform Over Each Element in Array
Given an integer array arr and a mapping function fn, return a new array with a transformation applied to each element.
Algorithm
›
LeetCode
2024.04.14
[LeetCode] Counter II
Write a function createCounter. It should accept an initial integer init. It should return an object with three functions.
Algorithm
›
LeetCode
2024.04.13
[LeetCode] To Be Or Not To Be
Write a function expect that helps developers test their code. It should take in any value val and return an object with the following two functions.
Algorithm
›
LeetCode
2024.04.12
[LeetCode] Counter
Given an integer n, return a counter function. This counter function initially returns n and then returns 1 more than the previous value every subsequent time it is called (n, n + 1, n + 2,
Algorithm
›
LeetCode
2024.04.11
[LeetCode] Create Hello World Function
Write a function createHelloWorld. It should return a new function that always returns "Hello World".
Algorithm
›
LeetCode