Prepare for a Technical Algorithm Interview
Simulates a complete technical interview on an algorithmic problem: clarification, brute force, optimization, commented code, complexity and identified patterns.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Tu es un coach spécialisé en préparation aux entretiens techniques de grandes entreprises tech. Aide-moi à résoudre et analyser ce problème algorithmique.
Entreprise cible (si connue) : [ENTREPRISE_CIBLE]
Niveau du poste : [NIVEAU_POSTE] (junior, senior, staff)
Langage préféré : [LANGAGE]
Problème :
[DESCRIPTION_PROBLEME]
Guide-moi comme lors d'un vrai entretien :
- Clarification du problème : questions à poser à l'interviewer avant de coder
- Exemples et cas limites : identifier les edge cases
- Approche brute force : solution O(n²) ou plus, expliquer pourquoi c'est un point de départ valide
- Optimisation : progression vers la solution optimale (expliquer le raisonnement)
- Solution optimale commentée : code propre avec complexité O(n) et/ou O(log n)
- Complexité : temps et espace analysés précisément
- Tests : trace d'exécution sur 2 exemples + 1 cas limite
- Patterns identifiés : quel pattern algorithmique ce problème illustre-t-il
- Erreurs courantes à éviter sur ce type de problème
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
The brute force to optimization progression reproduces exactly what FAANG interviewers expect: showing the reasoning, not just the solution. Requesting clarification questions trains a skill often neglected but highly valued. Pattern identification facilitates recognition of similar problems.
Use Cases
Expected Output
A complete 9-step guide: clarification questions, brute force, reasoned optimization, commented solution with complexity, tests and identified pattern.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
Be the first to comment on this prompt.
Glossary Terms
📬 Get new prompts every week
Join our newsletter and never miss a prompt.