P
AdvancedAll AIs

Preparing for a technical algorithmic interview

Simulate 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 :
1. **Clarification du problème** : questions à poser à l'interviewer avant de coder
2. **Exemples et cas limites** : identifier les edge cases
3. **Approche brute force** : solution O(n²) ou plus, expliquer pourquoi c'est un point de départ valide
4. **Optimisation** : progression vers la solution optimale (expliquer le raisonnement)
5. **Solution optimale commentée** : code propre avec complexité O(n) et/ou O(log n)
6. **Complexité** : temps et espace analysés précisément
7. **Tests** : trace d'exécution sur 2 exemples + 1 cas limite
8. **Patterns identifiés** : quel pattern algorithmique ce problème illustre-t-il
9. **Erreurs courantes** à éviter sur ce type de problème

Why this prompt works

The brute force → optimization progression reproduces exactly what FAANG interviewers expect: showing the reasoning, not just the solution. The request for clarifying questions trains a skill that is often neglected and highly valued. Pattern identification facilitates recognition of similar problems.

Use Cases

Prepare for a FAANG or equivalent interviewPractice solving LeetCode problemsTrain a team in interview techniques

Expected Output

Complete 9-step guide: clarification questions, brute force, reasoned optimization, commented solution with complexity, tests and identified pattern.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide