You need to log in or create an account to post to this user's Wall.
For rows = 4, it would be:
P I N A L S I G Y A H R P I
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. 1337c0d3r changed their profile picture 2 months, 2 weeks ago
@cheney,
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 […]- Karthikeyan.M wrote on 1337c0d3r's Wall
@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!
http://leetcode.com/2010/09/print-all-combinations-of-number-as-sum.html
@nka55,
Your code had runtime error for the case when n = -2147483648.This is because when n = -2147483648, abs(n) will cause it to overflow (remember INT_MAX = 2147483647). Due to wrap around, abs(n) is […]
- Karthikeyan.M mentioned @wktang in a public message
@admin in the regex matching s=> aabb p=> .* gives ’1’ this is wrong. p=> .*.* should only pass rite??
Done! If you have any other library request to be included in the header as well, please let me know.
- 1337c0d3r mentioned @littledot5566 in the forum topic A tip for users using java.util.Map in the group General Help
Thanks @littledot5566:
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. - Michael wrote on 1337c0d3r's Wall
Dear admin,
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?
Thanks,
- 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 […]
