Skip to content

Instantly share code, notes, and snippets.

@rajkumar-p
Created January 17, 2013 13:19
Show Gist options
  • Save rajkumar-p/4555888 to your computer and use it in GitHub Desktop.
Save rajkumar-p/4555888 to your computer and use it in GitHub Desktop.
Update number of ladders
void updateNumberOfLadders(vector<element> &wordListDS) {
int wordListSize = wordListDS.size();
for (int i = 0; i < wordListSize; ++i)
{
wordListDS.at(i).noOfLadders = wordListDS.at(i).links.size();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment