Stack Mind

Stack Mind Stack Mind is a performance and ROI-focused Digital Marketing agency specializing in eCommerce.

We provide expert Facebook & Google Ads management, conversion optimization, product feed management, and full-funnel strategies to help businesses grow

13/11/2025
Simple Explanation Data StructuresAs developers, we don’t just write code, we solve problems. And behind almost every ef...
04/06/2025

Simple Explanation Data Structures

As developers, we don’t just write code, we solve problems. And behind almost every efficient solution is the smart use of a data structure.

Whether you're building a simple to-do app or a complex recommendation engine, knowing how to organize and access data effectively is key. Mastering data structures isn’t just academic. It’s practical, powerful, and essential to writing better, faster, and cleaner code.

Think of data structures as different ways to organize your stuff, but for data in your computer. Here’s a breakdown of the most common ones explained simply:

1️⃣ Arrays

Arrays are like a shelf with boxes lined up in order. Each box has a number called an index, starting from zero, so you can quickly grab what you want by its spot. Arrays are perfect when you want to keep things in order and access them fast. For example, a list of your top five favorite movies, where movie zero is your absolute favorite.

2️⃣ Linked Lists

Linked lists are like a chain of treasure boxes where each box holds data and a link to the next box. This makes it easy to add or remove items anywhere in the chain, but to find something, you have to follow the chain from the start. A good use case for linked lists is managing playlists where you often add or remove songs.

3️⃣ Stacks

Stacks are like piling plates: you add new plates on top and take plates from the top only. This “last in, first out” system is great for things like the undo button in apps or the browser back button, where you want to reverse your most recent action first. Imagine undoing typing mistakes in a document.

4️⃣ Queues

Queues work like lines at the grocery store. The first person to get in line is the first to be served. Queues are perfect for managing tasks that need to be done in order, like print jobs or customer support requests. They’re useful for processing orders exactly in the order they come in.

5️⃣ Trees
Trees start with a root and branch out into smaller part

Full Stack web development roadmap
24/05/2025

Full Stack web development roadmap

Relate!!!!!!🙄🙄
30/04/2025

Relate!!!!!!🙄🙄

09/04/2025

-1 : To master any framework or library, Build a strong foundation to the raw prograiming language

Javascript string methods
09/04/2025

Javascript string methods

24/03/2025

ডাটা স্ট্রাকচার রিলেটেড ১০০ প্রাকটিস প্রব্লেম
বেশিরভাগ পোলাপান পোলাপান ডাটা স্ট্রাকচার বুঝে কিন্তু পারে না। কারণ ডাটা স্ট্রাকচার এর সংজ্ঞা মুখস্ত করা আর কখন কোনটা কেন এবং কিভাবে এপ্লাই করবে সেটা বুঝতে পারা, ফিল করতে পারা এক না। আর ঠিক মতো প্রব্লেম প্রাকটিস করতে করতে ডাটা স্ট্রাকচার-এলগরিদম না শিখলে রিয়েল ওয়ার্ল্ড সিনারিওতে ডাটা স্ট্রাকচার জানার বেনিফিট আসবে না বরং ঝামেলা আর কনফিউশন আসবে।
এইখানে লিটকোড থেকে ১০০ এর মতো ডাটা স্ট্রাকচার রিলেটেড প্রব্লেম আছে। এইগুলা করতে হবে এমন কোন কথা নাই। এই টাইপের কিছু হলেও করো। আবার সবগুলা করতেই হবে এমন কোন কথা নাই। তবে কিছু তো করতে হবে। [ আর প্রব্লেম দেখে ভয় পাইতে না চাইলে বা ইফেক্টিভভাবে ৪০০-৫০০ প্রব্লেম প্রাকটিস করতে করতে প্রোগ্রামিং, ডাটা স্ট্রাকচার, এলগরিদম শিখতে চাইলে মার্চের ২৪ এর মধ্যে চলে আসো phitron . io তে ]
১. Array
অন্য সব ডাটা স্ট্রাকচারের চাইতে Array সবচেয়ে বেশি ইউজ হয়। এইটার বেসিক কনসেপ্ট, ইনডেক্স, add/remove এইগুলা বুঝার পর মিনিয়াম Array রিলেটেড প্রব্লেম প্রাকটিস করতে হবে।
https://leetcode.com/problems/contains-duplicate
https://leetcode.com/.../find-numbers-with-even-number-of...
https://leetcode.com/problems/running-sum-of-1d-array
https://leetcode.com/.../remove-duplicates-from-sorted-array
https://leetcode.com/problems/rotate-array
https://leetcode.com/problems/longest-common-prefix
https://leetcode.com/.../minimum-number-of.../description/
https://leetcode.com/.../partition-array-according-to...
https://leetcode.com/.../find-the-prefix.../description/
https://leetcode.com/.../convert-an-array.../description/
—-
২. স্ট্রিং
ডাটা স্ট্রাকচার হিসেবে আমরা স্ট্রিংকে গোনায় ধরি না। তবে ভিতরে ভিতরে সে কিন্তু ডাটা রাখে এবং একটা স্ট্রাকচার মেনটেইন করে।
https://leetcode.com/problems/defanging-an-ip-address
https://leetcode.com/problems/goal-parser-interpretation
https://leetcode.com/problems/reverse-string
https://leetcode.com/problems/valid-palindrome
https://leetcode.com/pro.../length-of-last-word/description/
https://leetcode.com/.../reverse-words-in-a.../description/
https://leetcode.com/.../reverse-words-in-a.../description/
https://leetcode.com/problems/to-lower-case/description/
https://leetcode.com/problems/most-common-word/description/
https://leetcode.com/.../backspace-string.../description/
৩. স্ট্যাক
https://leetcode.com/problems/valid-parentheses/
https://leetcode.com/problems/min-stack/
https://leetcode.com/problems/implement-stack-using-queues
https://leetcode.com/problems/daily-temperatures/
https://leetcode.com/problems/next-greater-element-i
https://leetcode.com/problems/simplify-path
https://leetcode.com/problems/asteroid-collision
https://leetcode.com/.../build-an-array-with.../description/
https://leetcode.com/.../minimum-number-of.../description/
https://leetcode.com/.../removing-stars-from.../description/
৪. কিউ
স্ট্যাক এবং কিউ এর মেইন কনসেপ্ট। কিভাবে উপাদান যোগ করে, বের করে, কিভাবে খুঁজে বের করে এইগুলা শেখার পর নিচের প্রব্লেমগুলা প্রাকটিস করো।
https://leetcode.com/.../time-needed-to-buy.../description/
https://leetcode.com/.../first-unique.../description/
https://leetcode.com/.../number-of-students.../description/
https://leetcode.com/problems/implement-queue-using-stacks/
https://leetcode.com/problems/design-circular-queue
https://leetcode.com/problems/number-of-recent-calls
https://leetcode.com/.../reveal-cards-in.../description/
https://leetcode.com/.../find-the-winner-of.../description/
https://leetcode.com/.../continuous-subarrays/description/
https://leetcode.com/.../design-front-middle.../description/
৫ লিংকড লিষ্ট
খুবই মজার একটা কনসেপ্ট। একটা উপাদানের সাথে আরেকটা উপাদানের কানেকশন থাকবে। বিভিন্ন ভাবে। Singly Linked List, Doubly Linked List আবার লিংকড লিস্ট এ সাইকেল থাকতে পারে।
https://leetcode.com/problems/reverse-linked-list/
https://leetcode.com/problems/merge-two-sorted-lists/
https://leetcode.com/problems/linked-list-cycle/
https://leetcode.com/.../remove-nth-node-from-end-of-list/
https://leetcode.com/problems/add-two-numbers/
https://leetcode.com/problems/palindrome-linked-list
https://leetcode.com/problems/middle-of-the-linked-list
https://leetcode.com/.../remove-duplicates-from-sorted-list
https://leetcode.com/pro.../intersection-of-two-linked-lists
https://leetcode.com/problems/design-linked-list
—-
৬ হ্যাশ টেবিল
হ্যাশ টেবিলের কনসেপ্ট বুঝতে হবে হ্যাশ জিনিসটা কি। কিভাবে হ্যাশ ফাংশন কাজ করে। কোন Collision হলে সেটা সেটা কিভাবে হ্যান্ডেল করবে। এবং কোন কোন ইউজ কেইসে হ্যাশ টেবিল ইউজ করা হয়। যেমন, ক্যাশিং, লুকআপ টেবিল।
https://leetcode.com/problems/roman-to-integer/description/
https://leetcode.com/problems/group-anagrams/description/
https://leetcode.com/problems/linked-list-cycle/description/
https://leetcode.com/.../intersection-of-two.../description/
https://leetcode.com/problems/word-pattern/description/
https://leetcode.com/.../first-unique.../description/
https://leetcode.com/.../next-greater-element-i/description/
https://leetcode.com/problems/design-hashmap/description/
https://leetcode.com/.../find-common-characters/description/
https://leetcode.com/.../longest-arithmetic.../description/
—-
৭ Tree:
ট্রি হচ্ছে এক ধরনের non-linear data structure, যেখানে nodes থাকে এবং প্রতিটি node এর সাথে অন্য node গুলো কনেক্টেড থাকে
https://leetcode.com/problems/binary-tree-inorder-traversal/
https://leetcode.com/problems/maximum-depth-of-binary-tree/
https://leetcode.com/problems/same-tree/
https://leetcode.com/.../lowest-common-ancestor-of-a.../
https://leetcode.com/problems/balanced-binary-tree/
https://leetcode.com/problems/invert-binary-tree
https://leetcode.com/problems/diameter-of-binary-tree
https://leetcode.com/problems/symmetric-tree
https://leetcode.com/.../binary-tree-level-order-traversal
https://leetcode.com/problems/count-complete-tree-nodes

৮ Graph
গ্রাফ (Graph) হল নোড (Node) বা শীর্ষবিন্দু (Vertex) এবং তাদের মধ্যে সংযোগ (Edge) নিয়ে গঠিত একটি গাণিতিক গঠন, যা বিভিন্ন বাস্তব সমস্যার মডেলিংয়ে ব্যবহৃত হয়। গ্রাফ (Graph) হচ্ছে এক ধরনের non-linear data structure.
https://leetcode.com/problems/keys-and-rooms/description/
https://leetcode.com/.../number-of-closed.../description/
https://leetcode.com/.../maximum-number-of.../description/
https://leetcode.com/problems/island-perimeter/description/
https://leetcode.com/prob.../network-delay-time/description/
https://leetcode.com/prob.../number-of-enclaves/description/
https://leetcode.com/problems/climbing-stairs/description/
https://leetcode.com/.../n-th-tribonacci-number/description/
https://leetcode.com/.../min-cost-climbing.../description/
https://leetcode.com/problems/house-robber/description/

৯ Priority queue
https://leetcode.com/.../kth-largest-element.../description/
https://leetcode.com/problems/relative-ranks/description/
https://leetcode.com/.../find-k-closest.../description/
https://leetcode.com/.../top-k-frequent.../description/
https://leetcode.com/.../kth-smallest.../description/
https://leetcode.com/.../kth-largest-element.../description/
https://leetcode.com/.../maximum-product-of.../description/
https://leetcode.com/.../largest-number.../description/
https://leetcode.com/.../minimum-amount-of.../description/
https://leetcode.com/.../make-array-zero-by.../description/
১০ Tree others
https://leetcode.com/.../convert-sorted.../description/
https://leetcode.com/.../minimum-absolute.../description/
https://leetcode.com/.../search-in-a-binary.../description/
https://leetcode.com/.../increasing-order.../description/
https://leetcode.com/problems/range-sum-of-bst/description/
https://leetcode.com/.../binary-tree-right.../description/
https://leetcode.com/.../construct-string.../description/
https://leetcode.com/pro.../add-one-row-to-tree/description/
https://leetcode.com/prob.../leaf-similar-trees/description/
https://leetcode.com/.../univalued-binary-tree/description/
শুধু এইগুলা না এইরকম আরো শত শত প্রব্লেম প্রাকটিস করতে করতে ডাটা স্ট্রাকচার এলগরিদম এ ভালো একটা লেভেল পৌঁছে যাবে যদি সিরিয়াসলি ফাইট্রন শেষ করতে পারো।
শেষ কথা হচ্ছে: হয় সাহস করে চেষ্টা করবা, না হয় ভয় পেয়ে বসে থাকবা।
যেটাই করবা সেটারই আউটপুট পাবা।

Address

Chairmanbari, Dakkinkhan
Dhaka
1230

Website

Alerts

Be the first to know and let us send you an email when Stack Mind posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share