2816. Double a Number Represented as a Linked List
You are given the
headof a non-empty linked list representing a non-negative integer without leading zeroes.Return the
headof the linked list after doubling it.
2816. Double a Number Represented as a Linked List
You are given the
headof a non-empty linked list representing a non-negative integer without leading zeroes.Return the
headof the linked list after doubling it.
2815. Max Pair Sum in an Array
You are given a 0-indexed integer array
nums. You have to find the maximum sum of a pair of numbers fromnumssuch that the maximum digit in both numbers are equal.Return the maximum sum or
-1if no such pair exists.