Maximum Number of Weeks for Which You Can Work
You are given an integer array nums representing the number of weeks of a project. Each week, you can work on one of the two tasks:
Finish one task. Finish one task and start a new task. Return the maximum number of weeks for which you can work, given that you can only choose one task each week.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)