Chewbacca & Number : One test case is failing

Hi @Prateek-Narang-10209 bhaiya and @deepakaggarwal bhaiya i am trying to solve this question and for me one of the test case is failing . Could you please suggest me in such scenarios how i can check for the edge cases .

https://ide.codingblocks.com/#/s/13015

https://online.codingblocks.com/player/2872/content/782

And as well as for the Problem - Facto Sum for given input output should be 150 or my understanding is wrong .
https://online.codingblocks.com/player/2872/content/786
3
3 4 5
3! = 6
4! = 24
5! = 120
so ans = 6+4+120 = 150

if my understanding is wrong please correct me .

Hi,
I am one of the moderators.

  1. In your solution when you tried to convert the most significant digit then the conversion to char must be done using the correct ascii value i.e., you are not creating the correct ascii value for that character.
    Try finding the result for input as ‘667’ by your code.
  2. In your second question the result of the problem is sum of factorial of all no.s mod 107
    150%107 =43 should be the answer

Hi Neelam ,

Thanks for the input . Yes i missed applying same logic that i was trying for bits other msb .

Thanks a lot .

Good job Neelam :slight_smile: