Monthly

Subscription

$35/mo

Down from $39/month.
Our monthly plan grants access to all premium features, the best plan for short-term subscribers.

Yearly

Subscription

$159/yr

Our most popular plan previously sold for $299 and is now only $13/month. This plan saves you over 60% in comparison to the monthly plan.

 Lightning Judge
NEW

Tired of waiting? Premium users get priority judging using an exclusive queue, resulting in a 3X shorter wait time, up to 10X during peak hours.

 Access to Premium Articles
NEW

Detailed explanations of the solutions to problems, written by our team of algorithm and data structure experts. Frequently include carefully designed animations to help with understanding.

 Interview Simulations

Mock interviews provide you with a way to test your abilities in a timed setting, just like a coding challenge or on-site interview. You choose the company and we will select an appropriate question from our constantly growing database.

 Sort Questions by Prevalence

Find out which questions turn up most frequently in interviews so that you know where to focus your personal studying. Invaluable data collected from thousands of samples.

 Premium Questions Every Week

Become the early bird to access all the latest premium questions and land your dream job.

 Select Questions by Company

Target your studying more accurately towards your dream job. Find out which companies asked which questions, we have nearly 200 questions from Google alone.

~ FAQ ~



What will I get with a premium subscription?

In addition to free questions / articles, you will have access to exclusive premium questions / articles as well. You will also be able to group questions by company, and practice mock interviews targeting a specific company.


What are the premium articles? Is there a sample I can look at?

Some of the articles are reserved for premium subscribers only. You can take a look at this free sample article here. Please note that we are adding more articles so please check back frequently.


How does grouping questions by company work?

We compile the list of questions asked by specific companies based on data from user surveys: "Have you met this question in a real interview?". These lists will be kept up to date frequently with the ever growing survey data. You can find the list of companies in the problem list page, just below the Tag lists.


What about all the existing questions?

You will continue to have access to it all, it isn't going anywhere.


I clicked the subscribe button, fill in the credit card information and clicked "Add Payment Method". I still can't access the exclusive problems.

You may access My Subscription page to confirm your subscription. Please check your billing history to make sure the transaction went through. If it shows no new transaction, it means your card was probably declined. Please try subscribe again using another debit/credit card or contact your bank to inquire for more information. If you still encounter problems, contact us.


I purchased the Complete Edition about two months ago mainly because I want to have access to locked problems and would love to support LeetCode. Feel a little surprised that doesn't cover all locked questions?

The Complete Edition only covers the 10 exclusive questions from the eBook and had been deprecated in favor of the new premium subscription. To thank your support, we would like to offer you one month of premium subscription for free. Please contact support@leetcode.com with your order receipt number and we will activate your premium subscription immediately.


What if I sign up and want to cancel?

You can cancel your subscription at any time here. After cancellation your subscription will remain active until the current time period is finished.


What are the premium questions?   Show

Here is the current up to date premium question list, more is coming...

  1. Product Price at a Given Date
  2. Market Analysis II
  3. Market Analysis I
  4. Article Views II
  5. Article Views I
  6. User Activity for the Past 30 Days II
  7. User Activity for the Past 30 Days I
  8. Reported Posts II
  9. User Purchase Platform
  10. Active Businesses
  11. Reported Posts
  12. Highest Grade For Each Student
  13. New Users Daily Count
  14. Unpopular Books
  15. Game Play Analysis V
  16. Game Play Analysis IV
  17. Game Play Analysis III
  18. Game Play Analysis II
  19. Game Play Analysis I
  20. Sales Analysis III
  21. Sales Analysis II
  22. Sales Analysis I
  23. Project Employees III
  24. Project Employees II
  25. Project Employees I
  26. Product Sales Analysis III
  27. Product Sales Analysis II
  28. Product Sales Analysis I
  29. Lexicographically Smallest Equivalent String
  30. Number of Valid Subarrays
  31. Longest Repeating Substring
  32. Missing Element in Sorted Array
  33. All Paths from Source Lead to Destination
  34. Confusing Number
  35. Minimize Rounding Error to Meet Target
  36. Campus Bikes
  37. Shortest Way to Form String
  38. Actors and Directors Who Cooperated At Least Three Times
  39. Customers Who Bought All Products
  40. String Transforms Into Another String
  41. Divide Array Into Increasing Sequences
  42. Analyze User Website Visit Pattern
  43. Minimum Swaps to Group All 1's Together
  44. Check If a Number Is Majority Element in a Sorted Array
  45. Parallel Courses
  46. Connecting Cities With Minimum Cost
  47. Path With Maximum Minimum Value
  48. Largest Unique Number
  49. Maximum Average Subtree
  50. Armstrong Number
  51. Remove Vowels from a String
  52. Number of Days in a Month
  53. The Earliest Moment When Everyone Become Friends
  54. Find K-Length Substrings With No Repeated Characters
  55. Two Sum Less Than K
  56. Sum of Digits in the Minimum Number
  57. Confusing Number II
  58. Brace Expansion
  59. Index Pairs of a String
  60. High Five
  61. Digit Count in Range
  62. Campus Bikes II
  63. Fixed Point
  64. Robot Room Cleaner
  65. Insert into a Cyclic Sorted List
  66. Similar RGB Color
  67. Split BST
  68. Minimize Max Distance to Gas Station
  69. Search in a Sorted Array of Unknown Size
  70. Basic Calculator III
  71. Encode N-ary Tree to Binary Tree
  72. Serialize and Deserialize N-ary Tree
  73. Find Anagram Mappings
  74. Employee Free Time
  75. Bold Words in String
  76. Convert Binary Search Tree to Sorted Doubly Linked List
  77. Pour Water
  78. IP to CIDR
  79. Number Of Corner Rectangles
  80. Closest Leaf in a Binary Tree
  81. Sentence Similarity II
  82. Sentence Similarity
  83. Minimum Window Subsequence
  84. Max Stack
  85. Candy Crush
  86. Number of Distinct Islands II
  87. Number of Distinct Islands
  88. Next Closest Time
  89. K Empty Slots
  90. Path Sum IV
  91. Equal Tree Partition
  92. Remove 9
  93. Coin Path
  94. 4 Keys Keyboard
  95. Design Search Autocomplete System
  96. Maximum Average Subarray II
  97. Find the Derangement of An Array
  98. Design Log Storage System
  99. Design Excel Sum Formula
  100. Maximum Distance in Arrays
  101. Minimum Factorization
  102. Add Bold Tag in String
  103. Design Compressed String Iterator
  104. Biggest Single Number
  105. Students Report By Geography
  106. Average Salary: Departments VS Company
  107. Second Degree Follower
  108. Shortest Distance in a Line
  109. Shortest Distance in a Plane
  110. Triangle Judgement
  111. Tree Node
  112. Sales Person
  113. Consecutive Available Seats
  114. Friend Requests II: Who Has the Most Friends
  115. Design In-Memory File System
  116. Friend Requests I: Overall Acceptance Rate
  117. Kill Process
  118. Customer Placing the Largest Number of Orders
  119. Investments in 2016
  120. Find Customer Referee
  121. Count Student Number in Departments
  122. Find Cumulative Salary of an Employee
  123. Get Highest Answer Rate Question
  124. Squirrel Simulation
  125. Employee Bonus
  126. Winning Candidate
  127. Maximum Vacation Days
  128. Find Median Given Frequency of Numbers
  129. Managers with at Least 5 Direct Reports
  130. Median Employee Salary
  131. Longest Line of Consecutive One in Matrix
  132. Split Concatenated Strings
  133. Binary Tree Longest Consecutive Sequence II
  134. Split Array with Equal Sum
  135. Boundary of Binary Tree
  136. Output Contest Matches
  137. Construct Binary Tree from String
  138. Lonely Pixel II
  139. Lonely Pixel I
  140. Word Abbreviation
  141. Inorder Successor in BST II
  142. The Maze II
  143. The Maze III
  144. The Maze
  145. Max Consecutive Ones II
  146. Find Permutation
  147. Encode String with Shortest Length
  148. Convex Polygon
  149. Optimal Account Balancing
  150. Sequence Reconstruction
  151. Ternary Expression Parser
  152. Word Squares
  153. Valid Word Square
  154. Sentence Screen Fitting
  155. Minimum Unique Word Abbreviation
  156. Valid Word Abbreviation
  157. Design Phone Directory
  158. Range Addition
  159. Plus One Linked List
  160. Find Leaves of Binary Tree
  161. Nested List Weight Sum II
  162. Design Hit Counter
  163. Bomb Enemy
  164. Sort Transformed Array
  165. Logger Rate Limiter
  166. Rearrange String k Distance Apart
  167. Line Reflection
  168. Design Snake Game
  169. Android Unlock Patterns
  170. Design Tic-Tac-Toe
  171. Moving Average from Data Stream
  172. Longest Substring with At Most K Distinct Characters
  173. Nested List Weight Sum
  174. Largest BST Subtree
  175. Maximum Size Subarray Sum Equals k
  176. Number of Connected Components in an Undirected Graph
  177. Generalized Abbreviation
  178. Shortest Distance from All Buildings
  179. Binary Tree Vertical Order Traversal
  180. Sparse Matrix Multiplication
  181. Range Sum Query 2D - Mutable
  182. Number of Islands II
  183. Smallest Rectangle Enclosing Black Pixels
  184. Binary Tree Longest Consecutive Sequence
  185. Best Meeting Point
  186. Flip Game II
  187. Flip Game
  188. Word Pattern II
  189. Unique Word Abbreviation
  190. Walls and Gates
  191. Inorder Successor in BST
  192. Zigzag Iterator
  193. Wiggle Sort
  194. Find the Celebrity
  195. Paint Fence
  196. Closest Binary Search Tree Value II
  197. Encode and Decode Strings
  198. Closest Binary Search Tree Value
  199. Alien Dictionary
  200. Palindrome Permutation II
  201. Palindrome Permutation
  202. Paint House II
  203. Graph Valid Tree
  204. 3Sum Smaller
  205. Paint House
  206. Verify Preorder Sequence in Binary Search Tree
  207. Factor Combinations
  208. Meeting Rooms II
  209. Meeting Rooms
  210. Flatten 2D Vector
  211. Count Univalue Subtrees
  212. Group Shifted Strings
  213. Strobogrammatic Number III
  214. Strobogrammatic Number II
  215. Strobogrammatic Number
  216. Shortest Word Distance III
  217. Shortest Word Distance II
  218. Shortest Word Distance
  219. Reverse Words in a String II
  220. Two Sum III - Data structure design
  221. Missing Ranges
  222. One Edit Distance
  223. Longest Substring with At Most Two Distinct Characters
  224. Read N Characters Given Read4 II - Call multiple times
  225. Read N Characters Given Read4
  226. Binary Tree Upside Down