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