Software Trainee Interview Questions

12,689 software trainee interview questions shared by candidates

Q1-Print the count of all the numbers from 1 to n which do not have 3 in them. Eg-Input 10 Output- 9(as only 3 from 1 to n has 3 in it ) similarly 45 has 31. Q2-Multiply each array element with it's previous and next element. Q3-Given a character and it's frequency in a string. Print the string after that character frequency. Eg- Input- answweefgrr e 1 Output- efgrr.
avatar

Software Engineer Trainee

Interviewed at Daffodil Software

3.8
Oct 6, 2018

Q1-Print the count of all the numbers from 1 to n which do not have 3 in them. Eg-Input 10 Output- 9(as only 3 from 1 to n has 3 in it ) similarly 45 has 31. Q2-Multiply each array element with it's previous and next element. Q3-Given a character and it's frequency in a string. Print the string after that character frequency. Eg- Input- answweefgrr e 1 Output- efgrr.

Problem Statement: Given a string sentence and a target word word, determine how many times you can construct the word using the characters available in the sentence. Each character in the sentence can be used only as many times as it appears. Example: Input: sentence = "hellohellohello" word = "hello" Output: 3 Explanation: In the sentence "hellohellohello", the word "hello" can be constructed 3 times because there are enough occurrences of each character in "hello" to form the word three times. Constraints: The sentence and word will contain only lowercase English letters
avatar

Trainee Software Engineer

Interviewed at Recruit CRM

3.9
Aug 29, 2024

Problem Statement: Given a string sentence and a target word word, determine how many times you can construct the word using the characters available in the sentence. Each character in the sentence can be used only as many times as it appears. Example: Input: sentence = "hellohellohello" word = "hello" Output: 3 Explanation: In the sentence "hellohellohello", the word "hello" can be constructed 3 times because there are enough occurrences of each character in "hello" to form the word three times. Constraints: The sentence and word will contain only lowercase English letters

Viewing 2011 - 2020 interview questions

Glassdoor has 12,689 interview questions and reports from Software trainee interviews. Prepare for your interview. Get hired. Love your job.