+ 1

How Solving problem in C ?

Hello everyone! I know the concepts of the C language, but when I am in front of a subject I do not know what notions to use to solve the problem of the subject. I would like to have some indicative of how to know if I need to use this or that concept to solve the problem. Thank you for tour help.

18th Jan 2019, 8:19 AM
Siyam
Siyam - avatar
6 Réponses
+ 3
Absolutely. Every detail you know will help you, but not necessarily right after you learned it first time, but after you got really used to it by using it. Example of my own: Recursion didn't make sense to me for a long time. So when I had to solve any problem, I wouldn't even think of recursion. Lately I practiced recursion a lot in really simple settings; and now, after having used it fifteen something times, suddenly it starts to occur to me: 'Hey, can't we solve this recursively?'
18th Jan 2019, 10:52 AM
HonFu
HonFu - avatar
+ 5
Read about control & data structures. You need to learn basic concepts of algorithm
18th Jan 2019, 8:23 AM
Da2
Da2 - avatar
+ 4
Best way is to split problems in pieces and solve individual pieces. While you're solving problems learn basic data structures and algorithms
18th Jan 2019, 8:24 AM
Elva
Elva - avatar
+ 4
HonFu, it would help if you have concepts of constructs, datastructs and Oop
18th Jan 2019, 10:02 AM
Da2
Da2 - avatar
+ 3
My experience: After you have used a tool several times, it will eventually occur to you when you need it. For example if you just learned about the while loop, it is all very new and strange, so even if it would help you, it wouldn't occur to you. But after you wrote twenty different loops in your practice codes, it becomes part of your subconscious 'arsenal'. So it's not necessarily about consciously figuring out which tool to use with a given problem, but about ingraining the tools by practicing them a lot in your codes, so that they will just come to you when needed.
18th Jan 2019, 10:00 AM
HonFu
HonFu - avatar
+ 2
thanks a lot. I know what to do for improve myself 😭
18th Jan 2019, 10:55 AM
Siyam
Siyam - avatar