c ++ function to count ways to divide a string in two parts a and b such that b / pow ( 10 , p ) == a
#include <bits/stdc++.h> NEW_LINE using namespace std ; int calculate ( string N ) { int len = N . length ( ) ; int l = ( len ) / 2 ; int count = 0 ; for ( int i = 1 ; i <= l ; i ++ ) {