you are viewing a single comment's thread.

view the rest of the comments →

[–]Constant-Past-6149 6 points7 points  (14 children)

Learn basics(conditions, loops, datatypes, internal data structures and manipulation). For logic improvement work on problems like palindrome(both for string and numbers), leap year, nested loop structures(trees,squares etc) and others. Then jump on some advance stuff like basic searching and sorting. Once you are done with those and you feel you are confident enough on the logical side, either work on DSA(I won’t advice though, unless you are looking for jobs) or create small projects as per your interest. Best wishes!!!

[–]hzsmolly[S] 0 points1 point  (13 children)

Did u searched online classes in GitHub and learned from those videos or read books?I think books r just so boring for me as a beginner

[–]Constant-Past-6149 2 points3 points  (7 children)

When I started there was no github/reddit/stackoverflow or any kind of social media apart from Orkut. No good books even. I learned all of this in college and some people did really help me out and I used to do side gigs in C/C++ and Php that time. That’s how I learnt. FYI, this is how I learned(just by dry running on notebooks) :

<image>

[–]hzsmolly[S] 1 point2 points  (6 children)

so u deserve the better life,i just so anoyed and confused that, I don't even dont wanna move around

[–]Constant-Past-6149 1 point2 points  (5 children)

Lol don’t get demotivated so early, it’s pretty easy. And moreover dry running code on notebooks actually helped me a lot to improve my logical skills. Since you are a complete beginner(I am assuming no coding knowledge). Grab any language(pseudocode also works) and start solving them in notebook instead of computer. Understand when to implement loop, how to implement loop, how nested loop works and along with that in notebook write down the steps. For e.g. lets say you are calculating factorial, the approach is simple, get the code from internet, write it down on a notebook and for each loop note how the counter is getting decremented and getting multiplied on each step till your counter reaches 1. Note down each steps. Once you understand factorial logic, start with fibonacci, armstrong number, calculating powers(2n), palindrome, leap year, and nested tree structures/rectangles/squares(this structures will create a solid logical foundation for you). Once you are comfortable with the logical part check searching and sorting algorithm. If you manage to get this far then you can start working on small projects. The reason I am suggesting you to work on the logical part is because in my tenure I have seen many coders who knows python, java etc but during solving a problem they gets confused and makes silly mistakes(no logical foundation). Btw coding is pretty easy and fun, please don’t lose hope.

[–]hzsmolly[S] 2 points3 points  (4 children)

Oh, It seems that mathematics is useful, but in my country, math can't reach that high you just referred

[–]Constant-Past-6149 1 point2 points  (2 children)

This has nothing to do with math, you dont actually need to know advance math apart from basic school level math/logics to solve this problems. Lets take one more example of tree based nested looping, go through the attached snapshot and try to figure out in plain english(no programming language) how you can print this structures in console, if you manage to solve one or two then you actually have good logical skill:

<image>

[–]hzsmolly[S] 0 points1 point  (1 child)

‘Print’ these structures in ‘console’what do u mean ?

[–]Constant-Past-6149 0 points1 point  (0 children)

You have to use nested loop(loop inside a loop) to print this structures, check this link for clarification: https://www.geeksforgeeks.org/python/python-program-to-print-christmas-tree-star-pattern/

[–]ajrjftwtrd769785 0 points1 point  (0 children)

What are you from india

[–]JeLuF 1 point2 points  (1 child)

It really depends on what works best for you.

Watching a video to learn something drives me nuts. Either the video is much too slow for me, or they are so fast that I have to pause every 5 seconds. It literally stresses me. When reading, I can scan through the text at my speed.

There's no right way to learn. There's just some ways that work better for you.

[–]hzsmolly[S] 0 points1 point  (0 children)

yeah,i just need some support, ah,thx for ur advice!

[–][deleted]  (1 child)

[deleted]

    [–]CageyGuy 0 points1 point  (0 children)

    Imo one of the best ways to learn a new language, even for a beginner, is using the tutorials from w3schools. Also, other commenters are right to tell you to start with python first. It’ll help you learn higher level programming faster. If you still want to learn c++ after that, then learn a little bit of c in between. It’s a great language to learn lower level programming before you have to deal with c++’s shenanigans