Given two array A and B, sort A in such a way that the relative order among the elements will be the same as those in B
belongs to collection: Interview C++ coding problems/challenges | sorting
All Answers
need an explanation for this answer? contact us directly to get an explanation for this answer
g
need an explanation for this answer? contact us directly to get an explanation for this answertotal answers (2)
Algorithm:
C++ program to implement relative sorting algorithm
Output
need an explanation for this answer? contact us directly to get an explanation for this answer