PayMoney. processes thousands of transactions daily amounting to crores of Rupees. They also have a daily target that they must achieve. Given a list of transactions done by PayMoney and a daily target, your task is to determine at which transaction PayMoney achieves the same. If the target is not achievable, then display the target is not achieved.(java)
TestCase 1Enter the size of transaction array3Enter the values of array20 12 31Enter the total no of targets that needs to be achieved2Enter the value of target21Target achieved after 2 transactions Enter the value of target19Target achieved after 1 transactions ExplanationTarget 1 i.e 21 is achieved after 2 transactions, (20 + 12)Target 2 i.e 19 is achieved in the 1st transaction itself.
PayMoney. processes thousands of transactions daily amounting to crores of Rupees. They also have a daily target that
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am