Monthly Sale
CodeChefOpen on judge ↗
Lisa is a member of finance department in an IT company. She is provided with the financial report of last few years. The report is provided in the form of an array A of size $N$ containing some positive and negative values. The positive value depict the profit and negative value depict the loss. Now, she wants to calculate a point in an array where the sum of profit and loss in last few months is
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start