Course Programming Logic
Implementation
Some programming challenges describe exactly what you need to do, we categorize these types of challenges as implementation challenges.
The idea behind this challenge is not to test your programming logic, the idea is to see if you are able to follow instructions and have the technical ability to perform the implementation.
Another important factor in this type of exercise is time. You may read the exercise and think "this is easy, anyone can implement this", but can you implement it in 20 minutes?
During the next exercises in this section, we will test your ability in this type of exercise. The tips presented in the previous section are still valid here: divide your task into multiple smaller tasks, and upon completion of one of the subtasks move on to the next.
Let's see how this tip is applied to the Replacement in Array exercise:

Figure 1
Note that this exercise can be divided into the following tasks:
- Make a program to read 10 integer values and store them in an array;
- Print the value of the smallest element read;
- Print a line containing all the indices where the smallest value appears in the array;
- Replace all occurrences of the smallest value in the array with -1;
- Print the resulting array.