LeetCode Problem 2635 Apply Transform Over Each Element in Array — LeetCode: 30 Days of JavaScriptI’ve been going through the 30 Days of Javascript in LeetCode. Right now, I’m on 2635. Apply Transform Over Each Element in Array. Problem: Given an integer array arr and a mapping function fn, return a new array with a transformation applied to each...Apr 23, 2024 · 2 min readcodebyagatha.hashnode.dev
LeetCode Problem 2665 Counter II — LeetCode: 30 Days of JavaScriptSolving Leetcode 30 Days of JavaScript study plan problems Problem: 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...Apr 23, 2024 · 2 min readcodebyagatha.hashnode.dev