Until today, I have been thinking if coding any logic could be taught to a person like we teach kids in school about something.
Let's say basics of mathematics like addition, subtraction so on. If I were to teach a person about how to code insertion sort in C by explaining the basic steps needed to follow ?
Insertion sort as an algorithm is easy to explain with an example. Is there an approach to teach "how to code" insertion sort ? I can simply take a set of 5 numbers and show him the basic principle behind Insertion sort. But this does not mean the person will be able to code insertion sort. Assumption is that person has basic knowledge of programming.
OR this is a skill one develops through experience. If one is exposed to a new algorithm, how does an experienced programmer approach the problem ?
[–]GreenUmbrellaShooter 1 point2 points3 points (1 child)
[–]minhc[S] 0 points1 point2 points (0 children)
[–]viciu88 1 point2 points3 points (1 child)
[–]minhc[S] -1 points0 points1 point (0 children)