How to build logic? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
23rd May 2024, 9:02 AM
Sri Sai Revanya Nimmakayala
Sri Sai Revanya Nimmakayala - avatar
7 Answers
+ 9
Revanya , to get familiar with coding in terms of building the logic, structure and coding, it is recommended to pick a tutorial and start working on it. it is also important to practice what we have learned. if you get stuck somewhere, repeat the last lessons of the tutorial. keep on learning and practicing frequently. the process of learning in general takes some time and effort, so please be patient. if you get stuck on a specific issue, post a question with all related details that we required to know.
23rd May 2024, 10:54 AM
Lothar
Lothar - avatar
+ 6
Maybe you should first analyze other peoples code. There is a search function in the code section. find some codes that treat eg faculty (which is a bit hard for beginner, if recursion is used). Try to understand it and try to code the same prog by heart. Understanding follows doing.
25th May 2024, 7:17 AM
Oma Falk
Oma Falk - avatar
+ 5
Become familiar with data structures, algorithms, and design patterns. Understand how the hardware works at a fundamental level. The major blocker at your level isn't a lack of logic but a lack of exposure to patterns you can identify and implement. I.e. You won't know you need an observable and subscriber in a project until you know what they are; it won't be obvious when to use a breadth first search if you don't know the algorithm.
23rd May 2024, 2:19 PM
Sam
+ 4
Revanya just think about the logic behind the program which solve factorials, think how to make that code what type of loop,var, function you will need to make such program, you have a great thinking capability so now just focus on skills
23rd May 2024, 11:02 AM
Alhaaz
Alhaaz - avatar
+ 3
Practice as much as you can. Try pattern printing programs specially
23rd May 2024, 4:25 PM
Ayush Singh
Ayush Singh - avatar
+ 2
what do you mean by "How to build logic"? check out this thread for better understanding of sl O&A Discussions. https://www.sololearn.com/Discuss/3021159/?ref=app
23rd May 2024, 10:44 AM
Alhaaz
Alhaaz - avatar
+ 2
Actually I unable to solve factorial on my own.. So how could I develop my thinking capability
23rd May 2024, 11:00 AM
Sri Sai Revanya Nimmakayala
Sri Sai Revanya Nimmakayala - avatar