Junior Software Engineer Interview Questions

7,254 junior software engineer interview questions shared by candidates

You will be given a positive integer N, and two single-digit integers p and q, where p != q and both are greater than 1. You must output all of the integers in descending order from N to 1 inclusive, separated by a comma ','. However, any integer divisible by p or q should be replaced by the text OUT and any integer whose decimal representation contains digit p or q should be replaced by the text THINK. Integers for which both of the preceding statements are true should instead be replaced by the text OUTTHINK.
avatar

Junior Software Engineer

Interviewed at IBM

3.9
Dec 5, 2017

You will be given a positive integer N, and two single-digit integers p and q, where p != q and both are greater than 1. You must output all of the integers in descending order from N to 1 inclusive, separated by a comma ','. However, any integer divisible by p or q should be replaced by the text OUT and any integer whose decimal representation contains digit p or q should be replaced by the text THINK. Integers for which both of the preceding statements are true should instead be replaced by the text OUTTHINK.

IBM is implementing an online pharmacy application for a major drug store chain. As part of the application, customers can start to type in the name of a drug and the system will allow them to choose from among the list of drugs which begins with the letters that they have typed. For example, if they type the letters "ASP", the system could offer "ASPRIN" as a possible match, along with other drugs that begin with "ASP". If there's no match, the system will show <NONE>. Assumptions: The list may be very long, hundreds of thousands of drugs. The call will be made very often, so search speed is crucial. Assume that in the production version, whatever preprocessing you do on the list of drugs is only done once, and the search is the only part that is called repeatedly. Input: The entire list of drugs in alphabetical order, followed by a blank line, and then a partial sequence to search for. Output: The first 2 matching drugs, one per line, or <NONE> if there's no match.
avatar

Junior Software Engineer

Interviewed at IBM

3.9
Dec 5, 2017

IBM is implementing an online pharmacy application for a major drug store chain. As part of the application, customers can start to type in the name of a drug and the system will allow them to choose from among the list of drugs which begins with the letters that they have typed. For example, if they type the letters "ASP", the system could offer "ASPRIN" as a possible match, along with other drugs that begin with "ASP". If there's no match, the system will show <NONE>. Assumptions: The list may be very long, hundreds of thousands of drugs. The call will be made very often, so search speed is crucial. Assume that in the production version, whatever preprocessing you do on the list of drugs is only done once, and the search is the only part that is called repeatedly. Input: The entire list of drugs in alphabetical order, followed by a blank line, and then a partial sequence to search for. Output: The first 2 matching drugs, one per line, or <NONE> if there's no match.

- Resume questions and prior experience - Overview of the program (you're supposed to ask a lot of questions here) - What position are you looking for and why? - Rate Java skills from 1-10 (Just say a 8-9 even though it's a new grad position. They don't want to hear anything below an 8)
avatar

Junior Software Engineer

Interviewed at American Express

4.1
Mar 17, 2022

- Resume questions and prior experience - Overview of the program (you're supposed to ask a lot of questions here) - What position are you looking for and why? - Rate Java skills from 1-10 (Just say a 8-9 even though it's a new grad position. They don't want to hear anything below an 8)

Viewing 4341 - 4350 interview questions

Glassdoor has 7,254 interview questions and reports from Junior software engineer interviews. Prepare for your interview. Get hired. Love your job.