subject

Find The Sum - Uncommon Alphabets - Uppercase Given two char arrays input1[] and input2[ ] which contains only upper case alphabets,

Step 1: Extract the alphabets which are present only in any one of the array.

(Uncommon alphabets)

Step 2: Get the ascii values of all the extracted alphabets.

Step 3: Calculate the sum of those ascii values, lets us call it as sum1 and calculate

single digit sum for sum1

ile keep adding the digits of sum1 until you arrive at a single digit.

Step 4: Return the single digit as output.

Note :

1. Array size ranges from 1 to 15.

2. All the array elements are upper case alphabets.

Example 1:

input1: ('A', 'B', 'C'}

input2: ('B', 'C')

output: 65 => 6 + 5 = 11

==> 1 + 1 = 2​

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:40
Hello my name is mihai and i need your : )i have to do a python project in computer science and i’m really busy with my mocks this period of time besides this i’m not good at coding so could someone pls pls pls sort me out ? i actually beg ; ))
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
You know the right answer?
Find The Sum - Uncommon Alphabets - Uppercase Given two char arrays input1[] and input2[ ] which co...
Questions
question
Mathematics, 04.09.2020 06:01
question
Mathematics, 04.09.2020 06:01
question
History, 04.09.2020 06:01
Questions on the website: 13722363