top of page
Search

Interior Stack Expansion for Integer Stacks

  • jr229931hh1
  • Oct 5, 2020
  • 1 min read

The following simple problem is an excellent for practicing working with stacks. Your goal is to create the function that takes two stacks st1 and st2 and one integer z. The function should expand the stack st1 by including the elements from st2. The entire st2 should be placed in the interior of st1 just before the first occurrence of the number z.







 
 
 

Recent Posts

See All
Evaluating formulas using stack

A stack can be used to evaluate formulas with brackets and operations +, -, and * on integers. The formula must have brackets around each...

 
 
 
Binary Search Trees Part 2

This post contains the program that tests the functions developed in https://jr229931hh1.wixsite.com/website/post/binary_search_tree City...

 
 
 
Binary Search Tree

The building block of the binary search tree is its node. template<typename T> struct BSTNode{ T storage; BSTNode* left; BSTNode* right;...

 
 
 

Comentarios


  • Facebook
  • Twitter
  • LinkedIn

©2020 by Combinatorics and computer science blog. Proudly created with Wix.com

bottom of page