Published onMay 7, 2024Double a Number Represented as a Linked List Leetcode Solutionlinked-listmathstackleetcodeYou are given the head of a non-empty linked list representing a non-negative integer without leading zeroes. Return the head of the linked list after doubling it.
Published onApril 12, 2024Trapping Rain Waterarraytwo-pointersdynamic-programmingstackmonotonic-stackleetcodeGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.