목록알고리즘/과제 (27)
게으른개발너D
https://leetcode.com/problems/join-two-arrays-by-id/description/ Join Two Arrays by ID - LeetCode Can you solve this real interview question? Join Two Arrays by ID - Given two arrays arr1 and arr2, return a new array joinedArray. All the objects in each of the two inputs arrays will contain an id field that has an integer value. joinedArray is an leetcode.com Given two arrays arr1 and arr2, retu..
https://leetcode.com/problems/flatten-deeply-nested-array/description/ Flatten Deeply Nested Array - LeetCode Can you solve this real interview question? Flatten Deeply Nested Array - Given a multi-dimensional array arr and a depth n, return a flattened version of that array. A multi-dimensional array is a recursive data structure that contains integers or leetcode.com Given a multi-dimensional ..
https://leetcode.com/problems/memoize/description/ Memoize - LeetCode Can you solve this real interview question? Memoize - Given a function fn, return a memoized version of that function. A memoized function is a function that will never be called twice with the same inputs. Instead it will return a cached value. You leetcode.com Given a function fn, return a memoized version of that function. ..
https://leetcode.com/problems/compact-object/description/ Compact Object - LeetCode Can you solve this real interview question? Compact Object - Given an object or array obj, return a compact object. A compact object is the same as the original object, except with keys containing falsy values removed. This operation applies to the objec leetcode.com Given an object or array obj, return a compact..
https://leetcode.com/problems/cache-with-time-limit/description/ Cache With Time Limit - LeetCode Can you solve this real interview question? Cache With Time Limit - Write a class that allows getting and setting key-value pairs, however a time until expiration is associated with each key. The class has three public methods: set(key, value, duration) leetcode.com Write a class that allows getting..
https://leetcode.com/problems/execute-asynchronous-functions-in-parallel/description/ Execute Asynchronous Functions in Parallel - LeetCode Can you solve this real interview question? Execute Asynchronous Functions in Parallel - Given an array of asynchronous functions functions, return a new promise promise. Each function in the array accepts no arguments and returns a promise. promise res leet..
https://leetcode.com/problems/event-emitter/description/ Event Emitter - LeetCode Can you solve this real interview question? Event Emitter - Design an EventEmitter class. This interface is similar (but with some differences) to the one found in Node.js or the Event Target interface of the DOM. The EventEmitter should allow for subscri leetcode.com Design an EventEmitter class. This interface is..
https://leetcode.com/problems/call-function-with-custom-context/description/ Call Function with Custom Context - LeetCode Can you solve this real interview question? Call Function with Custom Context - Enhance all functions to have the callPolyfill method. The method accepts an object obj as it's first parameter and any number of additional arguments. The obj becomes th leetcode.com Enhance all ..