Old discuss is read-only now. Please go to New LeetCode Discuss for your questions and answers!

User account in old discuss will not integrate to the new one, but new discuss is integrated with new online judge, which means, if you already have an account in new online judge, you can access new discuss immediately!

If you want to ask for question relevant to the posts in old discuss, please copy content as part of your question, only old discuss link is NOT ALLOWED!

Please read the FAQ in new LeetCode Discuss to help yourself making the best use of Discuss!

Ask a Question
You are welcome to start submitting your question anonymously.

After submiting your question, you will be redirected to the login/signup page. Your question will be saved in the current session and will be published after you login with your existing account, or signup for a new account.


Please enter a descriptive title for your question
toggle preview
: (required)

Tags are short keywords, with no spaces within. At least 1 and up to 5 tags can be used.

How to Ask

Is your question a coding interview problem?

We prefer coding questions that can be answered with well-defined input/output.

Provide statements that are clear and concise. Share some test cases if applicable.

If your question is about this website, ask it on meta instead.

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • Indent code by 4 spaces.
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

What Are Tags

  • Tags are words that will tell others what this question is about.
  • They will help other find your question.
  • A question can have up to 5 tags, but it must have at least 1.