Education + Jobs Hiring Website - 2025
0 like 0 dislike
1,467 views
in Online Assessments by Expert (32,020 points) | 1,467 views

2 Answers

0 like 0 dislike
import sys
def solution(A):
	result = set()
	for nums in A:
		nums = (2 - len(str(nums))) * "0" + str(nums)
			if nums in result:
				result.add (nums[::-1])
			else:
				result.add (nums)
	return len(result)
by Expert (32,020 points)
0 like 0 dislike
Given a list of numbers include the number in the list, and if that number is present in the list include the reversed number in the list. Return the length of the list after adding the elements to the list.
by Expert (32,020 points)