Basic Programming Problems
Collapse Content
Show Content
Interviewers sometimes ask simpler programming questions to make sure you have basic coding skills and competency. Below are links to challenges from Programming Practice that you should be able to find optimal solutions for. (Some of the links below are to a final challenge within a series of challenges, but you can go through the challenges in order to practice a "multi-step style" interview question.)
General challenges
- BlackJack - Basic conditional statements
- BlackJack Hand - Conditions and Loops
- FizzBuzzer - Slight twist on a classic basic challenge
Intermediate:
- Bowling Scores - Build a basic program (See Part 1 and part 2)
- Prime Prime - Use loops or find the right data structure to solve it optimally
- Equal Lands - Solve this in linear time
Mathish challenges:
- Collatz Conjecture - Straightforward challenge to print some numbers
- Correct Change - (See also part 1) - No loops necessary for these challenges
- LCM - Find the Least Common Multiple
- 2D Distance - Basic distance challenge
- Manhattan Meeting - Can you find an algorithm or formula to get the solution in linear time?
Array Questions:
Here are 3 basic challenges that involve looping through an array and tracking variables:
String questions:
- Pig Latin - Convert a sentence into Pig Latin. (See also parts one, two and three)
- Reverse a String - Solve this basic challenge both with and without library methods.
- Palindrome - Easy after the previous challenge
- Reverse a Sentence - One String library method is important here.
Intermediate:
- Java Sandwich - Code carefully to get this right for every case
- Anagrams - (See also part 2) - This challenge can be solved in linear time if you know what counts
Challenge
Are you interested in programming Job Opportunities?
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.