← Find the Balance Index
Discussions
Sign in to join the discussion.
B
bhavanasub3
OFFICIAL
2 weeks, 4 days ago
Clean C++ solution, beats most submissions.
A single pass with a running value is enough here. Keep track of the best answer so far and update it as you scan, which gives O(n) time and O(1) extra space.
💬 3 replies
T
tarun.p
1 week, 6 days ago
Asked in my BrowserStack OA last week.
A single pass with a running value is enough here. Keep track of the best answer so far and update it as you scan, which gives O(n) time and O(1) extra space.
💬 2 replies
A
agoud
1 month ago
Simple approach explained for beginners.
A single pass with a running value is enough here. Keep track of the best answer so far and update it as you scan, which gives O(n) time and O(1) extra space.
💬 3 replies
D
deepikaagarwal
4 months, 3 weeks ago
Intuition + complexity breakdown for Find the Balance Index.
A single pass with a running value is enough here. Keep track of the best answer so far and update it as you scan, which gives O(n) time and O(1) extra space.
💬 0 replies