Monthly

Subscription

$35/mo

Down from $39/month.
Our monthly plan grants access to all premium features, the best plan for short-term subscribers. (prices are marked in USD)

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. (prices are marked in USD)

 Access to Premium Content

Gain exclusive access to our latest and ever-growing collection of premium content, such as questions, Explore cards, and premium solutions, where detailed explanations are written by our team of algorithm and data structure experts.

 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.

 Autocomplete
NEW

Not interested in memorization? With premium access, you receive intelligent code completion inside the LeetCode code editor based on language and an analysis of your source code.

 Debugger
NEW

Tired of
System.out.println(val)
? Set breakpoints and debug your code interactively line by line right inside our code editor.

 Lightning Judge

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.

 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.

 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.

∞  Unlimited Playgrounds

Premium users can create an unlimited number of Playgrounds, up from 10! You also get the ability to organize your Playgrounds in folders.

~ 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.


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. Customers Who Bought Products A and B but Not C
  2. Capital Gain/Loss
  3. Total Sales Amount by Year
  4. Replace Employee ID With The Unique Identifier
  5. Get the Second Most Recent Activity
  6. Number of Trusted Contacts of a Customer
  7. Activity Participants
  8. Students With Invalid Departments
  9. Movie Rating
  10. Number of Transactions per Visit
  11. List the Products Ordered in a Period
  12. Ads Performance
  13. Restaurant Growth
  14. Running Total for Different Genders
  15. Find the Team Size
  16. Weather Type in Each Country
  17. Find the Start and End Number of Continuous Ranges
  18. Students and Examinations
  19. Traffic Light Controlled Intersection
  20. All People Report to the Given Manager
  21. Print Immutable Linked List in Reverse
  22. Page Recommendations
  23. Average Selling Price
  24. Web Crawler Multithreaded
  25. Number of Comments per Post
  26. Web Crawler
  27. Report Contiguous Dates
  28. Team Scores in Football Tournament
  29. Queries Quality and Percentage
  30. Monthly Transactions II
  31. Last Person to Fit in the Elevator
  32. Tournament Winners
  33. Monthly Transactions I
  34. Design Bounded Blocking Queue
  35. Immediate Food Delivery II
  36. Immediate Food Delivery I
  37. Diet Plan Performance
  38. Product Price at a Given Date
  39. Market Analysis II
  40. Market Analysis I
  41. Article Views II
  42. Article Views I
  43. User Activity for the Past 30 Days II
  44. User Activity for the Past 30 Days I
  45. Reported Posts II
  46. Number of Ships in a Rectangle
  47. User Purchase Platform
  48. Active Businesses
  49. Reported Posts
  50. Highest Grade For Each Student
  51. Handshakes That Don't Cross
  52. New Users Daily Count
  53. Palindrome Removal
  54. Delete Tree Nodes
  55. Remove Interval
  56. Hexspeak
  57. Unpopular Books
  58. Game Play Analysis V
  59. Divide Chocolate
  60. Synonymous Sentences
  61. Smallest Common Region
  62. Encode Number
  63. Game Play Analysis IV
  64. Game Play Analysis III
  65. Game Play Analysis II
  66. Game Play Analysis I
  67. Valid Palindrome III
  68. Tree Diameter
  69. Design A Leaderboard
  70. Array Transformation
  71. Sales Analysis III
  72. Sales Analysis II
  73. Sales Analysis I
  74. Minimum Time to Build Blocks
  75. Toss Strange Coins
  76. Meeting Scheduler
  77. Missing Number In Arithmetic Progression
  78. Project Employees III
  79. Project Employees II
  80. Project Employees I
  81. Product Sales Analysis III
  82. Product Sales Analysis II
  83. Product Sales Analysis I
  84. Lexicographically Smallest Equivalent String
  85. Number of Valid Subarrays
  86. Longest Repeating Substring
  87. Missing Element in Sorted Array
  88. All Paths from Source Lead to Destination
  89. Confusing Number
  90. Minimize Rounding Error to Meet Target
  91. Campus Bikes
  92. Shortest Way to Form String
  93. Maximum Number of Ones
  94. Stepping Numbers
  95. Two Sum BSTs
  96. Intersection of Three Sorted Arrays
  97. Optimize Water Distribution in a Village
  98. Find Smallest Common Element in All Rows
  99. Minimum Knight Moves
  100. How Many Apples Can You Put into the Basket
  101. Actors and Directors Who Cooperated At Least Three Times
  102. Customers Who Bought All Products
  103. Shortest Distance to Target Color
  104. Before and After Puzzle
  105. Count Substrings with Only One Distinct Letter
  106. Minimum Cost to Connect Sticks
  107. Design File System
  108. String Transforms Into Another String
  109. Single-Row Keyboard
  110. Divide Array Into Increasing Sequences
  111. Analyze User Website Visit Pattern
  112. Minimum Swaps to Group All 1's Together
  113. Check If a Number Is Majority Element in a Sorted Array
  114. Parallel Courses
  115. Connecting Cities With Minimum Cost
  116. Path With Maximum Minimum Value
  117. Largest Unique Number
  118. Maximum Average Subtree
  119. Armstrong Number
  120. Remove Vowels from a String
  121. Number of Days in a Month
  122. The Earliest Moment When Everyone Become Friends
  123. Find K-Length Substrings With No Repeated Characters
  124. Two Sum Less Than K
  125. Sum of Digits in the Minimum Number
  126. Confusing Number II
  127. Brace Expansion
  128. Index Pairs of a String
  129. High Five
  130. Digit Count in Range
  131. Campus Bikes II
  132. Fixed Point
  133. Robot Room Cleaner
  134. Insert into a Sorted Circular Linked List
  135. Similar RGB Color
  136. Split BST
  137. Minimize Max Distance to Gas Station
  138. Search in a Sorted Array of Unknown Size
  139. Basic Calculator III
  140. Encode N-ary Tree to Binary Tree
  141. Serialize and Deserialize N-ary Tree
  142. Find Anagram Mappings
  143. Employee Free Time
  144. Bold Words in String
  145. Convert Binary Search Tree to Sorted Doubly Linked List
  146. Pour Water
  147. IP to CIDR
  148. Number Of Corner Rectangles
  149. Closest Leaf in a Binary Tree
  150. Sentence Similarity II
  151. Sentence Similarity
  152. Minimum Window Subsequence
  153. Max Stack
  154. Candy Crush
  155. Number of Distinct Islands II
  156. Number of Distinct Islands
  157. Next Closest Time
  158. K Empty Slots
  159. Path Sum IV
  160. Equal Tree Partition
  161. Remove 9
  162. Coin Path
  163. 4 Keys Keyboard
  164. Design Search Autocomplete System
  165. Maximum Average Subarray II
  166. Find the Derangement of An Array
  167. Design Log Storage System
  168. Design Excel Sum Formula
  169. Maximum Distance in Arrays
  170. Minimum Factorization
  171. Add Bold Tag in String
  172. Design Compressed String Iterator
  173. Biggest Single Number
  174. Students Report By Geography
  175. Average Salary: Departments VS Company
  176. Second Degree Follower
  177. Shortest Distance in a Line
  178. Shortest Distance in a Plane
  179. Triangle Judgement
  180. Tree Node
  181. Sales Person
  182. Consecutive Available Seats
  183. Friend Requests II: Who Has the Most Friends
  184. Design In-Memory File System
  185. Friend Requests I: Overall Acceptance Rate
  186. Kill Process
  187. Customer Placing the Largest Number of Orders
  188. Investments in 2016
  189. Find Customer Referee
  190. Count Student Number in Departments
  191. Find Cumulative Salary of an Employee
  192. Get Highest Answer Rate Question
  193. Squirrel Simulation
  194. Employee Bonus
  195. Winning Candidate
  196. Maximum Vacation Days
  197. Find Median Given Frequency of Numbers
  198. Managers with at Least 5 Direct Reports
  199. Median Employee Salary
  200. Longest Line of Consecutive One in Matrix
  201. Split Concatenated Strings
  202. Binary Tree Longest Consecutive Sequence II
  203. Split Array with Equal Sum
  204. Boundary of Binary Tree
  205. Output Contest Matches
  206. Construct Binary Tree from String
  207. Lonely Pixel II
  208. Lonely Pixel I
  209. Word Abbreviation
  210. Inorder Successor in BST II
  211. The Maze II
  212. The Maze III
  213. The Maze
  214. Max Consecutive Ones II
  215. Find Permutation
  216. Encode String with Shortest Length
  217. Convex Polygon
  218. Optimal Account Balancing
  219. Sequence Reconstruction
  220. Ternary Expression Parser
  221. Word Squares
  222. Valid Word Square
  223. Sentence Screen Fitting
  224. Minimum Unique Word Abbreviation
  225. Valid Word Abbreviation
  226. Design Phone Directory
  227. Range Addition
  228. Plus One Linked List
  229. Find Leaves of Binary Tree
  230. Nested List Weight Sum II
  231. Design Hit Counter
  232. Bomb Enemy
  233. Sort Transformed Array
  234. Logger Rate Limiter
  235. Rearrange String k Distance Apart
  236. Line Reflection
  237. Design Snake Game
  238. Android Unlock Patterns
  239. Design Tic-Tac-Toe
  240. Moving Average from Data Stream
  241. Longest Substring with At Most K Distinct Characters
  242. Nested List Weight Sum
  243. Largest BST Subtree
  244. Maximum Size Subarray Sum Equals k
  245. Number of Connected Components in an Undirected Graph
  246. Generalized Abbreviation
  247. Shortest Distance from All Buildings
  248. Binary Tree Vertical Order Traversal
  249. Sparse Matrix Multiplication
  250. Range Sum Query 2D - Mutable
  251. Number of Islands II
  252. Smallest Rectangle Enclosing Black Pixels
  253. Binary Tree Longest Consecutive Sequence
  254. Best Meeting Point
  255. Flip Game II
  256. Flip Game
  257. Word Pattern II
  258. Unique Word Abbreviation
  259. Walls and Gates
  260. Inorder Successor in BST
  261. Zigzag Iterator
  262. Wiggle Sort
  263. Find the Celebrity
  264. Paint Fence
  265. Closest Binary Search Tree Value II
  266. Encode and Decode Strings
  267. Closest Binary Search Tree Value
  268. Alien Dictionary
  269. Palindrome Permutation II
  270. Palindrome Permutation
  271. Paint House II
  272. Graph Valid Tree
  273. 3Sum Smaller
  274. Paint House
  275. Verify Preorder Sequence in Binary Search Tree
  276. Factor Combinations
  277. Meeting Rooms II
  278. Meeting Rooms
  279. Flatten 2D Vector
  280. Count Univalue Subtrees
  281. Group Shifted Strings
  282. Strobogrammatic Number III
  283. Strobogrammatic Number II
  284. Strobogrammatic Number
  285. Shortest Word Distance III
  286. Shortest Word Distance II
  287. Shortest Word Distance
  288. Reverse Words in a String II
  289. Two Sum III - Data structure design
  290. Missing Ranges
  291. One Edit Distance
  292. Longest Substring with At Most Two Distinct Characters
  293. Read N Characters Given Read4 II - Call multiple times
  294. Read N Characters Given Read4
  295. Binary Tree Upside Down