$30
Question 1:
You are given an integer array
nums
. The unique elements of an array are the elements that
appear exactly once in the array.
Return the sum of all the unique elements of
nums
.
Question 2:
Given an integer array
nums
sorted in non-decreasing order, return an array of the squares of each
number sorted in non-decreasing order.
Example 1:
Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100]
Question 3:
Find first non repeated integer in an array.
Example: int[] arr = {2,3,4,2,2,3,5,7}
Output : 4
Question 4:
Given two stings ransomNote and magazine, return true if ransomNote can be constructed from magazine and false otherwise.
Each letter in magazine can only be used once in ransomNote.
Question 5:
Letter followed by Digit: Given a string str write a function which will check if the string no letter followed by another letter, and no digit followed by another digit.
For example: 1A3d4s5t
Result : True
Input: A2bb2d4
Result : False