The following question needs to be answered in C++ please beclear and comment code
Q: Given a pattern containing only I’s and D’s. I for increasingand D for decreasing. Devise an algorithm to print the minimumnumber following that pattern. Digits from 1-9 and digits can’trepeat.
Expert Answer
An answer will be send to you shortly. . . . .