Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

EDITORIAL BYTES6 - BRAINWAVE

$
0
0

Problem Link: http://www.codechef.com/problems/BYTES6

Difficulty: Easy-Medium

Strategy: Adhoc Problem, Number Systems

Explanation: The solution to the problem is adding numbers in base 26. Add the alphabets like sum=num1[i]-'0'+num2[i]-'0'+carry. Then carry for next iteration is sum/26 and sum=sum%26. If a carry is generated at end of some iteration, print carry in base 26 format.


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>