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

$25/mo

 

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

Annual Plan

$159/yr

 

 $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!)

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.

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

Send Feedback