Getting wrong answer in Shil and Palindrome Research problem

sir i have applied he same method as taught in the hint video
still i am getting wrong answer…the given test cases are running correctly.
here is the link to my solution:

plz help!!

Hey Raghuraj, Your code is almost correct but there is small mistake. See for second type of query l and r can be greater than 9 so they cann’t be stored in char. You are trying to store r in char as in line no. 92. So for x==1, take third input as char and for x==2, take it as int. Your code will work fine.

1 Like

thankyu sirr!! it worked…