top of page

Dealing with DSA

Public·51 members

Going throught the thinking process!

As we were discussing a few good questions during a class, I figured out one thing. No matter how good you know the language, the major part is how to crack the logic. I often get close to the logic (or sometimes completely off), but hardly get it right without hints. And they are often the simplest approaches or the shortest answers. And I go like, So it was that simple!? At the end of the day, this is the most frustrating problem! Not able to crack a logic the right way, sometimes not even the brute force approach.

So reaching out to all the professionals here, How do you crack the logic? What goes on your mind while reading a problem? How to make the code even more optimized?

49 Views
Ishika Prasad
Your post made waves — high engagement, real value.

Creator Of The Week

🔥LeetCode Daily – Cracked a Hard One!🧠

Problem: 3405. Count Arrays with K Matching Adjacent Elements📚 Topics: Combinatorics, DP, Modulo Math

💡 Key Insight:

→ Answer = m × C(n−1, k) × (m−1)^(n−1−k) % MOD

Where:

m is the choice for the first element

C(n - 1, k) is the number of ways to choose where equal pairs occur


87 Views
Ishika Prasad
Your post made waves — high engagement, real value.

Creator Of The Week

Your DSA Hour👇


When Do You Usually Practice DSA?

  • Early morning 🌅

  • Late night 🌙

  • In between other tasks

  • Only on weekends 😅

💬 Drop your secret productivity hack in the replies too!

67 Views

The most important data structures for technical interviews include arrays, linked lists, stacks, queues, trees, graphs, hash tables, and tries. Mastering these is crucial as they form the foundation of many algorithms and are frequently used in coding challenges and interview questions.

61 Views
Ishika Prasad
Your post made waves — high engagement, real value.

Creator Of The Week

🧠 Dealing with DSA

While learning DSA, I’ve realized that how  you approach problems matters even more than just solving a lot of them. These are a few mindset shifts I’ve picked up — mostly from mistakes I kept repeating 😅

Here’s what I’ve learned not to do:

  1. Rushing to code before understanding the problem - Now, I slow down. First read? Just to get the idea. Second read? To catch the hidden edge cases and constraints.

  2. Skipping examples- Visualizing the example inputs (like 1→2→4 etc.) gives surprising clarity. It helps me see what’s really happening.

  3. Avoiding brute force out of fear- I’ve started asking, “What’s the simplest, even dumbest, way to solve this?” It often unlocks the pattern I need later.

  4. Trying to hold the whole problem in my head- I now break it into tiny, testable steps. Print/debug early. You don’t need to solve everything in one go.

68 Views

DSA in Python Resource & A common mistake..


Hi!


Thought I would share a resource I've been using to learn DSA, in python.


It's on youtube, so you can use it for free.



A common mistake what everyone does when getting into DSA , they directly dive into LeetCode without learning the prerequisites and sit with questions for hours together, failing to understand it.


When we were in school, we were all taught in a pattern, for example you were taught the A,B,C's , then words, and later on sentences.


43 Views
Unknown member
Jun 11, 2025

genuinely so valuable, if only someone gave me this advice when i was starting with DSA too! But given how the last time i solved leetcode was years ago, i am pretty sure i will have to restart entire DSA🥶

Ishika Prasad
Your post made waves — high engagement, real value.

Creator Of The Week

📊 “How Do You See Time Complexity?”

How do you personally understand and visualize time complexities like O(n), O(n²), or O(log n) when solving problems? Any analogies or examples that really clicked for you?

56 Views
Unknown member
Jun 11, 2025

Dry running and looking at the program from the loops point of view helps too.

In most cases( not all), the number of nested for loops can tell you how the complexity is going to be, if it's a single for loop it will be O(n), a single nested for loop, O(n²) and so on.


Also, what you want your program to do?

This question helps too, say you wanted it to search for an element in an array, that would mean that it would have to look at each element once, just checking it with the required element, so you know clearly that you want your program to go through each element once, thus 1 loop, thus worst case complexity would be O(n) where n is basically number of elements in the array



Quick question!

What helped you actually improve in DSA?

  • Consistent problem solving

  • Group solving/ Peer Discussions

  • Watching videos

  • Cheatsheets or handwritten notes


Or maybe something entirely different?

65 Views
Unknown member
Jun 11, 2025

Consistency is key, and handwritten notes help too, trust me it'll happen to you, you'll write a solution and I week later you won't remember what you did, your notes will help when that happens.

Taufiq Mohammad
Your post made waves — high engagement, real value.

Creator Of The Week

DSA, love it or hate it.

It’s something you’ve atleast heard if you’re into technology. DSA this, DSA that, many people fear this, and many strive. But what is DSA? For those who uninitiated, it stands for Data Structures and Algorithms. Divided into two parts DS (Data Structures) which deal with data organisation (Arrays, Strings…) and Algorithms (step by step formulas to curate a solution).


All this information is fine, but what can you do about it? How do I learn it, and how do I master it. It’s not easy, but it’s not impossible.


Let’s elaborate on step 1:

The first step would be to concentrate on building a strong foundation. These include having a strong grasp over a programming language (C++ is the fastest and most common, with Python in the roster, but Java which is the most asked in interviews) through actually learning and building hands on projects (small as a simple hello…


67 Views
Unknown member
Jun 10, 2025

could you tell us the roadmap you followed to complete Data Structures in 15 days? I think that would greatly help others doing it currently, + an approach to Algorithms as well

    Members

    bottom of page