CPP program to find maximum score we can get by removing elements from either end .
#include <bits/stdc++.h> NEW_LINE #define MAX  50 NEW_LINE using namespace std ; int solve ( int dp [ ] [ MAX ] , int a [ ] , int low , int high , int turn ) {