Follow me on Instagram - naresh_gupta_ [instagram.com/naresh_gupta_]
@Satya-g5tАй бұрын
nice solutions you are posting, will bookmark your channel. 😀
@abhishekkr8077 Жыл бұрын
1st solution me n-2 Q kiya sir?
@NareshGupta Жыл бұрын
brute force se start krna chaiye fir optimize karo agar possible ho to.
@gurudassulebhavikar2 жыл бұрын
The solution is fine. But you did not explain the formula ((ch[i] - 'a') + sum)%26 + 'a'. Why did you first minus the char[i] with 'a'? Also, why add it back at the end?