We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hi manoj when i made this problem i keep in my mind that the value of "num" will not go beyond 127 and when i run it the test cases passed so i did not changed it to "while", but in extended ascii it is upto 255, and in question they are not giving some "chars" which are beyond 127, so you can use "while" to sort this problem.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Caesar Cipher
You are viewing a single comment's thread. Return to all comments →
Hi manoj when i made this problem i keep in my mind that the value of "num" will not go beyond 127 and when i run it the test cases passed so i did not changed it to "while", but in extended ascii it is upto 255, and in question they are not giving some "chars" which are beyond 127, so you can use "while" to sort this problem.