Mutual Fund Portfolio Peak NAV
Mutual Fund Portfolio Peak NAV
EasyArrays100% accepted
Priya monitors her Groww mutual fund portfolio daily. She tracks the Net Asset Value (NAV) of her fund over 6 months. To calculate unrealized gains vs. peak performance, she needs to find the highest NAV reached during the period.
Approach
Given array of daily NAV values, return the maximum NAV observed.
Input
nav=[45.50,46.20,45.80,47.10,46.50]
Output
47.1
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards