Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands on Coding Question Asked with Solution | Part: 3 - Caesar Cipher

  

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands on Coding Question Asked with Solution
Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution

Caesar Cipher Question with Solution:

Caesar Cipher In C++
// Solved By Pappu Kumar (Coder Guy)

#include <bits/stdc++.h>
using namespace std;
// Solved By Pappu Kumar (Coder Guy)

string helper(string s)
{
    string result = ""; // answer store string

    for(int i=0;i<s.length();i++) // loop through
 the input string

    {
        char ch = char((s[i] + 3 - 97)%26 + 97);

        result+=ch;

    }

    return result;

}
int main() {

    string s;

    cin>>s;

    cout<<helper(s);

    return 0;


}

// Solved By Pappu Kumar (Coder Guy)
Input: nrfzh
Output: quick


In Python

Coming Soon.....

Also Read,

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 1 - BitWise Operation

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 2 - Geometric Progression

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 3 - Caesar Cipher

Tech Mahindra 2021 Non-SDE (3-6 Dec) Hands-on Coding Question Asked with Solution | Part: 3 - Frequency Count

Also, apply for jobs,

Google (STEP) Internship 2021

Tech Mahindra Foundation Intern 20/2021

Cadence Off-Campus Drive 20/2021 

H-Town Technologies Off-Campus Drive 20/2021

JK Technosoft Off-Campus Drive 2021

Techjockey Off-Campus Drive 2019-2020

Swiggy Off-Campus Drive 2018-2021

Microsoft Research Fellows Program 2020-2021

TCS Off-Campus Drive 2021

Also, Read the Latest Interview Experience, 

Tips to Follow to Crack Tech Mahindra Exam 2021

CTS - Cognizant 96 Important Interview Questions 2021

TCS Ninja and Digital 2021 All Interview Questions

Hexaware technical interview 2021 

Stay tuned with www.freshersocjob.com to receive more such updates on recruitment. Join our Telegram Channel and Join our WhatsApp Group To get Instant updates for All Recruitment Internships and Off-Campus of 2021 Pass-Out Batch and Other Batch.


Comments