AKayan koleyinjavascript-higher-order-function-hof.hashnode.dev·Dec 18, 2025 · 2 min readUnderstanding asyncHandler in Express.js (with Higher Order Functions)❓ The Problem with Async Route Handlers Express catch synchronous error automatically, but it doesn’t catch error thrown inside async functions. router.post("/login", async (req, res) => { const user = await User.findOne({ email: req.body.email }...00
AKayan koleyinjavascript-higher-order-function-hof.hashnode.dev·Dec 18, 2025 · 2 min readJavaScript Higher Order function (HOF)What is Higher Order Function ? A Higher Order Function is a function that does at least one of the following Takes another function as an argument Return another function as it’s result Importance of Higher Order Function ? Write clean and read...00
AKayan koleyindailyleetcode.hashnode.dev·Jun 29, 2025 · 3 min read1498. Number of Subsequences That Satisfy the Given Sum ConditionFirst understand the the question.. Return non-empty subsequences Sum of the min and max element on this less or equal to target return module 10^9 + 7 Brute Force approach (Generating all subsequences) A straightforward idea is to generate all pos...00
AKayan koleyin01tc.hashnode.dev·May 16, 2025 · 4 min readAnalyzing Time Complexity of algorithmsWhat is Time Complexity 🤷♂️ Time complexity is the way to describe how long our code might take to run as the amount of input increase. It doesn't measure actual time - it just provide the rough idea of how the performance growth. Best Case → Ω (O...00