I started learning Java 13 months ago. In this short period, I gained all my coding skills by either learning from Leetcode's forum or practicing on the Online Judge. The reward is two onsite interviews with Facebook and LinkedIn, respectively.

I am lucky to get Facebook's job offer and will be joining them in following May. It would be impossible for me to achieve my career transition without the help of Leetcode. Thanks again for your work in building and maintaining this great website. I wish all the best in the future development of Leetcode!

Read more »

Yuanwei - Hired by Facebook

Land your dream job.

Subscribe to premium membership to keep your coding skills sharp.
Keep up to date with the latest trends in coding interviews.
Your best investment decision. Ever.

Monthly Plan



 $29 /mo 
  • Access to premium questions
  • Group questions by company
  • New premium questions every week
  • Premium articles new
Most popular

Annual Plan



 $299 /yr 
  • Access to premium questions
  • Group questions by company
  • New premium questions every week
  • Premium articles new
  • Best value - only $13 /mo!
(Click the above to apply promo code first before you hit the above subscribe button!)


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.

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 above 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?

Here are the current up to date premium question list.

  1. The Maze II
  2. The Maze III
  3. The Maze
  4. Max Consecutive Ones II
  5. Find Permutation
  6. Encode String with Shortest Length
  7. Convex Polygon
  8. Optimal Account Balancing
  9. Sequence Reconstruction
  10. Ternary Expression Parser
  11. Word Squares
  12. Valid Word Square
  13. Sentence Screen Fitting
  14. Minimum Unique Word Abbreviation
  15. Valid Word Abbreviation
  16. Design Phone Directory
  17. Range Addition
  18. Plus One Linked List
  19. Find Leaves of Binary Tree
  20. Nested List Weight Sum II
  21. Design Hit Counter
  22. Bomb Enemy
  23. Sort Transformed Array
  24. Logger Rate Limiter
  25. Rearrange String k Distance Apart
  26. Line Reflection
  27. Design Snake Game
  28. Android Unlock Patterns
  29. Design Tic-Tac-Toe
  30. Moving Average from Data Stream
  31. Longest Substring with At Most K Distinct Characters
  32. Nested List Weight Sum
  33. Largest BST Subtree
  34. Maximum Size Subarray Sum Equals k
  35. Number of Connected Components in an Undirected Graph
  36. Generalized Abbreviation
  37. Shortest Distance from All Buildings
  38. Binary Tree Vertical Order Traversal
  39. Sparse Matrix Multiplication
  40. Range Sum Query 2D - Mutable
  41. Number of Islands II
  42. Smallest Rectangle Enclosing Black Pixels
  43. Binary Tree Longest Consecutive Sequence
  44. Best Meeting Point
  45. Flip Game II
  46. Flip Game
  47. Word Pattern II
  48. Unique Word Abbreviation
  49. Walls and Gates
  50. Inorder Successor in BST
  51. Zigzag Iterator
  52. Wiggle Sort
  53. Find the Celebrity
  54. Paint Fence
  55. Closest Binary Search Tree Value II
  56. Encode and Decode Strings
  57. Closest Binary Search Tree Value
  58. Alien Dictionary
  59. Palindrome Permutation II
  60. Palindrome Permutation
  61. Paint House II
  62. Graph Valid Tree
  63. 3Sum Smaller
  64. Paint House
  65. Verify Preorder Sequence in Binary Search Tree
  66. Factor Combinations
  67. Meeting Rooms II
  68. Meeting Rooms
  69. Flatten 2D Vector
  70. Count Univalue Subtrees
  71. Group Shifted Strings
  72. Strobogrammatic Number III
  73. Strobogrammatic Number II
  74. Strobogrammatic Number
  75. Shortest Word Distance III
  76. Shortest Word Distance II
  77. Shortest Word Distance
  78. Reverse Words in a String II
  79. Two Sum III - Data structure design
  80. Missing Ranges
  81. One Edit Distance
  82. Longest Substring with At Most Two Distinct Characters
  83. Read N Characters Given Read4 II - Call multiple times
  84. Read N Characters Given Read4
  85. Binary Tree Upside Down

Send Feedback