You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#sorts the array, converts it into a set, calculates the sum,
# the + 1 is used so that the last is not left out, since in range(1,10), does only from 1-9, we need all 10 so adding the 1 to make it
#goes through all the elements from 1 - given n and checks if the current i is present in the set, if it is not, then its added to the result array ret