Question: Write this funciton in C++: placeNumbers is a function that should take a vector of n integers and a string of length n 1 as
Write this funciton in C++: placeNumbers is a function that should take a vector of n integers and a string of length n 1 as input and return a vector of n integers. placeNumbers should return an ordering of the numbers such that the conditions encoded in the string are met. A value in the string will be < if the number that would be to its left is less than the number that would be to its right, and > otherwise. It may be assumed that the vector of numbers will be in ascending order.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
