Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Prefix Suffix Leetcode Problem - C#
C
C#
•
2y ago
v14do
Prefix Suffix Leetcode Problem
I wanted to solve problem 1769 on leetcode on my own but i couldnt do it
. Im learning prefix sum algorithm so i wanted to solve it with that algorithm
. I
've been looking at this solution for like an hour now and i still cant understand why it works
. What does the
"balls
" variable track
? I
'd be really happy if someone could help me understand it
.
solution
:
https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/solutions/4613483/c-o-n-using-prefix-suffix-moves-calculation/
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
✅ Help LeetCode Problem
C
C# / help
3y ago
Help LeetCode Problem
C
C# / help
3y ago
❔ LeetCode Alternatives
C
C# / help
3y ago
IndexOutOfRange Leetcode help
C
C# / help
2y ago