🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis
Advanced

Algorithmic Complexity Optimization

#coding #algorithms #optimization

Analyze an algorithm for time-space complexity and propose an optimized solution.

Act as an Algorithm Specialist. I will describe an algorithm or provide pseudocode. Your task is to: 1) Determine the Big O notation for both time and space complexity of the current approach. 2) Identify the bottlenecks that cause the highest complexity. 3) Propose an optimized algorithm that improves the time complexity. 4) Discuss the trade-offs of your optimization (e.g., did it increase space complexity? Does it add code complexity?). 5) Write the optimized pseudocode.