A hint for those pl,,getting BAQUZ,,, consider case when u get a%26==0,,instead o


#1

a hint for those pl,getting BAQUZ, consider case when u get a%26==0,instead of use 0,use it as 26,and decrease the num by 26,like a=a-26;,hope understands. :slight_smile:


#2

Can you please clarify? Your explanation doesn’t make sense to me.


#3

eg: 52 = 26(2)+0 ideally the answer should be B0
since 0 is not valid we are shifting 26 from left hand side which is equivalent to 26(1) +26 => AZ
if you don’t subtract 26 answer will be BZ which corresponds to 78


#4

eg: 52 = 26(2)+0 ideally the answer should be B0
since 0 is not valid we are shifting 26 from left hand side which is equivalent to 26(1) +26 => AZ
if you don’t subtract 26 answer will be BZ which corresponds to (26^1)*2+(26^0)*0 =52 <<<----(U Explain wrong)


#5

Thanks mate I understand and its work😀