Hi Kent, welcome to LeetCode!
I do understand that the information is quite scattered, as I am experimenting things a bit.
For two sum (Discuss), it is here. The search does not always work properly, but it […]
- 1337c0d3r in the forum topic Interview Questions: Longest Palindromic Substring in the group General Help
The answer you mentioned is a ”subsequence”.
The question mentions ”substring”, so the answer must consist of consecutive characters from the original string.
I help you format the code a little, now it looks much better.
Your solution works fine. Read carefully as the problem mentions:
“Please note that your returned answers (both index1 and index2) are […]
@admin it would be great if complexity is added to every post available in the site! complexity is mentioned in lotta problems. A few have been missed!!
p.s. can anyone help me with the complexity of this code!
- 1337c0d3r mentioned @littledot5566 in the forum topic A tip for users using java.util.Map in the group General Help
One of the design decision of OJ is to have users not worried about these import library issues, and focus as much as in the algorithm itself. I will import java.util.Map into the system for you.
I am reviewing the online judge problems these days and they are awesome. However I find therm are no longer in alphabetic order anymore since today. Could you tell me what can I do to list them in alphabetic order?
- 1 person likes this.
- 1337c0d3r mentioned @sanqiang in the forum topic how to use online judge? in the group Personal Practice
@sanqiang Sorry for the late reply. Did you choose Java as the language? (There is a dropdown that defaults to C++).
I tried java.util.Arrays.sort(num); and it works fine.
For your question about whether […]