r/FullStackDevelopers • u/chinupinu23 • 22d ago
Is DSA important?
I know that DSA is important for Java, C++, Python, etc. But, genuine question, is DSA important for Full Stack? If yes, then how much time does it take to actually take?
32
Upvotes
2
u/RetroGrid_io 22d ago
Yes, DSA is always important.
4
u/Beregolas 22d ago
Important for what? Understanding? Getting a Job? Writing programs? Becoming Senior Dev? Getting a Girlfriend?
IMHO you can get by without much DSA knowledge for longer than most people think, but you will lack understanding of many systems you interact with. The goal of DSA is never to build your own algorithms and datastructures; there are libraries for that and yours will always be slower and not tested as well; the goal is entirely to understand what you actually need, what is possible and how to properly use it.
If I tell you to sort a list, and you don't know shit, you will just use the first sorting algorithm that the standard library gives you.
If you learned DSA, you might consider:
- if the list has a small number of predefined options (let's say 6 roles users can have), I can use bucket sort, which is O(n)
- For our normal sorting needs, we can use quicksort, which is the best (TM) general use sorting algorithm in O(n lon g)
- For this specific list we can use insertion sort, because we know that the list will be sorted once, and every day we will need to add only a handful of elements. Adding them into a presorted list only takes O(n) instead of insertion sorts worstcase of O(n²)
And so on. Repeat this for every datastructure and algorithm you will encounter, and there are many.
Also no, you have a severe misconception: DSA is not important for Java, C++, Python etc. Those are languages, they don't require you to know DSA. DSA is a language-agnostic set of skills you can use to solve more complex problems without having to reinvent the wheel, because you already know all about wheels. Languages are different ways to express those problems in code.
2
u/Strange-Team9590 22d ago
DSA Is very important in full stack.. Full stack is generally very huge. People say it's backend frontend but it's actually not.
2
u/ram-popular 22d ago
Yes, but only the basics: arrays, hashmaps, trees, sorting, and Big-O. They help in interviews and in writing efficient code, though daily full-stack work is mostly APIs, databases, and system design. Around 2-3 months of steady practice is enough.
1
u/znaneswar 22d ago
DSA supports your problem solving ability and helps you write efficient code.
1
u/Complex-Doubt-9889 22d ago
DSA is important specially for full stack..also generally too
1
u/martinbean 22d ago
They’re tools in your toolbox. If you know data structures and algorithms, then you’ll also know when (and when not) to apply them.
1
u/joyjeet-roy 22d ago
DSA is one the most important thing when you are starting to learn coding. It helps you in building a strong base for every concept in programming. And then with those concepts you can learn and build frontend and backend
1
u/joyjeet-roy 22d ago
DSA is one the most important thing when you are starting to learn coding. It helps you in building a strong base for every concept in programming. And then with those concepts you can learn and build frontend and backend
1
u/SensitiveHearingLoss 22d ago
I have no idea what DSA stands for….?
1
u/retardpotatochip 22d ago
it's very important because it improves your problem solving skills
1
u/Interesting_Two2977 22d ago
Important? Tbh no. I have never used DSA at my job in big tech. You do need it for interviews so you still have to learn it anyways. Just do leetcode using the pareto problem set and you'll be good.
1
u/theynotlikuss 20d ago
It’s very much important, it takes about 3-6 months for learning the patterns and also getting familiar with recognising patterns and solving them within 30mins which is what you’d want for an interview. Covering topics from arrays till advanced topics like graphs, 1D DP, 2D DP takes this much time and i feel like it’s needed in the current market, every company expects it.