text: C ++ Program to find the longest subsequence possible that starts and ends with 1 and filled with 0 in the middle
code: #include <bits/stdc++.h> NEW_LINE using namespace std ; int longestSubseq ( string s , int length ) {