Skip to content
Avio Lines
← Arrays lineD1Stop 180 of 271

Sum of Distances (LeetCode 2615)

MediumLeetCode 2615 · Prefix Sum · Google, Amazon +3 · 32:20Sum of Distances · Detailed · From Brute Force · Dry Runs · Leetcode 2615
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

Pause here and write your approach in two lines. Compare it with MIK's when the video ends.

Sign in to write your approach →

About this video

Video solution for LeetCode 2615 Sum of Distances by codestorywithMIK: Arrays, Medium. Topics: Array, Hash Table, Prefix Sum. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Array, Hash Table, Prefix Sum
Patterns
Prefix Sum, Hashing
Chapter
Arrays
Duration
32:20