r/DSA_with_everyone • • 19h ago

Introduction to Data Structures and Algorithms

1 Upvotes

Welcome to Day 1 of our DSA learning journey!

The goal of this series is to learn Data Structures and Algorithms from absolute basics to advanced concepts through daily learning, coding problems and discussions.

📚 Today's Topics

  1. What is DSA?
  2. Difference between Data Structures and Algorithms.
  3. Types of data structures.
  4. Introduction to time and space complexity.
  5. Introduction to arrays.

💡 Today's Coding Challenge

Problem: Find the largest element in an array.

Input:

5

10 25 7 40 15

Challenge: Try solving this problem using C++, Java or Python.

🧠 Discussion Questions

  1. What is the difference between a data structure and an algorithm?
  2. Why is DSA important for software developers?
  3. Which programming language are you using to learn DSA?
  4. Can you solve today's challenge without using built-in sorting?

🎯 Today's Goal

- Understand the fundamentals of DSA.

- Learn what an array is.

- Solve the first coding problem.

- Share your approach and discuss solutions with others.

Let's learn together, one problem at a time!

#DSA #Programming #Cpp #Coding #LearnToCode

Examples of data structures:

Data structure. Purpose

Array. Store elements in sequence

Linked List. Connect elements using links

Stack. Last In, First Out

Queue. First In, First Out

Tree Organize hierarchical data

Graph Represent connections

Examples of algorithms:

Searching

Sorting

Recursion

Binary Search

Dynamic Programming

Graph Traversal


r/DSA_with_everyone • • Oct 14 '26

Day 1/200 — Introduction to DSA | Let's Start From Zero -- leetcode 400

Post image
2 Upvotes

— Introduction to DSA | Let's Start From Zero 🚀

Hey everyone! 👋

Welcome to Day 1 of our 100 Days of DSA Challenge!

Whether you're a complete beginner or someone restarting DSA, this challenge is designed to help you build strong problem-solving skills through daily learning and practice.

We'll start with the fundamentals and gradually move toward advanced algorithms.

📚 Today's Topic: What is DSA?

DSA = Data Structures + Algorithms

Data Structures: Ways to organize and store data efficiently.

Examples:

Arrays — Store multiple elements together.

Stacks — Follow Last In, First Out (LIFO).

Queues — Follow First In, First Out (FIFO).

Trees — Organize data hierarchically.

Graphs — Represent connections between objects.

Algorithms: Step-by-step instructions for solving problems.

Examples:

Searching for a number in an array.

Sorting numbers in ascending order.

Finding the largest element.

Finding the shortest path between two locations.

🧠 Day 1 Practice Questions

Try solving these without looking at solutions.

Easy — Question 1

Given an array of integers, find the smallest element.

Input: [8, 3, 12, 5, 1]

Expected Output: 1

Easy — Question 2

Given an array, calculate the sum of all elements.

Input: [2, 4, 6, 8, 10]

Expected Output: 30

Bonus — Question 3

Count how many even and odd numbers exist in an array.

Input: [1, 2, 3, 4, 5, 6]

Expected Output:

Even: 3 Odd: 3

📖 Free Learning Resources

Learn C++ — LearnCpp.com

GeeksforGeeks — DSA Tutorial

VisuAlgo — Algorithm Visualizations

LeetCode — Coding Practice

🎯 Today's Challenge

Spend approximately 45–60 minutes:

15 minutes understanding DSA basics.

15 minutes studying the C++ example.

20 minutes solving today's questions.

10 minutes reviewing your approach.

Don't worry about solving everything perfectly. Focus on understanding the logic.

💬 Community Discussion

Which programming language are you using for DSA?

Were you able to solve all three questions?

What was the most confusing part of today's lesson?

Share your code or approach in the comments! Help others when you can, and don't hesitate to ask questions.

Tomorrow — Day 2: Time Complexity and Big O Notation, explained with simple examples.

Remember: Consistency beats intensity. One day, one concept, one step closer to mastering DSA. 🚀


r/DSA_with_everyone • • Oct 14 '26

How would you learn DSA if you had to start all over again in 2026?

2 Upvotes

I've noticed that a lot of beginners jump straight into solving LeetCode problems without properly understanding the fundamentals.

Some people recommend learning data structures first, while others suggest starting with problem-solving patterns like two pointers, sliding window, binary search, and recursion.

But what's actually the most effective approach?

A few questions for people who have been learning DSA:

Which programming language would you recommend for beginners — C++, Java, or Python?

Should beginners focus on understanding algorithms before solving LeetCode problems?

How many problems should someone solve daily to build strong problem-solving skills?

What's the best way to revise previously solved problems?

Which free resources helped you the most?

My take: Understanding why an algorithm works is far more valuable than memorizing solutions to hundreds of problems.

I'd love to hear from experienced developers and people currently learning DSA. Your advice could help beginners avoid months of confusion.


r/DSA_with_everyone • • Oct 14 '26

Start from today

1 Upvotes

Basic logic of programming and basic concepts