Pergunta de entrevista da empresa Archana

Explain the time complexity of your code and how you would optimize it.

Resposta da entrevista

Sigiloso

15 de jul. de 2025

I explained the current time complexity using Big O notation and suggested an optimized approach using a different data structure, improving performance from O(n²) to O(n log n). I also discussed trade-offs.