목록전체 글 (146)
게으른개발너D
https://leetcode.com/problems/group-by/description/ Group By - LeetCode Can you solve this real interview question? Group By - Write code that enhances all arrays such that you can call the array.groupBy(fn) method on any array and it will return a grouped version of the array. A grouped array is an object where each key leetcode.com Write code that enhances all arrays such that you can call the..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bfXBTW/btsmrGepSmi/pqFR0QRcduXlnKNrlEFx6k/img.png)
https://leetcode.com/problems/debounce/description/ Debounce - LeetCode Can you solve this real interview question? Debounce - Given a function fn and a time in milliseconds t, return a debounced version of that function. A debounced function is a function whose execution is delayed by t milliseconds and whose execut leetcode.com Given a function fn and a time in milliseconds t, return a debounc..
https://leetcode.com/problems/calculator-with-method-chaining/description/ Calculator with Method Chaining - LeetCode Can you solve this real interview question? Calculator with Method Chaining - Design a Calculator class. The class should provide the mathematical operations of addition, subtraction, multiplication, division, and exponentiation. It should also allow con leetcode.com Design a Cal..
https://leetcode.com/problems/add-two-promises/description/ Add Two Promises - LeetCode Can you solve this real interview question? 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. E leetcode.com Given two promises promise1 and promise2, re..
https://leetcode.com/problems/execute-cancellable-function-with-delay/description/ Execute Cancellable Function With Delay - LeetCode Can you solve this real interview question? Execute Cancellable Function With Delay - Given a function fn, an array or arguments args, and a timeout t in milliseconds, return a cancel function cancelFn. After a delay of t, fn should be called with ar leetcode.com ..
https://leetcode.com/problems/to-be-or-not-to-be/description/ To Be Or Not To Be - LeetCode Can you solve this real interview question? 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. * toBe(val) accepts another value and leetcode.com Write a function expect that helps devel..
https://leetcode.com/problems/array-wrapper/description/ Array Wrapper - LeetCode Can you solve this real interview question? Array Wrapper - Create a class ArrayWrapper that accepts an array of integers in it's constructor. This class should have two features: * When two instances of this class are added together with the + operato leetcode.com Create a class ArrayWrapper that accepts an array ..
https://leetcode.com/problems/allow-one-function-call/description/ Allow One Function Call - LeetCode Can you solve this real interview question? 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. * The first time the returned function is calle leetcode.com Given a function fn, return a..
https://leetcode.com/problems/counter-ii/description/ Counter II - LeetCode Can you solve this real interview question? Counter II - Write a function createCounter. It should accept an initial integer init. It should return an object with three functions. The three functions are: * increment() increases the current value by 1 leetcode.com Write a function createCounter. It should accept an initi..
https://leetcode.com/problems/generate-fibonacci-sequence/ Generate Fibonacci Sequence - LeetCode Can you solve this real interview question? Generate Fibonacci Sequence - Write a generator function that returns a generator object which yields the fibonacci sequence. The fibonacci sequence is defined by the relation Xn = Xn-1 + Xn-2. The first few leetcode.com Write a generator function that ret..