Ask Mentors Anything

Get your questions/doubts directly answered by our mentors. Let's get started.

Mentee Question

Asked by manohar grandhi

How to prepare notes on DSA and what strategy to follow to solve DSA questions?

Mentors Answer

Answered By Mentor Priyansha Sharma

Hi Manohar,

Strategy to follow while solving DSA question:

  1. Start with the brute force solution. It shows you understand the problem. 
  2. Write all the steps you are going to follow in your approach.
  3. Start coding and Refer back to each step of your algorithm.
  4. Dry run your code line by line against test cases.
  5. Check the time and space complexity of the solution. 
  6. Try to optimize the algorithm either using extra space or using different approach.
  7. Try to solve easy question in 20 min, medium 30 min, hard in 40-50 min. its better to see the solution if u are not able to solve the question within this time frame.
  8. After solving question, Try to check out solution posted by other students because sometime we can learn good trick by seeing different solutions.
  9. If you are beginner then start solving easy question 1st once you gain confidence there, go to medium and then hard question.
  10. Practice 1-10 question/day and try to maintain consistency.
  11. Try to give free mock interview on interviewbit or you can reach out to me and schedule an mock interview to check if you are ready for real interview.


Hope my answer helps you. if you have any other doubt, You can reach out to me. 


Answered By Mentor Raghu Datta

Hey Manohar,


Absolutely, stepping into the world of DSA can feel like embarking on an exciting journey. Trust me, you've got what it takes to conquer it. Let's dive into how to approach notes and strategies for DSA questions in a friendly and uplifting way.


Think of your notes as your very own DSA adventure diary. Imagine explaining each concept to a friend – break it down into simple terms, jot down key ideas, and even add doodles if they help. The act of translating complex concepts into easy-to-understand notes will solidify your understanding even more.


Now, tackling DSA questions is like solving puzzles in a game. Imagine you're mapping out moves for a character. Divide the problem into smaller tasks, like uncovering different levels of the puzzle. Create a step-by-step guide (pseudocode) before you start coding – it's like charting out a treasure hunt. Try out your plan with simple examples, then begin building the solution step by step, just like constructing a game level.


As you build, think of debugging as a way to find hidden gems. If possible, add a little flair – optimize your solution for speed, like giving your character a power-up. Before wrapping up, review your solution, tidy things up, and celebrate even the tiniest wins. If things don't go perfectly, no worries! It's like respawning in a game – learn from the challenges, upgrade, and have another go.


Manohar, always remember that mastering DSA is like honing a skill. Every challenge is a chance to level up. Embrace the learning process, keep your spirits high, and dance through the journey of becoming a DSA whiz.


Feel free to reach out to me at https://app.preplaced.in/profile/raghu-datta



Top Performing Mentors This Week πŸ”₯

Loading...

400+

Book a FREE Trial Session with any mentor of your choice

Book a FREE Trial Session