Hints for SRM 587, D2, 250-pointer (InsertZ)

James S. Plank

Thu Sep 26 14:05:55 EDT 2013
Problem Statement.
The simplest way to do this is to remove the z's from goal and seeing if the result equals init. How best to remove the z's from goal? Create a new string s by traversing goal, and calling push_back() on each non-z character in goal. My solution was three lines of code.