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



 $39 /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!


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

Send Feedback