Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool found(stack < int > lol, int wally)
- {
- while(!lol.empty())
- {
- if(lol.top()==wally)
- return true;
- lol.pop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement