shohanur rahmanshohan777.hashnode.dev·Nov 2, 2024Leetcode 233 (Number of Digit One) was fun.This one is a math problem. And I enjoyed every bit of cracking the equation. The problem was, “Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.” At first I thought of doing recursi...leetcode
Saurav Maheshwarixauravww.hashnode.dev·Sep 3, 2024Merging K - Sorted Linked ListsProblem Statement Given k sorted linked lists, each containing sorted nodes, the task is to merge these lists into a single sorted linked list. For instance, if you have the following lists: List 1: 1 → 4 → 5 List 2: 1 → 3 → 4 List 3: 2 → 6 The ...Data Structures and Algorithmsdata structures
Jay Choukseyjayjava.hashnode.dev·Jul 20, 2024First Missing PositiveIntroduction Today, I took on a challenging problem from LeetCode: First Missing Positive. This hard-level question tests your algorithmic skills, requiring an O(n) time complexity solution with O(1) auxiliary space. The goal is to find the smallest ...leetcodehard