Skip to content

Data Structures & Algorithms

Browse every published data structures & algorithms article in Engineering.

Articles

9 articles

Data Structures & Algorithms · Problem Solving

Number of Islands: Exploring a Grid with Depth-First Search

Count connected regions of land with iterative depth-first search, track visited cells, and implement Number of Islands in C#, Go, and Python 3.

Estimated reading time: 8minutes
  • Graphs
  • Depth-First Search
  • Grids

Data Structures & Algorithms · Problem Solving

Reverse Integer: Reversing Digits Without Overflow

Reverse a signed integer one digit at a time, detect 32-bit overflow before it happens, and handle negative numbers in C#, Go, and Python 3.

Estimated reading time: 6minutes
  • Integers
  • Overflow
  • Problem Solving

Data Structures & Algorithms · Problem Solving

Updated

Valid Parentheses: Matching Brackets with a Stack

Learn why bracket order needs a stack, trace a linear-time solution, and implement Valid Parentheses in C#, Go, and Python 3.

Estimated reading time: 6minutes
  • Stacks
  • Strings
  • Problem Solving

Data Structures & Algorithms · Problem Solving

Binary Search

Find a target in a sorted array with binary search, using an inclusive search range and O(log n) time.

Estimated reading time: 2minutes
  • Algorithms
  • Problem Solving
  • Binary Search

Data Structures & Algorithms · Problem Solving

Two Sum: From Brute Force to a Hash Map

Improve Two Sum from nested loops to a single pass using a dictionary, with C#, Go, and Python 3 examples.

Estimated reading time: 2minutes
  • Algorithms
  • Problem Solving
  • Hash Maps

Data Structures & Algorithms

Premium

Advanced Sorting: Working Within a Memory Budget

Choose a sorting strategy around memory limits, stable ordering, and input size, then combine sorted runs with a streaming Python merge.

Estimated reading time: 5minutes
  • Algorithms
  • Sorting
  • Python

Data Structures & Algorithms

Updated

Basic DSA Patterns: Building Blocks for Problem Solving

Learn reusable DSA patterns for swapping values, using binary search, and finding the first and last occurrence of a target.

Estimated reading time: 5minutes
  • Algorithms
  • Problem Solving
  • Computer Science

Data Structures & Algorithms

Updated

Merge Sort — Top Down and Bottom Up for Arrays and Linked Lists

Learn merge sort from first principles: merge sorted ranges, compare top-down and bottom-up arrays, implement linked-list sorting, and analyze stability, time, and space.

Estimated reading time: 9minutes
  • Algorithms
  • Sorting
  • Computer Science

Data Structures & Algorithms

Updated

Sorting Algorithms: Quick Sort — Practical Deep Dive

Learn how quick sort partitions arrays, follow a step-by-step example, compare recursive and iterative C# implementations, and explore versions in Python and Go.

Estimated reading time: 10minutes
  • Algorithms
  • Sorting
  • Computer Science