Once you attempt the question then PrepInsta explanation will be displayed.
Step1: Queue= { b } or { b }
Queue={ b,a,c } or { b,c,a }
Queue= { b,a, c,h } or { b,c,a,e }
Queue= { b,a,c,h, e } or { b,c,a,e }
Queue= { b,a,c,h, e,d } or { b,c,a,e,d }
Queue= { b,a,c,h, e,d,g,f } or {b,c,a,e,d,f,g, h,}
Sequence= (bachedgf) or (bcaedfgh)
Login/Signup to comment