0
Solve the question in java
5 ответов
+ 2
Brian thanks
+ 2
Your task is simple just read try to figure out the problem first line consists T number of test cases define one variable T and decrease the value of T for each execution. Then your s Variable contains string u need to find even and odd place characters.
For then u need one more variable sum1 which will do summation of even chars u need to convert chars with ASCII value simply do type casting it will convert into ASCII value and do sum same do for odd places
For even odd places u can use loop to length of your string
And increase loop value with 2 each time
+ 2
The beginning you can find here:
https://code.sololearn.com/c88up45tDDKh/?ref=app
+ 1
The proper place to advertise coding challenges is here:
https://www.sololearn.com/Discuss/1270852/?ref=app
+ 1
JaScript Thank you so much..its working