목록알고리즘/과제 (27)
게으른개발너D
https://leetcode.com/problems/nested-array-generator/description/ Nested Array Generator - LeetCode Can you solve this real interview question? Nested Array Generator - Given a multi-dimensional array of integers, return a generator object which yields integers in the same order as inorder traversal. A multi-dimensional array is a recursive data st leetcode.com Given a multi-dimensional array of..
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..
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 ..