How to change my way of thinking?

I am currently on the Data Structures and Algorithms part of the javascript tutorial. So the thing is that instead of trying to figure out the solution by myself by giving it time and working my way through , I directly head to the Get the Hint section and see the answer.
I know it’s wrong and I want to change it. Can someone give me some suggestions how to improve myself?
Any help appreciated. :slight_smile:

1 Like

Hi @ameenarab5 !

Not everyone is great at solving algorithms in the beginning.

But to answer you question, a different approach could be asking for help on the forum and spending extra on the problem.

There is no time limit for these problems.
You should spend as much time as necessary to understand the problem.

I would suggest trying to solve the problem away from code first.
What is the challenge asking you to do?
Try and solve it like a human not a computer.

For example, how would a human reverse a word.
Then write down your thought process.
Then slowly translate that into code.

There is always more than one way to solve these problems.
But if you don’t understand how to break it down then it will be a nightmare to code out the answer.

If you still haven’t figured out the problem, you could ask the forum for help.

That would be my suggestion.

5 Likes

Thanks for replying . I found some shortcomings of mine through this post of yours which I will try to improve.
I appreciate your help.

1 Like

The algorithms can be very difficult and you should always do your best to come up with your own solution whenever possible. However , you’re not always going to come up with a solution that works and for sake of time, there’s no shame looking at the hint. This is a common occurrence in the working environment as sometimes you won’t have the solution and have to consult with what’s already out there.

My suggestion is that you should try to tweak the solution by understanding the parts that confused you the most. Then try breaking it by changing or adding different lines of execution to make it do things. The more you fiddle with code, the higher the chance you’ll walk away with a more concrete understanding on how the approach that problem next time.

2 Likes

Not everyone is great at solving algorithms in the beginning.

1 Like

Not everyone is great at solving algorithms in the beginning. The algorithms can be very difficult and you should always do your best to come up with your own solution whenever possible. I suggest that first, you should solve the problems away from code.

Here are a few practical ways to improve your mindset:

  • Make a Change in Yourself
  • Change your language… Speak.
  • Decide on the attitude you’ll need and behave accordingly.
  • Learn and put what you’ve learned into practice.
  • Assemble a group of people who share your ideal mentality.
  • Create new patterns to help you change your attitude.
  • Experiment with stepping outside of your comfort zone.
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.