CodePilot 1.6 • The All-in-One LeetCode Companion

Master LeetCode.
Without the paywall.

Instant 0ms offline autocomplete, every locked LeetCode Premium problem unlocked for free, and a Socratic AI coach that guides your intuition — right in your browser.

0ms Local Latency
Free Premium Unlock
Socratic AI Hints
797+ Company Vaults
100% Private (BYOK)
LeetCode #207 (Course Schedule)
1// Topological Sort using Kahn's BFS Algorithm
2class Solution {
3public:
4  bool canFinish(int numCourses, vector<vector<int>>& prerequisites) {
5    vector<int> inDegree(numCourses, 0);
6    vector<vector<int>> adj(numCourses);
7    queue<int> q;
8 Type here to test live autocomplete
CodePilot Suggestions
push(val) Queue Method
pop() Method
prerequisites Parameter
9    return visitedCount == numCourses;
10  }
11};
AI Coach (Level 1 Hint) Step 1 of 4
This problem is about finding cycles in a directed graph. Start by finding courses that have no prerequisites (in-degree is 0), then work forward.
Test Code (Judge0 Runner) Ready
// Click "Run Code" to test this solution
Test 1: [[1,0]] → true
Test 2: [[1,0],[0,1]] → false
🔓 100% Free • No Subscription Needed

Practice LeetCode Premium Problems for Free.

Stuck behind a $35/month paywall? When you open any locked problem on LeetCode, CodePilot automatically opens a clean split-screen workspace with the full problem description, sample test cases, starter code, and a built-in code runner — completely free.

CodePilot CodePilot Studio Unlocked Split View

269. Alien Dictionary

Hard 🔒 Unlocked Free
Google (38) Meta (29) Amazon (24) Microsoft (16)
There is a new alien language that uses the English alphabet, but the order of the letters is different.

You are given a list of words from the alien dictionary sorted in their alphabet's order.

Return a string showing the letters sorted in the correct order. If there is no valid order (a cycle exists), return "".
Example 1:
Input: words = ["wrt","wrf","er","ett","rftt"]
Output: "wertf"
Example 2:
Input: words = ["z","x"]
Output: "zx"
Rules & Limits:
• 1 to 100 words in the dictionary
• Each word is 1 to 100 characters long
• All characters are lowercase English letters
🔗 Free Community Mirror: Also available on LintCode Open on LintCode ↗
Starter Code Loaded • Ready to Run Python 3.10
class Solution: def alienOrder(self, words: List[str]) -> str: adj = {c: set() for w in words for c in w} in_degree = {c: 0 for c in adj} # Build directed graph of letter order for first, second in zip(words, words[1:]): for c1, c2 in zip(first, second): if c1 != c2: if c2 not in adj[c1]: adj[c1].add(c2) in_degree[c2] += 1 break else: if len(second) < len(first): return "" # BFS Topological Sort q = deque([c for c in in_degree if in_degree[c] == 0]) res = [] while q: c = q.popleft() res.append(c) for neighbor in adj[c]: in_degree[neighbor] -= 1 if in_degree[neighbor] == 0: q.append(neighbor) return "".join(res) if len(res) == len(in_degree) else ""
Test Results (Judge0 Compiler) ✓ 2/2 Test Cases Passed
Test 1: ["wrt","wrf","er","ett","rftt"] → Output: "wertf"
Test 2: ["z","x"] → Output: "zx"
Memory: 14.1 MB • Speed: 31ms (Faster than 98.4%)

Subscribe to LeetCode Premium

Normally, LeetCode asks for $35/month to view this question.

CodePilot gives you access for free: CodePilot shows the clean problem statement, sample tests, and starter code right in your browser with zero sign-ups needed.

⚡ Works 100% Offline

Over 50 top interview questions are saved directly on your computer so they open in 0ms without waiting for downloads.

🌐 Hundreds More Online

Whenever you visit any other locked problem, CodePilot grabs the problem statement and templates in the background.

🛡️ Clean & Seamless

Fits right into LeetCode's page without breaking your theme, slowing down your browser, or showing annoying ads.

🔗 Free Community Links

One-click links to free discussion sites like LintCode and GeeksforGeeks so you can see how others solved it.

Interview Preparation

Practice Questions from Top Tech Companies

Want to work at Google, Meta, or Amazon? Practice the exact questions real candidates were asked in recent interviews, sorted by how often they appear.

Google Interview Questions

Based on questions asked to candidates in the last 6 months.

120+ Questions
98% Recent Match
0ms Search Speed
Step-by-Step Learning

Follow Proven Roadmaps. Auto-Track Your Progress.

No more guessing what to solve next. Follow Striver's A2Z Sheet, NeetCode 150, or Blind 75. Connect your LeetCode and GeeksforGeeks profiles to track your solved problems automatically.

Striver's A2Z DSA Sheet

From coding basics and arrays to advanced Dynamic Programming and Graphs (455 total problems).

LeetCode: 214 Solved
GFG: 142 Solved
✓ Auto-Synced
Built for Speed & Simplicity

Everything You Need in One Extension

No clutter, no ads, no bloated menus. Just fast, useful tools right where you code.

Instant 0ms

Instant Offline Autocomplete

Code suggestions pop up with zero delay as you type. Works completely offline for C++, Python, Java, and JavaScript without sending your code to any cloud server.

queue<int> q; q.p|
push(val) Queue Method
pop() Method
front() Method
100% Offline Reads Active Code C++ • Python • Java • JS
100% Free

Free LeetCode Premium Access

Bypass locked paywalls automatically. When you visit a premium problem, CodePilot opens a clean split-screen editor with full descriptions, test cases, and templates.

#269 Alien Dictionary ✓ Unlocked
Includes starter code, sample test cases, and a built-in compiler so you can practice without paying $35/month.
Zero Cost Built-in Test Runner Free Mirror Links
797+ Companies

Company Question Vaults

Filter questions asked at Google, Meta, Amazon, Microsoft, and Apple, ranked by how often they actually appear in real interviews.

Top Tech Company Questions
Over 2,600 company-tagged questions ready to practice.
Google • Meta • Amazon Real Frequency
Striver A2Z Sheet

Roadmap Progress Tracker

Master all 455 problems in Striver's A2Z sheet, NeetCode 150, and Blind 75 with step-by-step progress tracking across your accounts.

Striver A2Z Sheet 340/455 Solved
NeetCode 150 128/150 Solved
Striver A2Z NeetCode 150 Blind 75
Simple Controls

Clean Settings & Focus Modes

Choose Standard mode for daily study, Interview mode to hide hints and tags, or Contest mode to practice under test conditions.

Standard Interview Contest
Apple Style Auto-Detects Site
Zero Spoilers

Step-by-Step AI Coach

Stuck on a tricky problem? Get progressive hints that guide your thinking one step at a time without ruining the fun of solving it yourself.

1. Intuition
2. Blueprint
3. Edge Cases
4. Solution
🛡️ Spoiler Shield: Hints unlock only when you ask for them.
Gemini 2.5 Flash Groq Llama 3.3 Voice Typing
Ctrl + K

Quick Command Palette

Search any question, jump to a roadmap, or insert code templates instantly from your keyboard by pressing Ctrl+K.

> Search: "Two Pointers" Esc
Spotlight Search Fast Shortcuts
In-Browser

Run Code in Your Browser

Test your code against sample or custom test cases in one click with instant compiler output, memory usage, and runtime speed.

Test 1: [2, 7, 11] ✓ 4ms
Test 2: [3, 2, 4] ✓ 6ms
Custom Tests Speed & Memory

Codeforces Tools & Dark Theme

Easy-on-the-eyes dark mode for late-night contests, anti-bias blind mode to hide ratings, and 1-click solution submission.

#ProblemRating
AWatermelon800
Dark Mode Blind Mode
Drawing Board

In-Page Scratchpad

Draw diagrams, sketch binary trees, and trace two-pointer movements right next to your code editor so you never lose track.

Binary Tree Pointer Tracer
1-Click Insert

Ready-to-Use Code Snippets

Stop typing out repetitive boilerplate. Insert pre-tested algorithms like Disjoint Set Union, Segment Trees, and Fast I/O with a single click.

DSU Trie SegTree Fast I/O
struct DSU { vector<int> parent, rnk; ... };
DSU Segment Tree Trie
100% Private

Your Code Stays on Your Machine

Your code, notes, and API keys stay strictly inside your browser. We run zero tracking servers and collect zero personal information.

Your Browser — Direct HTTPS → Google / Groq
✕ No Middleman Servers • ✕ Zero Tracking
Saved Locally Open Source MIT Zero Tracking
Smart Hint System

Learn How to Think, Not What to Copy.

Click through the 4 hint levels below to see how the AI guides you without giving away the solution.

Level 1 • Conceptual Nudge

Recognizing the Pattern

Notice that prerequisites represent dependencies: [a, b] means you must finish course b before taking course a. A valid schedule is possible if and only if the course dependencies have no circular cycles.

Simple 2-Minute Setup

Get Started in 3 Easy Steps.

Pick your setup method below. Autocomplete and Premium unlocking work right away with zero setup.

1

Install CodePilot from Chrome Web Store

Get the official extension directly on the Chrome Web Store or clone from GitHub. Autocomplete and free premium problem unlocking work immediately with zero configuration needed.

2

Open LeetCode, GFG, or Codeforces

Go to any problem. Autocomplete starts working automatically as soon as you begin typing in the code editor.

3

Open the Side Panel & Search Tools

Press Ctrl+M to open the companion Side Panel, or press Ctrl+K to quickly search questions and roadmaps.

1

Open Any Locked LeetCode Question

Navigate to any paywalled question URL (for example, leetcode.com/problems/alien-dictionary/ or meeting-rooms-ii).

2

Automatic Paywall Bypass

CodePilot instantly identifies the locked problem and loads the full description, examples, constraints, and starter code.

3

Code & Test Directly in the Page

Write your solution in Python, C++, Java, or JavaScript. Press Ctrl+Enter to test it against sample test cases on the spot!

1

Open Google AI Studio

Visit aistudio.google.com/app/apikey and sign in with your Google account.

2

Generate a Free API Key

Click "Create API Key". Google provides generous free limits every day for personal study.

3

Paste into CodePilot Settings

Open the CodePilot popup or side panel, paste your key, and click "Save". AI coaching is now ready to use!

1

Visit the Groq Console

Go to console.groq.com/keys and log in.

2

Copy Your Free Llama 3.3 Key

Create an API key starting with gsk_ to get ultra-fast AI responses (300+ tokens per second).

1

Connect Your LeetCode & GFG Profiles

Enter your public usernames in CodePilot settings. Your solved problem counts will sync into the Roadmaps tracker automatically.

2

Auto-Save Solutions to GitHub

Add a GitHub personal token if you want your accepted solutions automatically saved to your personal study repository.

Keyboard Shortcuts

Do Everything from Your Keyboard

Save time and stay focused without reaching for your mouse.

Search Anything (Command Palette) Ctrl + K / ⌘K
Trigger Autocomplete Ctrl + Space
Open Companion Side Panel Ctrl + M / ⌘M
Toggle Premium Studio / Paywall Ctrl + Shift + P
Open Scratchpad & Whiteboard Ctrl + Shift + S
Run Test Cases Ctrl + Enter
Get Next AI Hint Ctrl + H
Find Bugs in Code Ctrl + Shift + D
Make Code Faster Ctrl + B
Frequently Asked Questions

Clear Answers to Common Questions

Everything you need to know about how CodePilot works.

How does free LeetCode Premium work? +
When you open a locked problem on LeetCode, CodePilot recognizes the problem and displays a clean split-screen workspace with the problem statement, sample tests, and starter code. Over 50 top problems are already saved offline, and hundreds more download automatically in the background.
Is CodePilot completely free? +
Yes! CodePilot is 100% free and open-source under the MIT License. There are no subscriptions, paywalls, or hidden charges. Autocomplete works offline on your computer without needing any account.
Do I have to pay for the AI features? +
No! You connect your own free API key from Google AI Studio (Gemini) or Groq Cloud (Llama 3.3). Both provide generous free usage tiers every single day, so you can practice for free without paying for a subscription.
Does Company Explorer require a LeetCode subscription? +
No! CodePilot includes an offline directory of 2,624 company-tagged questions across 797 tech companies (Google, Meta, Amazon, Microsoft, Apple, Uber, Bloomberg) with real interview frequency scores completely free.
How does Dual-Platform Sync work? +
Just enter your public LeetCode and GeeksforGeeks handles in the CodePilot settings. The extension automatically looks up your solved question counts and updates your Striver A2Z and NeetCode 150 progress rings so you never have to check them off manually.
Does CodePilot send my code to any external servers? +
Never. Autocomplete, company lists, and roadmap tracking run 100% locally on your machine. When you explicitly ask the AI for a hint, your code is sent directly from your browser to Google or Groq using your own secure API key. We operate zero middleman servers and collect zero personal data.
Can I use this during live contests? +
Yes! CodePilot includes an automatic Contest Guard and Contest Focus Mode. When it detects an active rated contest, it turns off AI hints to follow platform honor codes, while keeping standard language autocomplete active.
Privacy & Trust

Privacy Policy

Last updated: October 2026 • Compliant with Chrome Web Store Policies

CodePilot is built to respect your privacy. Here is a straightforward breakdown of how your data is handled:

1. No Tracking & No Personal Data

CodePilot does not collect, track, or share your name, email, IP address, browsing history, or keystrokes.

  • Local Storage: Your settings, custom snippets, and API keys are stored only in your browser's private local storage (chrome.storage.local).
  • Zero Middleman Servers: We do not run any servers that log your activity or inspect your code.

2. Your Code Stays Private

Your code and problem statements are processed in your computer's local memory to generate autocomplete suggestions. Data is only sent over the internet when you click to request an AI hint or push a solution to your GitHub repository.

3. Direct Connections

  • Google Gemini API: AI requests travel directly from your browser to Google using your personal key.
  • Groq Cloud API: AI requests travel directly from your browser to Groq using your personal key.
  • Judge0 Runner: Test code runs directly on ce.judge0.com.
  • GitHub API: Solutions are pushed directly to your personal GitHub repository.

4. Open Source & Verified

You can inspect all source code directly on GitHub at https://github.com/Rishitgoel/CodePilot.