NPS-INR-Cyber-Programming-2021

The 2021 edition of the NPS Indiranagar interhouse Cyber Programming contest.

View on GitHub

Hey Google, play poker.

Problem Statement:

Google is testing their Google Assistant’s skill in the high risk, high reward game of poker. Sundar Pichai asks his product manager for a report on the success rates of the assistant. The product manager then turns to you and asks you to complete a task. You are given an integer array A of length N. Find the contiguous subarray of the array which has the largest sum.

Constraints:

Subtask 1: 20 points

Subtask 2: 30 points

Subtask 3: 50 points

Input Format:

Output Format:

Sample input:

6 5 -3 -2 3 5 -4 

Sample output:

8