+ 1
How to improve programming and logical reasoning and thinking skills ?
Why is it so that when I have solved a particular program and search for solution on the web, the solution is pretty much short, as well as, fast and sometimes, difficult to understand whereas my solution is lengthy enough, making the time of execution of the program slow ?
3 Antworten
+ 3
The conditional statement
Programming is more about conditions and looping. To improve logical thinking, start to think conditionally such as Yes or No, True or False. Try to question yourself or solve a problem as a conditional statement such as if... then... it's very helpful to improve your conditional reasoning power.
2. Think like a machine
The machine didn't understand anything because it works on the instruction which we gave. To solve a problem, give instructions and try to follow the order. Here, instructions are nothing but logic. Machine-oriented thinking will help you to write logic in a program.
3. Solve logic puzzles
Try to solve riddles and puzzles from newspapers or in a modern mobile app. Don’t get disheartened if you can't solve them at first attempt or take a long time to solve them. Remember that you are in the process of learning and improving skills. Your brain will be trained to think differently with every puzzle that you try to solve.
+ 2
at your stage, it is not so important to make a short decision or not, it is important for you that the program works correctly. sometimes it happens to me that I solve the task in the most understandable way, but the program turns out to be long. then I look up at the code when it's fully written and see a shorter solution.then I rewrite the program with a new approach, shorter
+ 2
Okay.
Now, I understood.
Thank You all for your answers.