Coding Questions | A Tough Task | Codewindow.in
Ram wants to test Raju’s knowledge of her programming skills, so she gave her a tough task to test her. Given an array arr[] of N integers, write a program to find the maximum that maximizes the sum of the values of i*arr[i] where i varies from 0 to n-1. Example:Input:48 3 1 2 Output:29 […]