When we realize a specific implementation of a pancake algorithm, every move when we find the greatest of the sized array and flipping

Đạt Michio

New member
When we realize a specific implementation of a pancake algorithm, every move when we find the greatest of the sized array and flipping can be modeled through __________
A. Combinations
B. Exponential functions
C. Logarithmic functions
D. Permutations
 
Answer: D
Explanation: Here when we flipping the array or stack, we have to take utmost priority to preserve the order of the list so that that sorting doesnt become invalid. Hence we use permutations, we are ensuring that order matters.
 

Tìm kiếm

Back
Top