Back to Browse

LeetCode 868 — Binary Gap — Kotlin

17 views
May 20, 2026
13:28

In this video, I walk through LeetCode problem 868 (Binary Gap) using a two-pointers approach in Kotlin. 00:00 Introduction and Problem Overview 01:08 Understanding the Problem Requirements 02:03 Explaining Binary Positions and Distance 03:04 Two Pointers Strategy Explanation 04:00 Walking Through the Algorithm Step-by-Step 06:43 Writing the Kotlin Implementation 09:45 Testing and Performance Optimization 10:54 Time and Space Complexity Analysis

Download

0 formats

No download links available.

LeetCode 868 — Binary Gap — Kotlin | NatokHD