0
I get confused while writing the code. How to come out of this situation?
I know syntax of c++ , data structure and oop concept. Even I know the basic programs but I'm not able to build logic while solving the problems on hackerrack and other coding websites. How to tackle this situation.
4 Respostas
+ 1
I would actually recommend creating a flowchart or something, of each step in the code, so that you know what to do first and what to do after that.
For example, if you're writing code for a basic calculator, the first step would be getting input from the user and then adding or subtracting or whatever.
You can then write code while referring to the flowchart.
+ 1
payal Pawale i will suggest you don't go for hackarrank first you need to solve easy level questions becz in hackarrank medium level questions take 2-3 hr sometimes 4-5 hr becz their they giving lots of constraints and you have to follow all input's formats output formats u can not use extra line u have to choose exact data types but yeah in these questions u will get logics and it will help you to crack interview questions if u solving cp then u can solve interview questions easily . Before solving Question u need to learn basics if u solving Question on c language then u have to study pointers and dynamic memory allocation well . In cpp vector STL is also important .
Am not a expert ......As a beginner level i will suggest you codechef easy level practice questions u will get all Question topics wise then move for medium its interface is better then hackarrank.
You can also start in leetcode this is also good plateform it will be beneficial in companies interview. You u can select anyone its your choice.
0
You need to practice by making codes. Learning theories and concepts can only take you so far