Open In App

TechMonastic Solutions Interview Experience

Last Updated : 07 Dec, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

Coding Round:

  1. Print the Nth number of the series: 0,0,550,275,1100,550,1650,825,2200,1100,2750,1375,3300,1650,3850,1925,4400,2200,…. Input: N = 8  Output: 825 Input: N = 11  Output: 2750  
  2. Take a string as an input. Then find frequency of a particular character. Secondly, convert first characters of every word to corresponding uppercase letter. Finally, add a random special character at the end, for every input after that string.    Enter a string: I Love competitive Coding.  Input: o  Output:  Frequency of o = 3  Final string = I Love Competitive Coding $  Input: e  Output:  Frequency of e = 3  Final string = I Love Competitive Coding %
  3. Program to replace certain characters in a string and then add a specific number on that string.  Logic for added number:  a =1, b=2, …., k=11…., y=25, z=26  So, hi == 89 because h: 8, i :9   Example:  Input: hi Soham   string to be replaced: hi  string to be replaced with: hey (h=8, e=5, y=25)  output: hey Soham 8525 

Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads