Documentation

Get Started with Leetion

Complete guide to setting up and using Leetion. Follow these steps and you'll be saving solutions in minutes.

01

Install the Extension

Download Leetion from the Chrome Web Store.

chrome.google.com/webstore
  • Search for 'Leetion' in the Chrome Web Store
  • Or visit the direct link by pressing the download button in the navbar
  • Click 'Add to Chrome'
  • Pin the extension to your toolbar for easy access
02

Create Notion Integration

Set up a Notion integration to connect Leetion with your workspace.

notion.so/my-integrations
  • Go to notion.so/my-integrations
  • Click "New integration" and give it a name (e.g., "Leetion")
  • Copy the "Internal Integration Secret" (your API key)
  • Keep this key safe - you'll need it in the next step
03

Connect Your Database

Create a database and connect your integration to it.

  • Create a new Notion database (or use an existing one)
  • Click the ⋯ menu in the top right of the database
  • Select "Connections" and add your Leetion integration
  • Copy the database ID from the URL (the 32-character string after your workspace name)
04

Configure & Start Saving

Enter your credentials and start saving solutions.

  • Click the Leetion extension icon in Chrome
  • Go to Settings and paste your Notion API key
  • Paste your database ID
  • Navigate to any LeetCode problem and click "Save to Notion"!

Database Schema

Understanding the Notion database structure that Leetion uses

FieldTypeRequiredDescription
QuestionTitleRequiredProblem title
S No.NumberRequiredLeetCode problem number
LevelSelectRequiredEasy, Medium, or Hard
TagMulti-selectOptionalProblem categories (Array, DP, Trees, etc.)
My ExpertiseSelectOptionalLow, Medium, or High confidence
DoneCheckboxOptionalMark problem as completed
Date (of first attempt)DateRequiredWhen you first solved it
Question LinkURLRequiredLink to LeetCode problem
RemarkRich TextOptionalYour notes and explanations
Alternative Method TagsMulti-selectOptionalOther approaches used
Spaced RepetitionDateOptionalNext review date
Time ComplexitySelectOptionalO(1) through O(n!)
Space ComplexitySelectOptionalO(1) through O(n!)
AttemptsNumberOptionalTimes you've revisited this problem