Coding Interview

Reverse Linked List in Dart — Iterative (Optimal) & More

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

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

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

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

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

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

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

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

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

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 Python — 3 Ways

Remove Duplicates from Sorted Array in Python — 3 Ways

Safely remove duplicates in-place from a sorted array in Python. 3 approaches: two-pointers, slow-fast index tracking, and set-based shortcut, with complexity analysis.

August 29, 2024

Remove Duplicates from Sorted Array in Swift — Two Pointers

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

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

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 Python — Floyd's Tortoise & Hare

Linked List Cycle in Python — Floyd's Tortoise & Hare

Detect a cycle in a linked list two ways — hash set tracking and Floyd's Tortoise and Hare (fast/slow pointers) — with code and a dry run.

May 01, 2024

Linked List Cycle in Swift — Floyd's Tortoise & Hare & More

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

Count Nice Pairs in Dart — Modular Arithmetic Trick

Count Nice Pairs in Dart — Modular Arithmetic Trick

Count nice pairs in an array in Dart. Learn the modular arithmetic trick that turns O(n²) into O(n) using hash maps, with full code and tests.

January 14, 2024

Contains Duplicate in Go — Hash Set (Optimal) & More

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

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

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

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

Topics (338)