2442. Count Number of Distinct Integers After Reverse Operations
Medium
You are given an array nums
consisting of positive integers.
You have to take each integer in the array, reverse its digits, and add it to the end of the array. You should apply this operation to the original integers in nums
.
Return the number of distinct integers in the final array.
Example 1:
Example 2:
Constraints:
1 <= nums.length <= 105
1 <= nums[i] <= 106
解題
Previous2441. Largest Positive Integer That Exists With Its NegativeNext2452. Words Within Two Edits of Dictionary
Last updated