Sollicitatievraag bij EY

How would you optimize a complex algorithm to improve time and space efficiency while maintaining accuracy