////////////////////////////////////////////////////////////////////////// // We'll say that a String is xy-balanced if for all the 'x' chars in the // string, there is a 'y' char somewhere later in the string. So "xxy" is // balanced, but "xyx" is not. // // Return true if the given string is xy-balanced. // // xyBalance("aaxbby") --> true // xyBalance("aaxbb") --> false // xyBalance("yaaxbb") --> false // // You'll need one of these include directives here when you submit this // to the Curator: // // #include // if you're not using separate compilation // #include "xyBalance.h" // if you are using separate compilation // bool xyBalance( const char *String ) { . . . }