All Posts - Data Structures

Reverse Linked List in Dart — Iterative (Optimal) & More
Solve Reverse Linked List in Dart with working code. Iterative (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
April 09, 2026

Reverse Linked List in Go — Iterative (Optimal) & More
Solve Reverse Linked List in Go with working code. Iterative (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
April 09, 2026

Reverse Linked List in Python — Iterative (Optimal) & More
Solve Reverse Linked List in Python with working code. Iterative (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
April 09, 2026

Reverse Linked List in Swift — Iterative (Optimal) & More
Solve Reverse Linked List in Swift with working code. Iterative (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
April 09, 2026

Maximum Subarray in Dart — Kadane's Algorithm (Optimal) & More
Solve Maximum Subarray in Dart with working code. Kadane's Algorithm (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
October 23, 2025

Maximum Subarray in Go — Kadane's Algorithm (Optimal) & More
Solve Maximum Subarray in Go with working code. Kadane's Algorithm (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
October 23, 2025

Maximum Subarray in Python — Kadane's Algorithm (Optimal) & More
Solve Maximum Subarray in Python four ways — Kadane's O(n) algorithm, brute force, divide-and-conquer, and index tracking — with interview tips.
October 23, 2025

Maximum Subarray in Swift — Kadane's Algorithm (Optimal) & More
Solve Maximum Subarray in Swift with working code. Kadane's Algorithm (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
October 23, 2025

Remove Duplicates from Sorted Array in Go — Two Pointers & More
Solve Remove Duplicates from Sorted Array in Go with working code. Two Pointers (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
August 29, 2024

Remove Duplicates from Sorted Array in Dart — Two Pointers & More
Solve Remove Duplicates from Sorted Array in Dart with working code. Two Pointers (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
August 29, 2024

Remove Duplicates from Sorted Array in Swift — Two Pointers
Solve Remove Duplicates from Sorted Array in Swift with working code. Two Pointers (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
August 29, 2024

Linked List Cycle in Dart — Floyd's Tortoise & Hare & More
Solve Linked List Cycle in Dart with working code. Floyd's Tortoise & Hare (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
May 01, 2024

Linked List Cycle in Go — Floyd's Tortoise & Hare & More
Solve Linked List Cycle in Go with working code. Floyd's Tortoise & Hare (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
May 01, 2024

Linked List Cycle in Swift — Floyd's Tortoise & Hare & More
Solve Linked List Cycle in Swift with working code. Floyd's Tortoise & Hare (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
May 01, 2024

Contains Duplicate in Go — Hash Set (Optimal) & More
Solve Contains Duplicate in Go with working code. Hash Set (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
January 08, 2024

Contains Duplicate in Dart — Hash Set (Optimal) & More
Solve Contains Duplicate in Dart with working code. Hash Set (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
January 08, 2024

Contains Duplicate in Python: Set vs Dictionary vs Sorting
3 ways to detect duplicate elements in a Python array — set-based, dictionary-based, and sorting approaches compared with complexity analysis.
January 08, 2024

Contains Duplicate in Swift — Hash Set (Optimal) & More
Solve Contains Duplicate in Swift with working code. Hash Set (Optimal) approach with O(n) time, plus complexity analysis and interview tips.
January 08, 2024