목록알고리즘/과제 (27)
게으른개발너D
https://leetcode.com/problems/sleep/ Sleep - LeetCode Can you solve this real interview question? Sleep - Given a positive integer millis, write an asynchronous function that sleeps for millis milliseconds. It can resolve any value. Example 1: Input: millis = 100 Output: 100 Explanation: It should retur leetcode.com Given a positive integer millis, write an asynchronous function that sleeps for ..
https://leetcode.com/problems/counter/ Counter - LeetCode Can you solve this real interview question? 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, etc). leetcode.com Given an integer n, return a counter function. This counter function initiall..
https://leetcode.com/problems/array-prototype-last/ Array Prototype Last - LeetCode Can you solve this real interview question? Array Prototype Last - Write code that enhances all arrays such that you can call the array.last() method on any array and it will return the last element. If there are no elements in the array, it should retur leetcode.com Write code that enhances all arrays such that ..